Repository navigation
Commit 554c8fc
authored
feat(ui): redesign every module page to the HiFi design system + add Doctor page (#131)
* feat(ui): redesign every module page to the SimpleModulePython HiFi system
Implements the emerald + teal design system from the Claude Design HiFi mock
across the full surface — public, auth, and authenticated pages — and adds a
new admin Doctor page that mirrors `sm doctor`.
Design system primitives in packages/ui:
- StatCard, SectionTitle, FilterPills (new)
- PageShell, AuthCardShell, ErrorScreen (refreshed)
- TONE map at packages/ui/src/lib/tone.ts — single source for semantic
badge / chrome class triplets
- Globals: emerald primary scale (oklch hue 158), Sora display font
Pages redesigned:
- Landing — mesh blobs, gradient hero, terminal CTA, 6-feature grid,
quickstart split with terminal, gradient CTA strip, light footer
- Auth (Login / Register / Forgot / Reset / AcceptInvite / VerifyEmail) —
light glass card on emerald mesh blobs, simple_module / python lockup
- Dashboard Home — 4 stat cards, system module grid, demo activity panels
gated to `import.meta.env.DEV`
- Doctor (NEW, /dashboard/doctor) — admin-only page with stat cards, static
checks, recent migrations, dev server, sm CLI runner, env vars,
installed modules. Wired into AdminLayout sidebar
- Users Index — workspace-wide aggregate stat cards (active/pending), search
+ filters, avatar table with status badges; Roles tab with role cards
- Users Edit / Invite — section cards with gradient accent bars, role
pill picker, alert-dialog confirmation on Disable + reset-link
- Permissions UserEdit / RoleEdit — 3 stat cards, search, per-module switch
grid with proper grid borders for odd-length lists
- Settings Browse / Create / Edit / ModulesEdit — uniform PageShell + Card
forms; module navigator with search
- Profile — gradient avatar, verified badge, role pills
- Error (403/404/500) — gradient HTTP numerals + accent badge per status
Backend additions:
- UserService.count_user_states() — workspace-wide active/unverified counts
served as `aggregates` prop so stat cards reflect totals not the page slice
- Dashboard module registers Doctor in ADMIN_SIDEBAR; doctor route slimmed to
only system_info + module_count
Notable fixes from the simplify pass:
- Reset-link generation requires AlertDialog confirmation (was firing on click)
- ForgotPassword keeps anti-enumeration WHY comment
- useMemo Sets / reduce / filter in permission editors (was rebuilt per
keystroke in the search box)
- Lookup table replaces ternary chains in Doctor CheckRow
- Grid border math corrected for odd-length permission lists
- Manage permissions link from User Edit now goes to /edit (was 405)
- Vite dev port reflected as 5050 in README
* test(e2e): update settings smoke test for redesigned auth labels
The public landing nav and login form both relabeled in the redesign:
- Public nav: "Get Started" → "Log in" / "Sign up"
- Login form submit: "Sign in" → "Log in"
Update the e2e _login helper to match the new role-based selectors.1 parent d95c3b0 commit 554c8fc
45 files changed
Lines changed: 2764 additions & 1614 deletions
File tree
- host
- client_app/pages
- locales
- templates
- modules
- dashboard/dashboard
- endpoints
- pages
- components
- feature_flags/feature_flags/pages
- permissions/permissions/pages
- settings/settings/pages
- users/users
- components
- endpoints
- pages
- Users
- components
- packages/ui/src
- components
- layouts
- lib
- styles
- tests/e2e
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | | - | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
83 | | - | |
| 84 | + | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
103 | | - | |
| 105 | + | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| |||
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
115 | | - | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| |||
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
131 | 159 | | |
132 | 160 | | |
133 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
26 | 33 | | |
27 | 34 | | |
28 | 35 | | |
29 | 36 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
33 | 43 | | |
34 | | - | |
| 44 | + | |
| 45 | + | |
35 | 46 | | |
36 | 47 | | |
37 | 48 | | |
| |||
0 commit comments