Skip to content

feat(web): errors and setup warnings link to the page that fixes them - #189

Merged
debpalash merged 3 commits into
mainfrom
feat/web-actionable-errors
Nov 19, 2026
Merged

debpalash merged 3 commits into
mainfrom
feat/web-actionable-errors

Conversation

@velixio

@velixio velixio commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Builds on #188 (contains its commit).

  • lib/notify.ts wraps the toast API. An error, warning or info toast whose message names a place gets an action button to it, for example "No AI provider configured. Go to Settings to add an API key." gets Open AI provider settings.
  • Settings opens the section named in ?tab=; an unknown value falls back to AI Providers.
  • The needs-setup marker in a workbook cell links to the matching settings section and shows the reason.
  • The first-run checklist's AI provider step links to the AI Providers section.
  • A unit test fails if a file imports toast from sonner directly.

Checked: build, lint, 219 unit tests, accessibility suite (64 of 64, including the new deep-link test).

Not exercised in a browser: clicking the action button on a live toast.

Surfaces are now separated by tone (canvas, surface, well, raised), not by
lines: every border token is transparent, and inputs, selects, textareas and
checkboxes are filled instead of outlined. The blue-tinted greys are replaced
by neutral ones. The primary action is high-contrast neutral; blue is kept
for links and the focus ring only.

Signed-off-by: Shimul Debnath <270455167+velixio@users.noreply.github.com>
A toast whose message points somewhere ("add a key in Settings") now carries
a button to that exact page and settings section. Settings opens the section
named in ?tab=. The needs-setup marker in a workbook cell links to the
section for that reason instead of the settings root.

Signed-off-by: Shimul Debnath <270455167+velixio@users.noreply.github.com>
@velixio
velixio requested a review from debpalash as a code owner November 19, 2026 09:51
@github-actions

Copy link
Copy Markdown

All contributors on this pull request have signed the OpenGTM CLA. Thank you!

Agreement: OpenGTM CLA 1.0

@github-actions github-actions Bot added the cla-signed All contributors signed the CLA label Nov 19, 2026
A tab left open across an upgrade asked for page files the new build had
replaced and showed the error page. It now reloads once to pick up the new
build; if that does not help, the error page says the app was updated.

Signed-off-by: Shimul Debnath <270455167+velixio@users.noreply.github.com>
@debpalash
debpalash merged commit 5c82b3f into main Nov 19, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed All contributors signed the CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants