feat(ops): distinguish no-credential from empty in graph + drawer - #54
Merged
Conversation
- deriveGraphState gains 'no-credential' (enabled but credential_configured === false); undefined (older gateway) falls through to empty, never no-credential - graph-lens renders a distinct hint; drawer empty state is capability-aware instead of one fixed text - KbCapability type widened (optional fields, additive) - first test file for the helper: 6 cases across all five states
sulthannauval
added a commit
that referenced
this pull request
Aug 10, 2026
- KbPanel mounted the settings card, the Documents/Graph switch, and
KbList unconditionally; KbList fetches on mount, so a disabled or
keyless KB rendered the 'add an API key' card with two 503 error
panels underneath it — the panel now gates on GET /config/knowledge
and renders ONLY the activation screen until the KB can answer
- knowledge-settings-card becomes the activation screen with three
states (off+no-key: inputs + Activate; off+key: one-click Activate,
key kept; on+key: compact row + Deactivate/Edit/Remove key)
- Deactivate is not Clear: it sends {enabled:false} and keeps the key;
the destructive Remove key stays behind its confirm modal, reworded —
'search will stop working' now describes Deactivate, and the modal
points at it for the non-destructive path
- the gateway's live key probe 400 surfaces INLINE on the key input (a
rejected key is a form error), with the button reading 'Verifying…'
- third dead-end KB_INTELLIGENCE_ENABLED instruction (knowledge-graph
zero-node EmptyState) replaced with actions the operator can take —
the other two were fixed with the no-credential state in #54
- KnowledgeStatus.enabled + setKnowledge enabled are optional: older
gateways omit them and the panel treats configured-as-enabled
(pre-v0.18.5 behaviour preserved)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion to RantAIClaw plan 097 (capability block).
deriveGraphStategains ano-credentialstate — enabled extraction withcredential_configured === false— with a distinct hint in graph-lens and capability-aware drawer empty text. Older gateways that omit the field fall through toempty, pinned by test.Validation:
vitest6/6 (first test file for the helper),next buildclean.Risk: additive · Rollback: revert