Skip to content

Conversation

helenul
Copy link
Member

@helenul helenul commented Nov 11, 2026

Changes

  • Add a Toast component and a ToastProvider with a useToast() hook, which show a short error message at the top of the screen. The message is in a role="alert" region, so screen readers read it at once.
  • useMatchedPlants now waits for the mutation and shows an error message if adding or removing a match fails, or the user is not found. No message is shown when it works, since the page already shows the change.
  • Added ToastContext.test.tsx and useMatchedPlants.test.tsx, covering both success and failure.
  • Updated architecture.md, quality.md and tests.md. Also removed a duplicated section in architecture.md, updated the GraphQL folder tree, and removed duplicated test files in tests.md.

Describe the Toast and ToastProvider in architecture.md and quality.md, and add the new ToastContext and useMatchedPlants tests to tests.md. Also remove a duplicated section in architecture.md, update the GraphQL folder tree, and remove duplicated test files in tests.md.
@helenul helenul requested a review from a team as a code owner November 11, 2026 13:23
@helenul helenul linked an issue Nov 11, 2026 that may be closed by this pull request
4 tasks
@helenul helenul merged commit 4d829bb into main Nov 11, 2026
0 of 4 checks passed
@helenul helenul deleted the 127-show-feedback-when-adding-and-removing-a-match branch November 11, 2026 14:44
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show feedback when adding or removing a match
2 participants