fix(ui): add visual error toast notification for corrupted share links#816
fix(ui): add visual error toast notification for corrupted share links#816tirth707 wants to merge 8 commits intoaccordproject:mainfrom
Conversation
Signed-off-by: tirth707 <ptirth2206@gmail.com>
✅ Deploy Preview for ap-template-playground ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
Improves Template Playground startup UX by surfacing a visual Ant Design toast when a shared workspace link cannot be decompressed during initialization, instead of failing silently.
Changes:
- Added Ant Design
messagetoast notification for a specific share-link decompression failure. - Subscribed to Zustand global
errorstate via auseEffectlistener. - Switched the AI config selector to
useStoreWithEqualityFn(..., shallow)to reduce rerenders from object selectors.
You can also share your feedback on Copilot code review. Take the survey.
…or corrupted links Signed-off-by: tirth707 <ptirth2206@gmail.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
You can also share your feedback on Copilot code review. Take the survey.
Signed-off-by: tirth707 <ptirth2206@gmail.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
You can also share your feedback on Copilot code review. Take the survey.
Signed-off-by: tirth707 <ptirth2206@gmail.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
You can also share your feedback on Copilot code review. Take the survey.
Signed-off-by: tirth707 <ptirth2206@gmail.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
You can also share your feedback on Copilot code review. Take the survey.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
This PR is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
|
Hey please don't close this PR |
|
Thanks for this contribution! Before we can merge, all commits need to be signed off for the Developer Certificate of Origin. Please run: git rebase HEAD~N --signoff # where N = number of commits
git push --force-with-leaseSee CONTRIBUTING.md for details. This comment was generated by AI on behalf of @mttrbrts. |
Closes #801
This PR improves the initialization User Experience (UX) by ensuring that corrupted, malformed, or expired shared workspace links do not cause silent UI failures. It introduces a global error listener to provide immediate visual feedback to the user while safely loading the default playground state.
Changes
messagecomponent fromantdinApp.tsx.useEffecthook to listen to the global Zustanderrorstate.loadFromLinksequence.Flags
loadFromLinkfunction within the Zustand store catches decompression errors internally and pushes them to the Problems panel rather than throwing them back up to theApp.tsxinitializationcatchblock. Monitoring the global store error state was the most non-intrusive way to hook into this failure without rewriting the store's internal error handling logic.Screenshots or Video
Related Issues
Author Checklist
--signoffoption of git commit.mainfromfork:branchname