Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Still active? #5

Open
jfrome1 opened this issue Aug 31, 2024 · 13 comments
Open

Still active? #5

jfrome1 opened this issue Aug 31, 2024 · 13 comments

Comments

@jfrome1
Copy link

jfrome1 commented Aug 31, 2024

I'm very interested in using Feelback and installed it to my Astro Starlight site. The local form worked but getting data to the service didn't. I couldn't find a support email address. Is the project still active? If not, any suggestions for an alternate feedback system would be welcome. Thanks.

@giuseppelt
Copy link
Owner

Yeah the project is active and under feature development.

What's your issue?
Maybe it's a compatibility issue.

@JojokCreator
Copy link

JojokCreator commented Sep 6, 2024

Hi I'm also having issues with the tagged and split messages (message one works fine) returning 400 errors. Using Astro.

<FeelbackMessage 
contentSetId="a0d75f8f-e94b-4e67-ab72-8c595f37b914"
textAnswer="Thanks for your feedback"
/>
<FeelbackTaggedMessage 
contentSetId="c433c93f-53e2-495f-adb3-19244d2f3125"
 preset="like-dislike"
/>
<FeelbackSplitTaggedMessage
contentSetId="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx"
    withMessage
    tags={{
        y: YES_TAGS,
        n: NO_TAGS
    }}
    titles={{
        y: "What did you like?",
        n: "What we should improve?",
    }}
/>

the error is - {"error":"invalid_param","message":"Invalid feelback value"}

@giuseppelt
Copy link
Owner

@JojokCreator That error is when something wrong is sent to the server (validation fail).
So either the client in astro is sending something bad, or a configuration is not aligned.

Can you provide me the page (if it's public)? So I can check the error directly.

@JojokCreator
Copy link

https://stackblitz.com/edit/withastro-astro-d3vzyj?file=src%2Fpages%2Findex.astro <--- There's a minimal reproduction here

The feelbackMessage works but the Tagged and Split don't (both 400 errors). It could well be something I'm missing .

Also there's a typo here https://www.feelback.dev/docs/integrations/astro/

Should be import "astro-feelback/styles/feelback.css"; rather than astro-feedback right?

image

@giuseppelt
Copy link
Owner

I checked your snippet. Your using a content-set of type tagged-message with "happy", "neutral", "sad" values.
You picked that preset 'feeling' when you created it.

So you need to match the same on your UI control.

<FeelbackTaggedMessage 
   contentSetId="xxxxxxxxxx"
   preset="feeling"
/>

And for the split-control you must use the same tag values.
Follow the documentation for a stripe-like feedback system which uses the split control.

@JojokCreator
Copy link

Ah. I thought I might have been doing something wrong. It's working. Kind regards and a great product!

@Judimax
Copy link

Judimax commented Sep 14, 2024

I try to follow the guide for the mdx files but I do not see the feelback component when I go to the integration guide on the contentset and click go to documentation I get page not found error

@JojokCreator
Copy link

@Judimax if you are using MDX in Astro you should be able to just import the Feelback component and use it in your MDX like above + the import statement.

@windmillcode0
Copy link

windmillcode0 commented Sep 16, 2024

@JojokCreator can you give an example snippet?. I might get the syntax wrong because I keep getting errors

@JojokCreator
Copy link

@windmillcode0
Copy link

in stackblitz I can only create an astro page how were you able to create a starlight astro page?

@JojokCreator
Copy link

That's Astro but procedure with starlight would be the same.

@Judimax
Copy link

Judimax commented Sep 16, 2024

solved you can close the ticket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants