docs(web-ui): document SecurityStatusBar, uiConfig, and read-only UI mode from v1.0.2#24
Merged
Conversation
…mode from v1.0.2 - Routing table: add Notes column; document VITE_FLIGHTDECK_UI_READ_ONLY redirect behavior for #/actions - Component tree: add SecurityStatusBar to the diagram; note UI_READ_ONLY redirect - AppShell section: mention SecurityStatusBar mount point and Promote nav suppression - New uiConfig.ts section: UI_READ_ONLY boolean and clientMutationTokenConfigured() helper - New SecurityStatusBar section: all render conditions (read-only, fetch error, bearer mismatch, normal) - api.ts section: add HealthPayload type and fetchHealth() helper used by SecurityStatusBar - CSS table: expand fd-alert modifiers (--info, --warn); add fd-security-strip and fd-security-strip__msg - Environment variables table: add VITE_FLIGHTDECK_UI_READ_ONLY; expand token note with whitespace-trim behavior Co-authored-by: Gottam Sai Bharath <Gsbreddy@users.noreply.github.com>
Gsbreddy
approved these changes
May 2, 2026
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.
What changed
Updated
docs/web-ui.mdto cover the UI subsystems introduced in v1.0.2 that were not yet documented.Docs updated
docs/web-ui.md— +72 lines / -11 linesCodepaths covered
web/src/uiConfig.tsuiConfig.tssection:UI_READ_ONLYboolean andclientMutationTokenConfigured()helperweb/src/components/SecurityStatusBar.tsxSecurityStatusBarsection: all render conditions (read-only banner, fetch error, bearer mismatch, normal auth info)web/src/App.tsxUI_READ_ONLYredirect#/actionsredirect behavior explainedweb/src/components/AppShell.tsxweb/src/api.ts—HealthPayload,fetchHealth()web/src/index.css—fd-alert--info/warn,fd-security-strip*Key knowledge gaps addressed
VITE_FLIGHTDECK_UI_READ_ONLYwas not documented anywhere indocs/; only referenced inweb/README.md. Now fully explained including the routing redirect, nav suppression, and SecurityStatusBar banner.SecurityStatusBar(new in v1.0.2) had zero coverage indocs/web-ui.md. All five render conditions documented including the token mismatch warning.HealthPayloadtype andfetchHealth()helper (new in v1.0.2) were absent from the api.ts section.No behavior was fabricated; all additions verified against source files.