Skip to content

feat(package-vulnerability-scanner): show an in-app setup screen - #456

Draft
amylin1249 wants to merge 2 commits into
pvs-03-user-store-and-errordetailfrom
pvs-04-setup-screen
Draft

feat(package-vulnerability-scanner): show an in-app setup screen#456
amylin1249 wants to merge 2 commits into
pvs-03-user-store-and-errordetailfrom
pvs-04-setup-screen

Conversation

@amylin1249

@amylin1249 amylin1249 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Split out of #428 into small, reviewable PRs (tracking issue #415). Stacked 4/10 — stacked on #455, merge bottom-up.

When the viewer's session can't be read or the Visitor API Key integration is missing (the stores' setupRequired, from the previous PR), the app now shows a setup message with the specific reason instead of hanging on the loading spinner or showing a generic error.

The setup screen renders the reason the backend reported directly. Both stores set error on every path that sets setupRequired, so there is no case where the message is missing and no default string is needed.

@github-actions

Copy link
Copy Markdown
Contributor

Extension release summary

😴 Changed but won't release

The following extensions have code changes but the manifest version hasn't been incremented:

  • package-vulnerability-scanner: manifest version 3.0.6 ≤ released version 3.0.6

If you intended to release these changes, update the version field in each extension's manifest.json.

See the contributing guide for details.

@amylin1249
amylin1249 marked this pull request as draft July 31, 2026 15:43
@amylin1249
amylin1249 force-pushed the pvs-04-setup-screen branch from c2fb596 to 283a8b2 Compare August 1, 2026 01:24
@amylin1249
amylin1249 force-pushed the pvs-04-setup-screen branch from 283a8b2 to d242328 Compare August 1, 2026 01:48
@amylin1249
amylin1249 force-pushed the pvs-04-setup-screen branch from d242328 to a4b9720 Compare August 1, 2026 03:36
@amylin1249
amylin1249 force-pushed the pvs-04-setup-screen branch from a4b9720 to 360c3ea Compare August 1, 2026 04:58
@amylin1249
amylin1249 force-pushed the pvs-04-setup-screen branch from 360c3ea to 10f2060 Compare August 1, 2026 05:46
amylin1249 and others added 2 commits August 1, 2026 08:38
When the viewer's session can't be read or the Visitor API Key integration
is missing (content.ts/user.ts's setupRequired, from the previous PR), show
a setup message with the specific reason instead of hanging on the loading
spinner or a generic error. A separate error state still shows when
something else fails to load.
…essage fallback

setupRequired is only ever set on a store path that also records the error,
so the default string could never render.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@amylin1249
amylin1249 force-pushed the pvs-04-setup-screen branch from 10f2060 to 2d1b825 Compare August 1, 2026 15:45
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.

1 participant