Skip to content

fix: update thumbs up/down rating state immediately without page refresh - #396

Open
iwc-byronwu wants to merge 1 commit into
FlowiseAI:mainfrom
iwc-byronwu:fix/feedback-rating-not-updating
Open

fix: update thumbs up/down rating state immediately without page refresh#396
iwc-byronwu wants to merge 1 commit into
FlowiseAI:mainfrom
iwc-byronwu:fix/feedback-rating-not-updating

Conversation

@iwc-byronwu

Copy link
Copy Markdown

Description

Fixes #395

Bot.tsx never passed the messageRatings / onMessageRatingChange props that BotBubble already supports, so clicking 👍/👎 saved the feedback correctly (DB + localStorage) but the icon state only updated after a page refresh.

This PR wires up the missing state:

  • add a messageRatings signal in Bot.tsx
  • pass messageRatings / onMessageRatingChange down to <BotBubble>

How tested

  • npm run build, loaded the built dist/web.js on a local test page against a Flowise server
  • Clicking 👍 now immediately turns the icon green, hides the other thumb, and opens the feedback content dialog — no refresh needed
  • Rating still persists after refresh (localStorage / DB behavior unchanged)

@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

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

Successfully merging this pull request may close these issues.

bug: Thumbs up/down rating state not reflected in UI until page refresh

1 participant