Repository navigation
Working manual generation button. - #304
Conversation
✅ Deploy Preview for hope-for-haiti ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Greptile SummaryThis PR adds an on-demand "Generate Summary" button to the However, several state-management issues were introduced alongside the UI change:
PR Checklist areas needing improvement
Score: 55 / 100 Confidence Score: 2/5
Important Files Changed
|
|
Overall functionality looks good. I've updated the styling of the button so no need to worry about that. Please work on fixing the React-markdown issue though. |
merge branch 'main' of https://github.com/GTBitsOfGood/hope-for-haiti into gia/294-manual-summary-generation
…m/GTBitsOfGood/hope-for-haiti into gia/294-manual-summary-generation
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
ND68
left a comment
There was a problem hiding this comment.
ignore greptile. retries/ generating second summary is not necessary. good work
Description
Resolves ticket number: #294
Explain what your code changes:
I updated the WishlistSummary component to prevent the AI streaming service from triggering automatically when the page loads. I introduced an isRequested state that acts as a gatekeeper, ensuring the API call only fires when the user clicks the toggle. A new button was added next to the filters that matches the primary blue styling used elsewhere in the application to keep the interface consistent (I will look at the styling again to see if I can have it match better).
List the steps you took to test your code:
I added mock data into Wishlist allocation to make sure that when I clicked the button, the wishlist generation would trigger as expected (populating a summary when more than 10 items were present). I did notice that when I pulled from main, the text styling (like bold letters) in the summary did not properly trigger.
Checklist