Skip to content

fix(settings): show the Jev card only once Jev has been added - #1458

Merged
vastsa merged 1 commit into
mainfrom
fix/jev-card-hidden-until-added
Oct 7, 2026
Merged

vastsa merged 1 commit into
mainfrom
fix/jev-card-hidden-until-added

Conversation

@vastsa

@vastsa vastsa commented Oct 7, 2026

Copy link
Copy Markdown
Owner

What

The Jev card no longer appears on the model configuration page until Jev has
actually been added.

  • Before it is added (no TypeSafe key stored) the page shows nothing about
    Jev. Adding stays where every other service is added: Add service →
    Classifiers
    .
  • Once a key is stored the card appears with the stored-key state, the
    Agent-mode switch, and the replace/remove actions.
  • Removing the key still turns the switch off first, then deletes the key,
    and the card leaves with it.
  • The card stays while the Host cannot answer the secret lookup, or while an
    enabled setting contradicts a missing key — hiding a configured install would
    be the worse failure.

Files

  • apps/desktop/src/components/settings/JevSettingsCard.tsx — the visibility
    rule (the status read stays with the card, so the dialog's report of a stored
    key is what makes the card appear)
  • apps/desktop/test/jev-settings-user-path.test.mjs — card path: nothing
    before adding, card + actions after, disabled-then-deleted on removal, card
    gone
  • apps/desktop/test/jev-service-setup-user-path.test.mjs — add path: no card
    before, card appears after Check and save (asserted with the dialog opened
    the way the chooser opens it)
  • docs/spec/04-ux/06-settings-ia.md, docs/spec/06-delivery/04-e2e-test-plan.md

Verification

  • tsc -p apps/desktop/tsconfig.json --noEmit: clean
  • biome lint, check-style-tokens.mjs, check-architecture.mjs: clean
  • node --test apps/desktop/test/jev-*.test.mjs: 15/15, including both
    isolated-Electron user paths
  • check:pr-base: head contains current origin/main

The Jev card sat on the model configuration page of every install, offering
"Add key" to users who had never added TypeSafe Jev at all. Jev is one of the
services "Add service" provides, so an install without it now has nothing on
that page: the card appears once a key is stored, and it leaves again when the
key is removed, after the switch that removal already turned off.

Two states keep the card: a Host that cannot answer the secret lookup, and an
enabled setting that contradicts a missing key. Hiding a configured install
would be the worse failure.

The status read stays with the card, so the dialog's report of a stored key is
what makes the card appear; the card-visibility test covers both directions.
Copilot AI balanced review requested due to automatic review settings October 7, 2026 16:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vastsa
vastsa merged commit 52b52f7 into main Oct 7, 2026
5 checks passed
@vastsa
vastsa deleted the fix/jev-card-hidden-until-added branch October 7, 2026 17:06
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.

2 participants