@neetechs/ui 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +74 -0
- package/LICENSE +21 -21
- package/README.md +862 -861
- package/dist/ai/ai-action-button/ai-action-button.css +271 -271
- package/dist/ai/ai-approval-card/ai-approval-card.css +323 -323
- package/dist/ai/ai-conversation-panel/ai-conversation-panel.css +447 -447
- package/dist/ai/ai-prompt-input/ai-prompt-input.css +380 -380
- package/dist/ai/ai-proposal-card/ai-proposal-card.css +358 -358
- package/dist/ai/ai-suggestion-card/ai-suggestion-card.css +295 -295
- package/dist/ai/ai-tool-call/ai-tool-call.css +256 -256
- package/dist/ai/index.css +7 -7
- package/dist/behaviors/index.d.ts +1 -0
- package/dist/behaviors/index.d.ts.map +1 -1
- package/dist/behaviors/index.js +1 -0
- package/dist/behaviors/index.js.map +1 -1
- package/dist/behaviors/selection-indicator.d.ts +35 -0
- package/dist/behaviors/selection-indicator.d.ts.map +1 -0
- package/dist/behaviors/selection-indicator.js +133 -0
- package/dist/behaviors/selection-indicator.js.map +1 -0
- package/dist/behaviors/sidebar.d.ts +3 -1
- package/dist/behaviors/sidebar.d.ts.map +1 -1
- package/dist/behaviors/sidebar.js +10 -3
- package/dist/behaviors/sidebar.js.map +1 -1
- package/dist/components/alert/alert.css +226 -220
- package/dist/components/avatar/avatar.css +298 -220
- package/dist/components/badge/badge.css +180 -174
- package/dist/components/breadcrumb/breadcrumb.css +207 -207
- package/dist/components/button/button.css +278 -238
- package/dist/components/card/card.css +336 -265
- package/dist/components/checkbox/checkbox.css +189 -189
- package/dist/components/chip/chip.css +269 -269
- package/dist/components/choice-card/choice-card.css +244 -0
- package/dist/components/data-grid/data-grid.css +520 -520
- package/dist/components/description-list/description-list.css +187 -187
- package/dist/components/dialog/dialog.css +348 -339
- package/dist/components/disclosure/disclosure.css +154 -0
- package/dist/components/dock/dock.css +319 -0
- package/dist/components/drawer/drawer.css +493 -484
- package/dist/components/dropdown/dropdown.css +325 -316
- package/dist/components/fab/fab.css +281 -0
- package/dist/components/icon-button/icon-button.css +162 -162
- package/dist/components/index.css +4 -0
- package/dist/components/input/input.css +163 -163
- package/dist/components/menu/menu.css +315 -315
- package/dist/components/pagination/pagination.css +250 -250
- package/dist/components/panel/panel.css +316 -284
- package/dist/components/popover/popover.css +22 -0
- package/dist/components/progress/progress.css +268 -256
- package/dist/components/radio/radio.css +166 -166
- package/dist/components/segmented-control/segmented-control.css +264 -205
- package/dist/components/select/select.css +117 -117
- package/dist/components/skeleton/skeleton.css +267 -267
- package/dist/components/split-button/split-button.css +292 -292
- package/dist/components/stat/stat.css +433 -403
- package/dist/components/switch/switch.css +195 -195
- package/dist/components/table/table.css +220 -220
- package/dist/components/tabs/tabs.css +393 -293
- package/dist/components/textarea/textarea.css +86 -86
- package/dist/components/toast/toast.css +345 -345
- package/dist/components/tooltip/tooltip.css +267 -258
- package/dist/domain/billing/index.css +629 -629
- package/dist/domain/calendar/agenda-list/agenda-list.css +224 -224
- package/dist/domain/calendar/day-slice/day-slice.css +384 -384
- package/dist/domain/calendar/day-timeline/day-timeline.css +332 -332
- package/dist/domain/calendar/event-card/event-card.css +338 -338
- package/dist/domain/calendar/index.css +5 -5
- package/dist/domain/calendar/month-grid/month-grid.css +426 -426
- package/dist/domain/calendar/week-grid/week-grid.css +487 -480
- package/dist/domain/companies/index.css +526 -526
- package/dist/domain/index.css +3 -3
- package/dist/index.css +5 -5
- package/dist/patterns/command-palette/command-palette.css +488 -447
- package/dist/patterns/company-switcher/company-switcher.css +390 -390
- package/dist/patterns/content-state/content-state.css +236 -236
- package/dist/patterns/document-preview/document-preview.css +169 -0
- package/dist/patterns/editor-workspace/editor-workspace.css +276 -0
- package/dist/patterns/empty-state/empty-state.css +260 -260
- package/dist/patterns/error-state/error-state.css +272 -272
- package/dist/patterns/form-layout/form-layout.css +106 -106
- package/dist/patterns/index.css +4 -0
- package/dist/patterns/loading-state/loading-state.css +287 -287
- package/dist/patterns/master-detail/master-detail.css +103 -103
- package/dist/patterns/notification-center/notification-center.css +443 -443
- package/dist/patterns/page/page.css +303 -303
- package/dist/patterns/profile-header/profile-header.css +205 -0
- package/dist/patterns/profile-menu/profile-menu.css +298 -298
- package/dist/patterns/record-list/record-list.css +302 -302
- package/dist/patterns/resource-card/resource-card.css +258 -0
- package/dist/patterns/search-bar/search-bar.css +457 -457
- package/dist/patterns/settings-layout/settings-layout.css +283 -150
- package/dist/patterns/workflow/workflow.css +168 -168
- package/dist/shell/app-shell/app-shell.css +429 -211
- package/dist/shell/content-frame/content-frame.css +93 -93
- package/dist/shell/header/header.css +328 -328
- package/dist/shell/index.css +8 -8
- package/dist/shell/mobile-nav/mobile-nav.css +254 -254
- package/dist/shell/navbar/navbar.css +28 -1
- package/dist/shell/sidebar/sidebar.css +923 -314
- package/dist/styles/accessibility.css +150 -150
- package/dist/styles/animations/motion.css +162 -162
- package/dist/styles/appearance/accent.css +215 -215
- package/dist/styles/appearance/density.css +61 -61
- package/dist/styles/appearance/motion.css +48 -40
- package/dist/styles/base.css +83 -83
- package/dist/styles/index.css +29 -28
- package/dist/styles/localization.css +56 -56
- package/dist/styles/reset.css +51 -51
- package/dist/styles/responsive.css +101 -101
- package/dist/styles/themes/dark.css +225 -202
- package/dist/styles/themes/high-contrast.css +378 -290
- package/dist/styles/themes/light.css +224 -201
- package/dist/styles/tokens/breakpoints.css +37 -37
- package/dist/styles/tokens/color.css +102 -102
- package/dist/styles/tokens/compatibility.css +33 -33
- package/dist/styles/tokens/elevation.css +33 -26
- package/dist/styles/tokens/index.css +9 -9
- package/dist/styles/tokens/motion.css +55 -36
- package/dist/styles/tokens/radius.css +26 -26
- package/dist/styles/tokens/spacing.css +56 -56
- package/dist/styles/tokens/typography.css +85 -85
- package/dist/styles/tokens/z-index.css +14 -14
- package/dist/styles/utilities/glass.css +97 -0
- package/dist/styles/utilities/layout.css +153 -153
- package/dist/styles/utilities/text.css +152 -152
- package/dist/styles/utilities/visibility.css +47 -47
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/NEETECHS_UI_UPGRADE_PLAN.md +312 -192
- package/docs/accessibility.md +218 -218
- package/docs/appearance-and-theming.md +150 -150
- package/docs/brand-palette.md +36 -36
- package/docs/component-architecture.md +137 -137
- package/docs/component-guidelines.md +64 -64
- package/docs/components.md +326 -173
- package/docs/content-and-terminology.md +207 -207
- package/docs/design-system-baseline-audit.md +226 -226
- package/docs/design-token-contract.md +279 -279
- package/docs/glass-and-motion.md +310 -0
- package/docs/localization-and-rtl.md +147 -147
- package/docs/migration.md +193 -193
- package/docs/page-patterns-and-workflows.md +301 -275
- package/docs/responsive-and-adaptive-design.md +351 -351
- package/docs/semantic-role-migration-audit.md +77 -77
- package/docs/site-chrome.md +320 -313
- package/docs/states-feedback-and-recovery.md +206 -206
- package/docs/theming.md +5 -5
- package/package.json +2 -1
- package/src/ai/ai-action-button/ai-action-button.css +271 -271
- package/src/ai/ai-approval-card/ai-approval-card.css +323 -323
- package/src/ai/ai-conversation-panel/ai-conversation-panel.css +447 -447
- package/src/ai/ai-prompt-input/ai-prompt-input.css +380 -380
- package/src/ai/ai-proposal-card/ai-proposal-card.css +358 -358
- package/src/ai/ai-suggestion-card/ai-suggestion-card.css +295 -295
- package/src/ai/ai-tool-call/ai-tool-call.css +256 -256
- package/src/ai/index.css +7 -7
- package/src/appearance/cache.ts +236 -236
- package/src/appearance/cookie.ts +184 -184
- package/src/appearance/index.ts +86 -86
- package/src/appearance/preference.ts +121 -121
- package/src/appearance/theme-controller.ts +384 -384
- package/src/appearance/types.ts +61 -61
- package/src/behaviors/announcer.ts +222 -222
- package/src/behaviors/calendar.ts +92 -92
- package/src/behaviors/data-grid.ts +133 -133
- package/src/behaviors/dialog.ts +203 -203
- package/src/behaviors/direction.ts +34 -34
- package/src/behaviors/drawer.ts +210 -210
- package/src/behaviors/dropdown.ts +344 -344
- package/src/behaviors/focus-trap.ts +304 -304
- package/src/behaviors/forms.ts +205 -205
- package/src/behaviors/ids.ts +47 -47
- package/src/behaviors/index.ts +1 -0
- package/src/behaviors/keyboard.ts +305 -305
- package/src/behaviors/overlay.ts +344 -344
- package/src/behaviors/selection-indicator.ts +162 -0
- package/src/behaviors/sidebar.ts +14 -4
- package/src/behaviors/state.ts +282 -282
- package/src/behaviors/tabs.ts +137 -137
- package/src/behaviors/viewport.ts +61 -61
- package/src/components/alert/alert.css +226 -220
- package/src/components/avatar/avatar.css +298 -220
- package/src/components/badge/badge.css +180 -174
- package/src/components/breadcrumb/breadcrumb.css +207 -207
- package/src/components/button/button.css +278 -238
- package/src/components/card/card.css +336 -265
- package/src/components/checkbox/checkbox.css +189 -189
- package/src/components/chip/chip.css +269 -269
- package/src/components/choice-card/choice-card.css +244 -0
- package/src/components/data-grid/data-grid.css +520 -520
- package/src/components/description-list/description-list.css +187 -187
- package/src/components/dialog/dialog.css +348 -339
- package/src/components/disclosure/disclosure.css +154 -0
- package/src/components/dock/dock.css +319 -0
- package/src/components/drawer/drawer.css +493 -484
- package/src/components/dropdown/dropdown.css +325 -316
- package/src/components/fab/fab.css +281 -0
- package/src/components/icon-button/icon-button.css +162 -162
- package/src/components/index.css +4 -0
- package/src/components/input/input.css +163 -163
- package/src/components/menu/menu.css +315 -315
- package/src/components/pagination/pagination.css +250 -250
- package/src/components/panel/panel.css +316 -284
- package/src/components/popover/popover.css +22 -0
- package/src/components/progress/progress.css +268 -256
- package/src/components/radio/radio.css +166 -166
- package/src/components/segmented-control/segmented-control.css +264 -205
- package/src/components/select/select.css +117 -117
- package/src/components/skeleton/skeleton.css +267 -267
- package/src/components/split-button/split-button.css +292 -292
- package/src/components/stat/stat.css +433 -403
- package/src/components/switch/switch.css +195 -195
- package/src/components/table/table.css +220 -220
- package/src/components/tabs/tabs.css +393 -293
- package/src/components/textarea/textarea.css +86 -86
- package/src/components/toast/toast.css +345 -345
- package/src/components/tooltip/tooltip.css +267 -258
- package/src/domain/billing/index.css +629 -629
- package/src/domain/calendar/agenda-list/agenda-list.css +224 -224
- package/src/domain/calendar/day-slice/day-slice.css +384 -384
- package/src/domain/calendar/day-timeline/day-timeline.css +332 -332
- package/src/domain/calendar/event-card/event-card.css +338 -338
- package/src/domain/calendar/index.css +5 -5
- package/src/domain/calendar/month-grid/month-grid.css +426 -426
- package/src/domain/calendar/week-grid/week-grid.css +487 -480
- package/src/domain/companies/index.css +526 -526
- package/src/domain/index.css +3 -3
- package/src/index.css +5 -5
- package/src/index.ts +7 -7
- package/src/localization/index.ts +56 -56
- package/src/patterns/command-palette/command-palette.css +488 -447
- package/src/patterns/company-switcher/company-switcher.css +390 -390
- package/src/patterns/content-state/content-state.css +236 -236
- package/src/patterns/document-preview/document-preview.css +169 -0
- package/src/patterns/editor-workspace/editor-workspace.css +276 -0
- package/src/patterns/empty-state/empty-state.css +260 -260
- package/src/patterns/error-state/error-state.css +272 -272
- package/src/patterns/form-layout/form-layout.css +106 -106
- package/src/patterns/index.css +4 -0
- package/src/patterns/loading-state/loading-state.css +287 -287
- package/src/patterns/master-detail/master-detail.css +103 -103
- package/src/patterns/notification-center/notification-center.css +443 -443
- package/src/patterns/page/page.css +303 -303
- package/src/patterns/profile-header/profile-header.css +205 -0
- package/src/patterns/profile-menu/profile-menu.css +298 -298
- package/src/patterns/record-list/record-list.css +302 -302
- package/src/patterns/resource-card/resource-card.css +258 -0
- package/src/patterns/search-bar/search-bar.css +457 -457
- package/src/patterns/settings-layout/settings-layout.css +283 -150
- package/src/patterns/workflow/workflow.css +168 -168
- package/src/shell/app-shell/app-shell.css +429 -211
- package/src/shell/content-frame/content-frame.css +93 -93
- package/src/shell/header/header.css +328 -328
- package/src/shell/index.css +8 -8
- package/src/shell/mobile-nav/mobile-nav.css +254 -254
- package/src/shell/navbar/navbar.css +28 -1
- package/src/shell/sidebar/sidebar.css +923 -314
- package/src/styles/accessibility.css +150 -150
- package/src/styles/animations/motion.css +162 -162
- package/src/styles/appearance/accent.css +215 -215
- package/src/styles/appearance/density.css +61 -61
- package/src/styles/appearance/motion.css +48 -40
- package/src/styles/base.css +83 -83
- package/src/styles/index.css +29 -28
- package/src/styles/localization.css +56 -56
- package/src/styles/reset.css +51 -51
- package/src/styles/responsive.css +101 -101
- package/src/styles/themes/dark.css +225 -202
- package/src/styles/themes/high-contrast.css +378 -290
- package/src/styles/themes/light.css +224 -201
- package/src/styles/tokens/breakpoints.css +37 -37
- package/src/styles/tokens/color.css +102 -102
- package/src/styles/tokens/compatibility.css +33 -33
- package/src/styles/tokens/elevation.css +33 -26
- package/src/styles/tokens/index.css +9 -9
- package/src/styles/tokens/motion.css +55 -36
- package/src/styles/tokens/radius.css +26 -26
- package/src/styles/tokens/spacing.css +56 -56
- package/src/styles/tokens/typography.css +85 -85
- package/src/styles/tokens/z-index.css +14 -14
- package/src/styles/utilities/glass.css +97 -0
- package/src/styles/utilities/layout.css +153 -153
- package/src/styles/utilities/text.css +152 -152
- package/src/styles/utilities/visibility.css +47 -47
- package/src/types/index.ts +126 -126
- package/src/version.ts +1 -1
|
@@ -1,192 +1,312 @@
|
|
|
1
|
-
# Neetechs UI upgrade plan
|
|
2
|
-
|
|
3
|
-
Single progress tracker for the 8-stage `@neetechs/ui` upgrade. Site chrome
|
|
4
|
-
(Header, Navbar, Account dropdown, Mobile navigation, Footer) is part of
|
|
5
|
-
Stages 4–6 below; there is no separate plan.
|
|
6
|
-
|
|
7
|
-
**Current stage:** 8: 0.1.0 published to npm on 2026-11-15 (local `npm publish` by the owner account, tagged `v0.1.0`); consumer migrations can start.
|
|
8
|
-
|
|
9
|
-
## Billing-referenced design upgrade (2026-11-15)
|
|
10
|
-
|
|
11
|
-
Neetechs_Billing (Angular, consuming 0.0.4) was audited as the visual quality
|
|
12
|
-
reference: global styles, `billing-shell`, `_billing-page-theme`,
|
|
13
|
-
`_billing-detail-theme`, dashboard, invoice detail, stat/action/page-header
|
|
14
|
-
cards, overlays, right drawer, desktop/mobile header, and status badges.
|
|
15
|
-
Billing was not modified. Its reusable patterns were rebuilt on semantic
|
|
16
|
-
tokens; nothing was copied verbatim.
|
|
17
|
-
|
|
18
|
-
### Comparison
|
|
19
|
-
|
|
20
|
-
| Area | Billing | Design System before | Result |
|
|
21
|
-
|---|---|---|---|
|
|
22
|
-
| KPI / stat cards | Compact cards, sentence-case labels, large tabular values, short tone bar, tinted exceptional states, skeleton loading, featured full-width card | Only `.nt-billing-metric` (finance-only, small value, no tone bar, no loading contract) | **Added** `.nt-stat` + intrinsic `.nt-stat-grid`; enhanced `.nt-billing-metric` |
|
|
23
|
-
| Detail fields, totals | `dl` grids with muted labels, inline totals with dividers, boxed grand total, breakdown tiles | `.nt-billing-amount-list` only | **Added** `.nt-description-list`; enhanced amount list (`--divided`, `--grand`) |
|
|
24
|
-
| Recent items / health list | Bordered rows with title + meta + end-aligned amount, status dot, calm hover | Tables, data grid, notification center only | **Added** `.nt-record-list` |
|
|
25
|
-
| Action bar (document header) | Eyebrow, title, inline status, contextual actions on a surface | `.nt-page-header` (no surface or status slot) | **Enhanced** `--surface`, `--compact`, `__title-row`, `__status` |
|
|
26
|
-
| Filter toolbar | Bordered surface, auto-fit field grid, actions aligned to fields | `.nt-page-toolbar` (inline only) | **Enhanced** `--surface`, `__fields`, `__actions` |
|
|
27
|
-
| Sidebar | Collapsible groups with chevrons, icon rail with section dividers, floating panel, off-canvas on mobile, selection-styled active item | Flat sections; rail used `display: none` on labels (accessible names lost); no groups; hidden on mobile | **Enhanced** groups, indicator, rail a11y fix, floating, off-canvas + `ntCreateSidebar` |
|
|
28
|
-
| Skip link | Pill sliding from the top | None | **Added** `.nt-skip-link` |
|
|
29
|
-
| Dialog, drawer, dropdown, tooltip, toast motion | Billing re-implements entry animations locally | Already richer in the DS (open/closed keyframes, swipe toasts, mobile sheets, focus management) | **Kept DS**; Billing should drop its local copies |
|
|
30
|
-
| Inputs, focus halo, tabular numerals, status badges | Local tag-level styles | Already in the DS | **Kept DS**; added generic billing status tones |
|
|
31
|
-
|
|
32
|
-
### Strongest Billing patterns adopted
|
|
33
|
-
1. Compact, calm workspace density: radius-xl panels, subtle borders, no heavy shadows.
|
|
34
|
-
2. One headline figure per card with a tone bar instead of tinting the whole card.
|
|
35
|
-
3. Sentence-case labels (Billing's own final override dropped uppercase labels).
|
|
36
|
-
4. Selection-fill active navigation.
|
|
37
|
-
5. Collapsible navigation groups and an icon rail with dividers.
|
|
38
|
-
6. Inline status beside the document reference.
|
|
39
|
-
7. A boxed grand total in totals cards.
|
|
40
|
-
8. Tabular numerals everywhere amounts appear.
|
|
41
|
-
|
|
42
|
-
### Motion and microinteractions
|
|
43
|
-
- Sidebar: active indicator grows in (`--nt-duration-normal`, `--nt-ease-emphasized`);
|
|
44
|
-
group height animates through `grid-template-rows` and closed items leave the tab
|
|
45
|
-
order through delayed `visibility`; chevron rotation is direction-aware; rail width
|
|
46
|
-
animates on the shell grid; off-canvas slides in with `--nt-ease-enter` and out
|
|
47
|
-
with `--nt-ease-exit`; the backdrop fades.
|
|
48
|
-
- Buttons: pending state keeps the button width (no layout shift); success and error play one halo pulse.
|
|
49
|
-
- Cards and stats: hover lift, pressed reset, selection ring.
|
|
50
|
-
- Stats: the loading pulse keeps the value footprint.
|
|
51
|
-
- Records: a border-strengthening hover and a chevron nudge toward the reading direction.
|
|
52
|
-
- Skeleton shimmer follows RTL. The skip link slides in.
|
|
53
|
-
- Every new transition and animation is disabled under `prefers-reduced-motion`, and the
|
|
54
|
-
shell honors `data-nt-motion`.
|
|
55
|
-
|
|
56
|
-
### Intentionally not copied
|
|
57
|
-
| Billing pattern | Reason |
|
|
58
|
-
|---|---|
|
|
59
|
-
| Orange radial-gradient invoice header with a 5rem invoice number | Hardcoded `#f7931a`/rgba; conflicts with the blue default accent and token rules |
|
|
60
|
-
| Tag-level form styling inside `.billing-workspace` (`label`, `input`, `dt`) | The DS styles opt-in classes; global tag rules would leak into consumers |
|
|
61
|
-
| Modal backdrops with literal rgba and blur, z-index literals (40, 1000, 2200) | The DS has semantic backdrop and z-index scales (`docs/layering.md`) |
|
|
62
|
-
| Emoji language menu in `<details>` | Covered by `.nt-dropdown`/`ntCreateMenu` with keyboard support |
|
|
63
|
-
| Go-to-top button, radial-gradient page spinner, light-only `selection-loader` | Low reuse value or hardcoded colors; skeleton and loading-state already cover loading |
|
|
64
|
-
| RUT/ROT tax-reduction card markup | Swedish-tax-specific; generalized as `.nt-stat--wide` + `.nt-description-list--boxed` |
|
|
65
|
-
| Uppercase micro labels | Billing itself moved to sentence case; the DS keeps uppercase only for eyebrows |
|
|
66
|
-
| `::ng-deep`, `!important` overrides, Angular services and routing | Framework code and business logic stay out of the package |
|
|
67
|
-
|
|
68
|
-
### Tests (2026-11-15, Windows, Node 24, Chromium; local, after `npm ci`)
|
|
69
|
-
| Command | Result |
|
|
70
|
-
|---|---|
|
|
71
|
-
| `npm test` (static contracts, build, `check:docs`, `check:api`, unit) | pass: 124/124 unit (+7 new) |
|
|
72
|
-
| `npx playwright test` | pass: 93/93 (+25 new in `workspace.spec.mjs`, including axe in 3 themes and a stat-grid snapshot); all 4 pre-existing snapshots unchanged |
|
|
73
|
-
| `npm run check:package` | pass: 282.7 kB packed, 381 files, clean consumer install + import |
|
|
74
|
-
| `check:api` baseline update | +127 additions, 0 removals |
|
|
75
|
-
| GitHub Actions on `235e000` (ubuntu) | **failed**: only the new stat-grid snapshot (Linux fallback font wrapped labels at a 1280px viewport; reproduced locally with Verdana) |
|
|
76
|
-
| GitHub Actions on `57ebc72` (ubuntu, full gate incl. Playwright and package check; publish skipped) | pass |
|
|
77
|
-
|
|
78
|
-
### Unresolved issues
|
|
79
|
-
- Billing still ships local duplicates (`.billing-sidenav`, `.finance-stat-card`,
|
|
80
|
-
`.finance-filter-toolbar`, `.dashboard-record`, `.action-bar`, `.totals-card`, a
|
|
81
|
-
right-drawer animation). Remove them during the Billing migration (Prompt 14);
|
|
82
|
-
Billing was intentionally not modified here.
|
|
83
|
-
- `.nt-mobile-only` sets `display: none` at the utility layer and loses to components
|
|
84
|
-
loaded later (for example `.nt-button`). This predates this work and was left
|
|
85
|
-
unchanged because raising utility specificity affects every consumer; the shell uses
|
|
86
|
-
scoped toggle classes instead.
|
|
87
|
-
- `grid-template-rows`/`grid-template-columns` transitions and `:has()` need current
|
|
88
|
-
evergreen browsers. Older engines fall back to instant state changes and to the
|
|
89
|
-
previous pending-button behavior; nothing breaks.
|
|
90
|
-
- The rail uses `title` for icon-only labels; a positioned flyout tooltip would be
|
|
91
|
-
clipped by the scrolling nav and was not added.
|
|
92
|
-
- The stat-grid snapshot is captured at 1600px so text never wraps under either
|
|
93
|
-
platform's font metrics; it passes on Windows and Linux CI.
|
|
94
|
-
- `src.zip` is still tracked (owner decision, unchanged).
|
|
95
|
-
|
|
96
|
-
##
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
|
110
|
-
|
|
111
|
-
|
|
|
112
|
-
|
|
|
113
|
-
|
|
|
114
|
-
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
|
119
|
-
|
|
120
|
-
|
|
|
121
|
-
|
|
|
122
|
-
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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
|
-
|
|
|
159
|
-
|
|
160
|
-
|
|
|
161
|
-
|
|
|
162
|
-
|
|
|
163
|
-
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
1
|
+
# Neetechs UI upgrade plan
|
|
2
|
+
|
|
3
|
+
Single progress tracker for the 8-stage `@neetechs/ui` upgrade. Site chrome
|
|
4
|
+
(Header, Navbar, Account dropdown, Mobile navigation, Footer) is part of
|
|
5
|
+
Stages 4–6 below; there is no separate plan.
|
|
6
|
+
|
|
7
|
+
**Current stage:** 8: 0.1.0 published to npm on 2026-11-15 (local `npm publish` by the owner account, tagged `v0.1.0`); consumer migrations can start. MyAccount design adoption is on `main` for the next release (see below).
|
|
8
|
+
|
|
9
|
+
## Billing-referenced design upgrade (2026-11-15)
|
|
10
|
+
|
|
11
|
+
Neetechs_Billing (Angular, consuming 0.0.4) was audited as the visual quality
|
|
12
|
+
reference: global styles, `billing-shell`, `_billing-page-theme`,
|
|
13
|
+
`_billing-detail-theme`, dashboard, invoice detail, stat/action/page-header
|
|
14
|
+
cards, overlays, right drawer, desktop/mobile header, and status badges.
|
|
15
|
+
Billing was not modified. Its reusable patterns were rebuilt on semantic
|
|
16
|
+
tokens; nothing was copied verbatim.
|
|
17
|
+
|
|
18
|
+
### Comparison
|
|
19
|
+
|
|
20
|
+
| Area | Billing | Design System before | Result |
|
|
21
|
+
|---|---|---|---|
|
|
22
|
+
| KPI / stat cards | Compact cards, sentence-case labels, large tabular values, short tone bar, tinted exceptional states, skeleton loading, featured full-width card | Only `.nt-billing-metric` (finance-only, small value, no tone bar, no loading contract) | **Added** `.nt-stat` + intrinsic `.nt-stat-grid`; enhanced `.nt-billing-metric` |
|
|
23
|
+
| Detail fields, totals | `dl` grids with muted labels, inline totals with dividers, boxed grand total, breakdown tiles | `.nt-billing-amount-list` only | **Added** `.nt-description-list`; enhanced amount list (`--divided`, `--grand`) |
|
|
24
|
+
| Recent items / health list | Bordered rows with title + meta + end-aligned amount, status dot, calm hover | Tables, data grid, notification center only | **Added** `.nt-record-list` |
|
|
25
|
+
| Action bar (document header) | Eyebrow, title, inline status, contextual actions on a surface | `.nt-page-header` (no surface or status slot) | **Enhanced** `--surface`, `--compact`, `__title-row`, `__status` |
|
|
26
|
+
| Filter toolbar | Bordered surface, auto-fit field grid, actions aligned to fields | `.nt-page-toolbar` (inline only) | **Enhanced** `--surface`, `__fields`, `__actions` |
|
|
27
|
+
| Sidebar | Collapsible groups with chevrons, icon rail with section dividers, floating panel, off-canvas on mobile, selection-styled active item | Flat sections; rail used `display: none` on labels (accessible names lost); no groups; hidden on mobile | **Enhanced** groups, indicator, rail a11y fix, floating, off-canvas + `ntCreateSidebar` |
|
|
28
|
+
| Skip link | Pill sliding from the top | None | **Added** `.nt-skip-link` |
|
|
29
|
+
| Dialog, drawer, dropdown, tooltip, toast motion | Billing re-implements entry animations locally | Already richer in the DS (open/closed keyframes, swipe toasts, mobile sheets, focus management) | **Kept DS**; Billing should drop its local copies |
|
|
30
|
+
| Inputs, focus halo, tabular numerals, status badges | Local tag-level styles | Already in the DS | **Kept DS**; added generic billing status tones |
|
|
31
|
+
|
|
32
|
+
### Strongest Billing patterns adopted
|
|
33
|
+
1. Compact, calm workspace density: radius-xl panels, subtle borders, no heavy shadows.
|
|
34
|
+
2. One headline figure per card with a tone bar instead of tinting the whole card.
|
|
35
|
+
3. Sentence-case labels (Billing's own final override dropped uppercase labels).
|
|
36
|
+
4. Selection-fill active navigation.
|
|
37
|
+
5. Collapsible navigation groups and an icon rail with dividers.
|
|
38
|
+
6. Inline status beside the document reference.
|
|
39
|
+
7. A boxed grand total in totals cards.
|
|
40
|
+
8. Tabular numerals everywhere amounts appear.
|
|
41
|
+
|
|
42
|
+
### Motion and microinteractions
|
|
43
|
+
- Sidebar: active indicator grows in (`--nt-duration-normal`, `--nt-ease-emphasized`);
|
|
44
|
+
group height animates through `grid-template-rows` and closed items leave the tab
|
|
45
|
+
order through delayed `visibility`; chevron rotation is direction-aware; rail width
|
|
46
|
+
animates on the shell grid; off-canvas slides in with `--nt-ease-enter` and out
|
|
47
|
+
with `--nt-ease-exit`; the backdrop fades.
|
|
48
|
+
- Buttons: pending state keeps the button width (no layout shift); success and error play one halo pulse.
|
|
49
|
+
- Cards and stats: hover lift, pressed reset, selection ring.
|
|
50
|
+
- Stats: the loading pulse keeps the value footprint.
|
|
51
|
+
- Records: a border-strengthening hover and a chevron nudge toward the reading direction.
|
|
52
|
+
- Skeleton shimmer follows RTL. The skip link slides in.
|
|
53
|
+
- Every new transition and animation is disabled under `prefers-reduced-motion`, and the
|
|
54
|
+
shell honors `data-nt-motion`.
|
|
55
|
+
|
|
56
|
+
### Intentionally not copied
|
|
57
|
+
| Billing pattern | Reason |
|
|
58
|
+
|---|---|
|
|
59
|
+
| Orange radial-gradient invoice header with a 5rem invoice number | Hardcoded `#f7931a`/rgba; conflicts with the blue default accent and token rules |
|
|
60
|
+
| Tag-level form styling inside `.billing-workspace` (`label`, `input`, `dt`) | The DS styles opt-in classes; global tag rules would leak into consumers |
|
|
61
|
+
| Modal backdrops with literal rgba and blur, z-index literals (40, 1000, 2200) | The DS has semantic backdrop and z-index scales (`docs/layering.md`) |
|
|
62
|
+
| Emoji language menu in `<details>` | Covered by `.nt-dropdown`/`ntCreateMenu` with keyboard support |
|
|
63
|
+
| Go-to-top button, radial-gradient page spinner, light-only `selection-loader` | Low reuse value or hardcoded colors; skeleton and loading-state already cover loading |
|
|
64
|
+
| RUT/ROT tax-reduction card markup | Swedish-tax-specific; generalized as `.nt-stat--wide` + `.nt-description-list--boxed` |
|
|
65
|
+
| Uppercase micro labels | Billing itself moved to sentence case; the DS keeps uppercase only for eyebrows |
|
|
66
|
+
| `::ng-deep`, `!important` overrides, Angular services and routing | Framework code and business logic stay out of the package |
|
|
67
|
+
|
|
68
|
+
### Tests (2026-11-15, Windows, Node 24, Chromium; local, after `npm ci`)
|
|
69
|
+
| Command | Result |
|
|
70
|
+
|---|---|
|
|
71
|
+
| `npm test` (static contracts, build, `check:docs`, `check:api`, unit) | pass: 124/124 unit (+7 new) |
|
|
72
|
+
| `npx playwright test` | pass: 93/93 (+25 new in `workspace.spec.mjs`, including axe in 3 themes and a stat-grid snapshot); all 4 pre-existing snapshots unchanged |
|
|
73
|
+
| `npm run check:package` | pass: 282.7 kB packed, 381 files, clean consumer install + import |
|
|
74
|
+
| `check:api` baseline update | +127 additions, 0 removals |
|
|
75
|
+
| GitHub Actions on `235e000` (ubuntu) | **failed**: only the new stat-grid snapshot (Linux fallback font wrapped labels at a 1280px viewport; reproduced locally with Verdana) |
|
|
76
|
+
| GitHub Actions on `57ebc72` (ubuntu, full gate incl. Playwright and package check; publish skipped) | pass |
|
|
77
|
+
|
|
78
|
+
### Unresolved issues
|
|
79
|
+
- Billing still ships local duplicates (`.billing-sidenav`, `.finance-stat-card`,
|
|
80
|
+
`.finance-filter-toolbar`, `.dashboard-record`, `.action-bar`, `.totals-card`, a
|
|
81
|
+
right-drawer animation). Remove them during the Billing migration (Prompt 14);
|
|
82
|
+
Billing was intentionally not modified here.
|
|
83
|
+
- `.nt-mobile-only` sets `display: none` at the utility layer and loses to components
|
|
84
|
+
loaded later (for example `.nt-button`). This predates this work and was left
|
|
85
|
+
unchanged because raising utility specificity affects every consumer; the shell uses
|
|
86
|
+
scoped toggle classes instead.
|
|
87
|
+
- `grid-template-rows`/`grid-template-columns` transitions and `:has()` need current
|
|
88
|
+
evergreen browsers. Older engines fall back to instant state changes and to the
|
|
89
|
+
previous pending-button behavior; nothing breaks.
|
|
90
|
+
- The rail uses `title` for icon-only labels; a positioned flyout tooltip would be
|
|
91
|
+
clipped by the scrolling nav and was not added.
|
|
92
|
+
- The stat-grid snapshot is captured at 1600px so text never wraps under either
|
|
93
|
+
platform's font metrics; it passes on Windows and Linux CI.
|
|
94
|
+
- `src.zip` is still tracked (owner decision, unchanged).
|
|
95
|
+
|
|
96
|
+
## MyAccount Design Adoption (2026-11-15)
|
|
97
|
+
|
|
98
|
+
Neetechs_Myaccount (Angular, consuming 0.0.4, commit `d7658b0`) was audited as
|
|
99
|
+
read-only reference material after the Billing upgrade and the 0.1.0 release:
|
|
100
|
+
profile hero and profile page, settings shell, AI settings (provider cards,
|
|
101
|
+
connection overview, credit wallet, usage summary), CV library, CV preview and
|
|
102
|
+
template picker, Resume Studio, desktop/mobile header, and global styles.
|
|
103
|
+
MyAccount was not modified. The work targets the next release: 0.1.0 stays
|
|
104
|
+
exactly as published, and every change is additive (verified against the
|
|
105
|
+
published tarball).
|
|
106
|
+
|
|
107
|
+
### Comparison results
|
|
108
|
+
|
|
109
|
+
| Area | MyAccount | Design System before | Better / result |
|
|
110
|
+
|---|---|---|---|
|
|
111
|
+
| Profile hero | 96px rounded avatar, name + handle, headline/location with inline "Add …" actions, completion bar, CV call-to-action panel | Avatar up to 4rem, no profile header, no inline text action | **MyAccount** → added `.nt-profile-header`, `.nt-avatar--2xl`, `--editable`, `.nt-button--link`, `.nt-progress--reveal` |
|
|
112
|
+
| Section navigation | Card-wrapped nav, completion dots, inline-start bar that grows in, in-page anchors | `.nt-settings-layout` nav with selection fill only | **MyAccount** → enhanced settings-layout nav (bar, status, groups, surface, sticky, `aria-current="location"`) |
|
|
113
|
+
| Section cards | Accent edge on core sections, contextual Edit/Manage | Card header with actions | **Combined** → `.nt-card--edge`; actions already covered by `nt-card__actions` |
|
|
114
|
+
| Provider / CV cards | Icon tile, badges, status pill, fact tiles, action row; "in use" border; document tile for CVs | None | **MyAccount** (hardcoded colors) → `.nt-resource-card` on tokens, reusing the Billing-derived description list |
|
|
115
|
+
| Credit wallet / usage | Large balance with side facts and a threshold warning; 4-up stat grid; breakdown rows | `.nt-stat`, `.nt-stat-grid`, `.nt-description-list` (from Billing) | **DS for stats and breakdowns**; added `.nt-stat--split` for the wallet layout |
|
|
116
|
+
| Template picker | Selectable option cards | None (only `.nt-card--selected`) | **MyAccount** → `.nt-choice-card` on native inputs |
|
|
117
|
+
| Archived CVs / history | Native `<details>` with ad-hoc styling | None | **MyAccount idea, DS quality** → `.nt-disclosure` (also fits Billing's RUT claims) |
|
|
118
|
+
| Resume Studio | Split editor/preview, pane headings, status footer, A4 paper on a grey canvas, horizontal scroll on phones, print-only page | None | **MyAccount** (hardcoded colors) → `.nt-editor-workspace`, `.nt-editor-status`, `.nt-document-preview`, `--nt-document-*` tokens |
|
|
119
|
+
| Header nav | Underline that scales in from the center on hover/current | Instant inset bar | **MyAccount** → navbar underline |
|
|
120
|
+
| Account dropdown, mobile nav, footer, drawers, toasts | Local re-implementations with a z-index hot-fix | Package versions with keyboard, layering, RTL, and tests | **DS already better**; no change |
|
|
121
|
+
| Buttons, forms, badges, alerts, tables | Package classes plus local overrides | Package | **DS already better**; added link button and info badge |
|
|
122
|
+
| Motion | Blur fade-ins, pop-in avatar, shimmer sweep, looping pulses (most disabled by MyAccount's own final overrides) | Token-driven motion | **DS**; adopted only the purposeful ones (below) |
|
|
123
|
+
|
|
124
|
+
### Components improved or added
|
|
125
|
+
- **Added:** `.nt-profile-header`, `.nt-resource-card` (+ `-grid`, `-list`), `.nt-editor-workspace`
|
|
126
|
+
/ `.nt-editor-pane` / `.nt-editor-status`, `.nt-document-preview`, `.nt-choice-card` /
|
|
127
|
+
`.nt-choice-group`, `.nt-disclosure` / `.nt-disclosure-group`.
|
|
128
|
+
- **Improved:** button (`--link`), avatar (`--2xl`, `--editable` + `__overlay`), badge (`--info`),
|
|
129
|
+
card (`--edge`; contrast of muted text on tinted cards), progress (`--reveal`), stat
|
|
130
|
+
(`--split`), alert (tinted description contrast), settings layout navigation, navbar.
|
|
131
|
+
- **Tokens:** `--nt-document-canvas`, `--nt-document-paper`, `--nt-document-ink`,
|
|
132
|
+
`--nt-document-ink-muted`, `--nt-document-rule` in dark, light, and high-contrast themes.
|
|
133
|
+
- **Billing additions reused, not duplicated:** the credit wallet is `.nt-stat--split` with a
|
|
134
|
+
`.nt-description-list--boxed` aside; resource-card facts use the description list; usage
|
|
135
|
+
metrics use `.nt-stat-grid`; profile sections use `.nt-card--padded`.
|
|
136
|
+
|
|
137
|
+
### Animations and interaction improvements
|
|
138
|
+
- Section-nav current bar grows in (`--nt-ease-emphasized`); in narrow row mode it becomes an
|
|
139
|
+
underline.
|
|
140
|
+
- Navbar underline grows from the center: neutral on hover, accent for the current page.
|
|
141
|
+
- Avatar "Change" overlay fades in on hover and keyboard focus (always visible on touch).
|
|
142
|
+
- Link buttons fade their underline in.
|
|
143
|
+
- The completion bar fills from zero on first render without moving the track.
|
|
144
|
+
- Choice-card dot or tick grows in; checked cards get a selection ring.
|
|
145
|
+
- Disclosure chevron rotates, and the height animates where `::details-content` exists.
|
|
146
|
+
- Editor status pulses while saving and pops once when saved. The focused editor pane is
|
|
147
|
+
marked without layout change.
|
|
148
|
+
- All of these use the existing duration/easing tokens, have no layout shift, and are
|
|
149
|
+
disabled under `prefers-reduced-motion` (tested).
|
|
150
|
+
|
|
151
|
+
### Patterns already covered by the Design System
|
|
152
|
+
Promotional/next-step panels (card `--muted --padded` with eyebrow/title/subtitle), usage
|
|
153
|
+
breakdown rows (`.nt-description-list--inline`), dashed empty states (`.nt-empty-state`),
|
|
154
|
+
overflow action menus (`.nt-dropdown`/`ntCreateMenu`), skeletons, toasts, dialogs and drawers,
|
|
155
|
+
account dropdown, mobile navigation, footer, quota meters (`.nt-progress`).
|
|
156
|
+
|
|
157
|
+
### Intentionally excluded
|
|
158
|
+
| MyAccount pattern | Reason |
|
|
159
|
+
|---|---|
|
|
160
|
+
| Blur-in `fadeSlideUp`/`popIn` entrances and staggered card delays | Motion for its own sake; MyAccount's final overrides already disabled them |
|
|
161
|
+
| Hover shimmer sweep on profile cards, looping `brandPulse` on the active nav dot | Decorative, distracting, and repeated; no information value |
|
|
162
|
+
| Scroll-driven card entrances (`animation-timeline: view()`) | Content should be readable immediately; adds motion without feedback value |
|
|
163
|
+
| Radial-gradient hero and nav-card backgrounds, `--brand-rgb` alpha tints | Bridge-era literals; tokens and accent preferences already cover tinting |
|
|
164
|
+
| Resume Studio's literal palette (`#0c1523`, `#f97316`, …) and Arial résumé typography | Hardcoded; the résumé's own typography is application content, not design-system chrome |
|
|
165
|
+
| `@page` named margins and résumé break rules | Document-specific print rules stay in the application; the pattern provides sheet, margins, page breaks, and print visibility |
|
|
166
|
+
| CV upload/processing, wallet API states, provider connection logic | Business logic and services |
|
|
167
|
+
| `<details>`-based CV action menu | Replaced by the existing accessible menu/dropdown |
|
|
168
|
+
|
|
169
|
+
### Tests and compatibility (2026-11-15, Windows, Node 24, Chromium; local after `npm ci`)
|
|
170
|
+
| Command | Result |
|
|
171
|
+
|---|---|
|
|
172
|
+
| `npm test` | pass: 131/131 unit (+7 in `tests/account-patterns.test.mjs`) and all static contracts |
|
|
173
|
+
| `npx playwright test` | pass: 117/117 (+24 in `account.spec.mjs`: axe in dark, light, high contrast, and RTL; keyboard, focus, responsive, print, and reduced motion; one new snapshot). All 5 pre-existing snapshots unchanged |
|
|
174
|
+
| `npm run check:package` | pass: 299.6 kB packed, 393 files, clean consumer install + import |
|
|
175
|
+
| `check-api --compare` against the published `@neetechs/ui@0.1.0` tarball | pass: nothing removed |
|
|
176
|
+
| `check-api --update` | +123 additions, 0 removals |
|
|
177
|
+
| GitHub Actions `c8247d7`, `4169bc1` (ubuntu) | **failed**: first a real light-theme contrast bug in `.nt-badge--neutral` (fixed in `16ae4f8`), then a timing race in one new test (fixed in `0824ca6`) |
|
|
178
|
+
| GitHub Actions `0824ca6` (ubuntu, full gate incl. Playwright and package check; publish skipped) | pass |
|
|
179
|
+
|
|
180
|
+
Issues found and fixed during testing:
|
|
181
|
+
- Profile header overlapped on phones: a container query cannot restyle its own container.
|
|
182
|
+
The root now wraps intrinsically and only descendants use the query; a unit test guards
|
|
183
|
+
against self-referencing queries.
|
|
184
|
+
- Profile handle rendered `jamie@` in RTL: switched to `unicode-bidi: plaintext`.
|
|
185
|
+
- Light-theme contrast (muted text 4.23–4.34:1) in tinted alerts and muted/tinted cards,
|
|
186
|
+
both predating this work: they now use secondary text.
|
|
187
|
+
- Linux CI (`c8247d7`) flagged `.nt-badge--neutral` at 4.34:1 in the light theme (muted
|
|
188
|
+
text on the muted surface); Windows axe had not. The neutral badge and the base/draft
|
|
189
|
+
`.nt-billing-status` now use the `--nt-neutral-*` tone roles (`fix(badge)` commit).
|
|
190
|
+
- The profile snapshot's height varied with platform font metrics (246px vs 267px). The
|
|
191
|
+
snapshot pins a metric-compatible stack (`"Liberation Sans", Arial`).
|
|
192
|
+
|
|
193
|
+
### Remaining issues
|
|
194
|
+
- `.nt-settings-layout` (from before 0.1.0) also queries its own container; its `@media`
|
|
195
|
+
fallback keeps it working at viewport level, but inside narrow panes on wide screens the
|
|
196
|
+
nav does not switch to row mode. Fixing it needs a wrapper or a layout change, which is a
|
|
197
|
+
breaking markup change; left for a deliberate decision.
|
|
198
|
+
- `::details-content` height animation and `@starting-style` progress reveal need current
|
|
199
|
+
evergreen browsers. Others open instantly or show the final width; nothing breaks.
|
|
200
|
+
- The light theme's `--nt-text-muted` reaches 4.5:1 only on white. Components were fixed
|
|
201
|
+
case by case; a token-level adjustment would be a visible theme change for every consumer.
|
|
202
|
+
- `.nt-mobile-only` utility specificity (see the Billing section) and the tracked `src.zip`
|
|
203
|
+
are unchanged.
|
|
204
|
+
- One local run failed `actions-overlays.spec.mjs` "pass axe (high contrast)" once (it
|
|
205
|
+
predates this work and its page has no changed components); 15 repeated runs and the
|
|
206
|
+
following full run passed. Treated as an intermittent flake; not changed.
|
|
207
|
+
- The package version stays 0.1.0 in `package.json`. The release workflow (semantic-release)
|
|
208
|
+
will compute the next version from these `feat` commits (0.2.0) when the owner runs it;
|
|
209
|
+
nothing was published.
|
|
210
|
+
|
|
211
|
+
### Commits
|
|
212
|
+
`7a56e6f`, `e55c051`, `bb4514a`, `cde3c92`, `997c183`, `896dafd`, `7a73f3c`, `c8247d7`
|
|
213
|
+
(docs), `16ae4f8` (neutral badge contrast), `4169bc1` (docs), `0824ca6` (test race fix), and
|
|
214
|
+
the documentation commit recording these CI results.
|
|
215
|
+
|
|
216
|
+
## Release safety
|
|
217
|
+
|
|
218
|
+
- Pushes to `main` run verification only. npm publishing requires the owner to
|
|
219
|
+
run the release workflow manually with `publish: true` (see CONTRIBUTING.md).
|
|
220
|
+
- No consumer has been switched to the unpublished version. Consumer trials run
|
|
221
|
+
in throwaway clones in a temp directory; consumer repos are untouched.
|
|
222
|
+
|
|
223
|
+
## Stage status
|
|
224
|
+
|
|
225
|
+
| Stage | Status | Evidence |
|
|
226
|
+
|---|---|---|
|
|
227
|
+
| 1. Package audit | done | `docs/design-system-audit.md` |
|
|
228
|
+
| 2. Design tokens | done (verified; no change needed) | 0 undefined tokens, z-index/breakpoint/motion scales, aliases in `tokens/compatibility.css`, `docs/design-token-contract.md`, `docs/layering.md` |
|
|
229
|
+
| 3. Theme system | done | Pre-paint bootstrap (`ntAppearanceBootstrapScript`), `updatePreference(partial)`; dark/light/high-contrast × 5 accents already supported; 140 contrast pairs checked |
|
|
230
|
+
| 4. Components | done | Audit vs. requested catalog: all present except button group and popover → added. **Site chrome:** header brand/nav/account slots, navbar, account dropdown, mobile drawer, footer |
|
|
231
|
+
| 5. Responsive & a11y | done | Header stacking fix, disclosure keyboard contracts, Escape/outside-click/focus-out, focus restore, modal mobile drawer, RTL (logical props + direction-aware arrows), 44px coarse targets, reduced motion, forced colors; `docs/layering.md` |
|
|
232
|
+
| 6. QA, tests, docs | done | +5 unit tests (bootstrap parity across 140 cases), +27 browser tests, `check:docs`, `check:api`, `check:package`; docs: components, site-chrome, layering, migration, CONTRIBUTING, README |
|
|
233
|
+
| 7. Release preparation | done (release candidate 0.1.0) | CHANGELOG, version 0.1.0, `npm pack` contents verified, clean consumer install, API superset of 0.0.4 |
|
|
234
|
+
| 8. Consumer integration | readiness verified; migrations blocked on publish | See "Consumer readiness" |
|
|
235
|
+
|
|
236
|
+
## Site chrome deliverables (Stages 4–6)
|
|
237
|
+
|
|
238
|
+
| Requirement | Implementation | Verified by |
|
|
239
|
+
|---|---|---|
|
|
240
|
+
| Responsive header & footer on tokens | `shell/header.css` additions, `shell/footer.css` (container queries) | `site-chrome.spec.mjs` 320/375/1280px, LTR+RTL |
|
|
241
|
+
| Desktop / tablet / mobile | Navbar ≥ 64rem, mobile drawer below; account collapses to avatar < 40rem | desktop/mobile tests, viewport-grow test |
|
|
242
|
+
| Dark/light/high contrast, RTL, a11y | Semantic tokens only; logical properties; disclosure pattern | axe in dark, light, high contrast, Arabic RTL with menus open |
|
|
243
|
+
| Configurable logos, nav, account, footer, social | Plain markup slots; no routes/URLs/auth in package | `tests/pages/site-chrome.html` working example |
|
|
244
|
+
| Dropdown positioning, z-index, keyboard, outside click | Header layer, `--nt-z-dropdown` panels, `ntCreateNavbar`/`ntCreateAccountMenu` | elementFromPoint hit tests over cards; keyboard and dismissal tests |
|
|
245
|
+
| Framework independence | Plain DOM controllers with `destroy()`/`refresh()` | `check:architecture`, no framework imports |
|
|
246
|
+
| Preserve existing styling | Additive classes; `.nt-header` layer at zero specificity; existing snapshots unchanged | 41 pre-existing browser tests incl. visual snapshots pass |
|
|
247
|
+
|
|
248
|
+
## Discovered bugs
|
|
249
|
+
|
|
250
|
+
| Bug | Status |
|
|
251
|
+
|---|---|
|
|
252
|
+
| CI blocked since 0.0.4 by double-escaped regexes in `tests/brand-palette.test.mjs` | fixed (`38b6f31`) |
|
|
253
|
+
| CI would auto-publish to npm on any green push to `main` | fixed (`38b6f31`) |
|
|
254
|
+
| Published 0.0.4 exports `NEETECHS_UI_VERSION = '0.0.2'` | fixed (`38b6f31`) |
|
|
255
|
+
| Arabic heading test false positive when Noto Sans Arabic is installed | fixed (`38b6f31`) |
|
|
256
|
+
| `test-results/` tracked in git | fixed (`38b6f31`) |
|
|
257
|
+
| Standalone header dropdowns could render behind positioned/hovered cards | fixed (`d69d0c9`) |
|
|
258
|
+
| Theme flash before app bundle runs (no pre-paint bootstrap) | fixed (`03abaf4`) |
|
|
259
|
+
| `NtDisclosureController` types had no implementation | fixed (`57ef4a6`) |
|
|
260
|
+
| README samples used non-existent classes | fixed (`d69d0c9`) |
|
|
261
|
+
| Stale `src.zip` (1.5 MB) tracked in git | open (owner decision; not published) |
|
|
262
|
+
|
|
263
|
+
## Tests executed (2026-11-15, Windows, Node 24.22, Chromium 149)
|
|
264
|
+
|
|
265
|
+
| Command | Result |
|
|
266
|
+
|---|---|
|
|
267
|
+
| `npm test` (7 static contracts, build, `check:docs`, `check:api`, unit) | pass: 117/117 unit |
|
|
268
|
+
| `npx playwright test` | pass: 68/68 |
|
|
269
|
+
| `npm run check:package` | pass: 0.1.0 tarball 258.9 kB, 370 files, clean consumer install + import |
|
|
270
|
+
| `node scripts/check-api.mjs --compare <0.0.4 tarball>` | pass: nothing removed; 83 additions |
|
|
271
|
+
| GitHub Actions on `38b6f31`, `d69d0c9`, `57ef4a6`, `3fca265` (ubuntu, full gate incl. Playwright, publish skipped) | pass; npm still at 0.0.4 |
|
|
272
|
+
| MyAccount trial: `ng build` ×3, `ng test` ×2 | build pass; tests identical 140/161 on 0.0.4 and 0.1.0 |
|
|
273
|
+
|
|
274
|
+
## Consumer readiness (Stage 8)
|
|
275
|
+
|
|
276
|
+
| App | Current | Bridge tokens identical to 0.1.0 | Trial build with 0.1.0 |
|
|
277
|
+
|---|---|---|---|
|
|
278
|
+
| Neetechs_Myaccount | 0.0.4 | 47 / 47 | `ng build` passes on 0.0.4, on 0.1.0, and on 0.1.0 with the bridge deleted; `ng test` 140/161 on both 0.0.4 and 0.1.0 (identical 21 pre-existing failures) |
|
|
279
|
+
| Neetechs_Apply | 0.0.4 | 50 / 51 (keep `--nt-text-label-xs`) | not run |
|
|
280
|
+
| Neetechs_Billing | 0.0.4 | 50 / 52 (keep label-xs, review selection border) | not run |
|
|
281
|
+
| Neetechs_AI | 0.0.4 | 45 / 49 (4 near-identical deltas) | not run |
|
|
282
|
+
| Neetechs_devices | 0.0.4 | no bridge | not run |
|
|
283
|
+
| Neetechs_Frontend, Neetechs_Accounts | not consumers | — | — |
|
|
284
|
+
|
|
285
|
+
### MyAccount trial details (throwaway clone of `d7658b0`, packed 0.1.0 tarball)
|
|
286
|
+
|
|
287
|
+
- Initial bundle: 1.04 MB (0.0.4) → 1.06 MB (0.1.0, +18.8 kB raw CSS for new modules
|
|
288
|
+
because the app imports the full stylesheet) → 1.06 MB minus 1.8 kB with the bridge
|
|
289
|
+
deleted. The app's 1.00 MB budget warning pre-exists on 0.0.4.
|
|
290
|
+
- Tests: the same 21 specs fail on 0.0.4 and 0.1.0 (`NullInjectorError: No provider for
|
|
291
|
+
ActivatedRoute` and similar missing test providers in component specs). Not caused by
|
|
292
|
+
`@neetechs/ui`; recorded as a MyAccount migration issue to fix in that repo.
|
|
293
|
+
- Header z-index: MyAccount's last commit hand-fixed an account dropdown z-index; the
|
|
294
|
+
package header layer covers this case once adopted.
|
|
295
|
+
|
|
296
|
+
### Recorded migration issues
|
|
297
|
+
|
|
298
|
+
| App | Issue | Owner |
|
|
299
|
+
|---|---|---|
|
|
300
|
+
| Neetechs_Myaccount | 21 component specs fail from missing test providers (pre-existing) | MyAccount |
|
|
301
|
+
| Neetechs_Myaccount | Initial bundle budget (1 MB) already exceeded on 0.0.4 | MyAccount |
|
|
302
|
+
| Neetechs_Billing | Local `.site-header` z-index rule duplicates the new package header layer | Billing (remove after upgrade) |
|
|
303
|
+
| Neetechs_AI | Own `useTheme` hook writes `data-nt-theme`; consider the shared controller and `updatePreference` | AI |
|
|
304
|
+
|
|
305
|
+
## Blockers
|
|
306
|
+
|
|
307
|
+
- None. 0.1.0 was published on 2026-11-15 at the owner's request.
|
|
308
|
+
|
|
309
|
+
## Next actions
|
|
310
|
+
|
|
311
|
+
1. Migrate MyAccount (delete the 47-token bridge), then Billing, Apply, AI, devices.
|
|
312
|
+
2. Owner: decide whether to delete `src.zip`.
|