Skip to content

Frontend redesign and minor fixes - #6

Merged
ishansing merged 9 commits into
mainfrom
frontend-fix
Sep 4, 2026
Merged

ishansing merged 9 commits into
mainfrom
frontend-fix

Conversation

@ishansing

Copy link
Copy Markdown
Owner

No description provided.

ishansing and others added 9 commits September 2, 2026 18:27
Implement FIX.md across demo, admin, sandbox:

- Add @stealthguard/ui package: Button (required type, internal
  pending/disabled guard, loading state, focus ring), IconButton,
  LinkButton, with 9 unit tests covering click-once, double-click
  guard during async, disabled/loading blocking, keyboard operability
- Migrate every bespoke button in all three apps to the shared
  primitives; delete the dead per-screen button CSS
- Fix logic bugs: challenge & login forms guarded against double
  submit (try/finally + submitting state); session table rows are
  now keyboard-operable (tabIndex + Enter/Space) with a regression test
- Guardrails: scripts/check-shared-ui.sh hard-stops any new <button>/
  role="button" outside packages/ui (wired into frontend lint);
  frontend/AGENT_GUIDELINES.md; linked from README.md, SPEC.md §17,
  DESIGN.md; all interactive changes covered by tests

Verified: lint clean, prettier clean, all 3 apps build, 31/31 unit
tests pass (was 19), bot-sim tests pass.
- Demo: wrap in app-layout with top-nav header (brand, DEMO/ADMIN/SANDBOX
  links, action icons); move centered card into main-content column
- Admin: replace simple top-nav-title with full nav (brand, nav links,
  action icons); add nav link CSS (top-nav-brand, top-nav-links,
  top-nav-link, active state, hover)
- Both: responsive hiding of nav links at ≤600px (matching sandbox)
- All three apps now share a consistent top nav bar
- Remove sidebar (brand, profile, nav links, INITIATE SCAN button) and
  all associated CSS (150+ lines of dead sidebar styles)
- Add 'View all N sessions' button below the 2-row overview table
- Add 'Home' button at top of sessions view to return to overview
- Admin layout changes from sidebar+main flex row to single column
@ishansing
ishansing merged commit f3dbcd5 into main Sep 4, 2026
6 of 10 checks passed
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