@neetechs/ui 0.0.4 → 0.2.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.
Files changed (311) hide show
  1. package/CHANGELOG.md +138 -0
  2. package/CONTRIBUTING.md +60 -0
  3. package/LICENSE +21 -21
  4. package/README.md +861 -752
  5. package/dist/ai/ai-action-button/ai-action-button.css +271 -271
  6. package/dist/ai/ai-approval-card/ai-approval-card.css +323 -323
  7. package/dist/ai/ai-conversation-panel/ai-conversation-panel.css +447 -447
  8. package/dist/ai/ai-prompt-input/ai-prompt-input.css +380 -380
  9. package/dist/ai/ai-proposal-card/ai-proposal-card.css +358 -358
  10. package/dist/ai/ai-suggestion-card/ai-suggestion-card.css +295 -295
  11. package/dist/ai/ai-tool-call/ai-tool-call.css +256 -256
  12. package/dist/ai/index.css +7 -7
  13. package/dist/appearance/index.d.ts +2 -0
  14. package/dist/appearance/index.d.ts.map +1 -1
  15. package/dist/appearance/index.js +1 -0
  16. package/dist/appearance/index.js.map +1 -1
  17. package/dist/appearance/inline-bootstrap.d.ts +29 -0
  18. package/dist/appearance/inline-bootstrap.d.ts.map +1 -0
  19. package/dist/appearance/inline-bootstrap.js +154 -0
  20. package/dist/appearance/inline-bootstrap.js.map +1 -0
  21. package/dist/appearance/preference.js +1 -1
  22. package/dist/appearance/preference.js.map +1 -1
  23. package/dist/appearance/theme-controller.d.ts +6 -0
  24. package/dist/appearance/theme-controller.d.ts.map +1 -1
  25. package/dist/appearance/theme-controller.js +5 -0
  26. package/dist/appearance/theme-controller.js.map +1 -1
  27. package/dist/behaviors/index.d.ts +3 -0
  28. package/dist/behaviors/index.d.ts.map +1 -1
  29. package/dist/behaviors/index.js +3 -0
  30. package/dist/behaviors/index.js.map +1 -1
  31. package/dist/behaviors/navigation.d.ts +98 -0
  32. package/dist/behaviors/navigation.d.ts.map +1 -0
  33. package/dist/behaviors/navigation.js +295 -0
  34. package/dist/behaviors/navigation.js.map +1 -0
  35. package/dist/behaviors/popover.d.ts +22 -0
  36. package/dist/behaviors/popover.d.ts.map +1 -0
  37. package/dist/behaviors/popover.js +126 -0
  38. package/dist/behaviors/popover.js.map +1 -0
  39. package/dist/behaviors/sidebar.d.ts +78 -0
  40. package/dist/behaviors/sidebar.d.ts.map +1 -0
  41. package/dist/behaviors/sidebar.js +263 -0
  42. package/dist/behaviors/sidebar.js.map +1 -0
  43. package/dist/components/alert/alert.css +226 -220
  44. package/dist/components/avatar/avatar.css +298 -220
  45. package/dist/components/badge/badge.css +180 -174
  46. package/dist/components/breadcrumb/breadcrumb.css +207 -207
  47. package/dist/components/button/button.css +278 -195
  48. package/dist/components/button-group/button-group.css +111 -0
  49. package/dist/components/card/card.css +284 -221
  50. package/dist/components/checkbox/checkbox.css +189 -189
  51. package/dist/components/chip/chip.css +269 -269
  52. package/dist/components/choice-card/choice-card.css +244 -0
  53. package/dist/components/data-grid/data-grid.css +520 -520
  54. package/dist/components/description-list/description-list.css +187 -0
  55. package/dist/components/dialog/dialog.css +339 -339
  56. package/dist/components/disclosure/disclosure.css +154 -0
  57. package/dist/components/drawer/drawer.css +484 -484
  58. package/dist/components/dropdown/dropdown.css +316 -316
  59. package/dist/components/icon-button/icon-button.css +162 -162
  60. package/dist/components/index.css +6 -0
  61. package/dist/components/input/input.css +163 -163
  62. package/dist/components/menu/menu.css +315 -315
  63. package/dist/components/pagination/pagination.css +250 -250
  64. package/dist/components/panel/panel.css +284 -284
  65. package/dist/components/popover/popover.css +153 -0
  66. package/dist/components/progress/progress.css +268 -256
  67. package/dist/components/radio/radio.css +166 -166
  68. package/dist/components/segmented-control/segmented-control.css +205 -205
  69. package/dist/components/select/select.css +117 -117
  70. package/dist/components/skeleton/skeleton.css +267 -262
  71. package/dist/components/split-button/split-button.css +292 -292
  72. package/dist/components/stat/stat.css +433 -0
  73. package/dist/components/switch/switch.css +195 -195
  74. package/dist/components/table/table.css +220 -220
  75. package/dist/components/tabs/tabs.css +293 -293
  76. package/dist/components/textarea/textarea.css +86 -86
  77. package/dist/components/toast/toast.css +345 -345
  78. package/dist/components/tooltip/tooltip.css +258 -258
  79. package/dist/domain/billing/index.css +629 -498
  80. package/dist/domain/calendar/agenda-list/agenda-list.css +224 -224
  81. package/dist/domain/calendar/day-slice/day-slice.css +384 -384
  82. package/dist/domain/calendar/day-timeline/day-timeline.css +332 -332
  83. package/dist/domain/calendar/event-card/event-card.css +338 -338
  84. package/dist/domain/calendar/index.css +5 -5
  85. package/dist/domain/calendar/month-grid/month-grid.css +426 -426
  86. package/dist/domain/calendar/week-grid/week-grid.css +480 -480
  87. package/dist/domain/companies/index.css +526 -526
  88. package/dist/domain/index.css +3 -3
  89. package/dist/index.css +5 -5
  90. package/dist/index.d.ts +1 -1
  91. package/dist/index.d.ts.map +1 -1
  92. package/dist/index.js +1 -1
  93. package/dist/index.js.map +1 -1
  94. package/dist/patterns/command-palette/command-palette.css +447 -447
  95. package/dist/patterns/company-switcher/company-switcher.css +390 -390
  96. package/dist/patterns/content-state/content-state.css +236 -236
  97. package/dist/patterns/document-preview/document-preview.css +169 -0
  98. package/dist/patterns/editor-workspace/editor-workspace.css +276 -0
  99. package/dist/patterns/empty-state/empty-state.css +260 -260
  100. package/dist/patterns/error-state/error-state.css +272 -272
  101. package/dist/patterns/form-layout/form-layout.css +106 -106
  102. package/dist/patterns/index.css +5 -0
  103. package/dist/patterns/loading-state/loading-state.css +287 -287
  104. package/dist/patterns/master-detail/master-detail.css +103 -103
  105. package/dist/patterns/notification-center/notification-center.css +443 -443
  106. package/dist/patterns/page/page.css +303 -219
  107. package/dist/patterns/profile-header/profile-header.css +205 -0
  108. package/dist/patterns/profile-menu/profile-menu.css +298 -298
  109. package/dist/patterns/record-list/record-list.css +302 -0
  110. package/dist/patterns/resource-card/resource-card.css +258 -0
  111. package/dist/patterns/search-bar/search-bar.css +457 -457
  112. package/dist/patterns/settings-layout/settings-layout.css +283 -150
  113. package/dist/patterns/workflow/workflow.css +168 -168
  114. package/dist/shell/app-shell/app-shell.css +211 -75
  115. package/dist/shell/content-frame/content-frame.css +93 -93
  116. package/dist/shell/footer/footer.css +256 -0
  117. package/dist/shell/header/header.css +328 -180
  118. package/dist/shell/index.css +8 -6
  119. package/dist/shell/mobile-nav/mobile-nav.css +254 -173
  120. package/dist/shell/navbar/navbar.css +282 -0
  121. package/dist/shell/sidebar/sidebar.css +314 -146
  122. package/dist/styles/accessibility.css +150 -116
  123. package/dist/styles/animations/motion.css +162 -162
  124. package/dist/styles/appearance/accent.css +215 -173
  125. package/dist/styles/appearance/density.css +61 -61
  126. package/dist/styles/appearance/motion.css +40 -40
  127. package/dist/styles/base.css +83 -83
  128. package/dist/styles/index.css +28 -28
  129. package/dist/styles/localization.css +56 -56
  130. package/dist/styles/reset.css +51 -51
  131. package/dist/styles/responsive.css +101 -101
  132. package/dist/styles/themes/dark.css +210 -202
  133. package/dist/styles/themes/high-contrast.css +298 -290
  134. package/dist/styles/themes/light.css +209 -201
  135. package/dist/styles/tokens/breakpoints.css +37 -37
  136. package/dist/styles/tokens/color.css +102 -96
  137. package/dist/styles/tokens/compatibility.css +33 -33
  138. package/dist/styles/tokens/elevation.css +26 -26
  139. package/dist/styles/tokens/index.css +9 -9
  140. package/dist/styles/tokens/motion.css +35 -35
  141. package/dist/styles/tokens/radius.css +26 -26
  142. package/dist/styles/tokens/spacing.css +56 -56
  143. package/dist/styles/tokens/typography.css +85 -85
  144. package/dist/styles/tokens/z-index.css +14 -14
  145. package/dist/styles/utilities/layout.css +153 -153
  146. package/dist/styles/utilities/text.css +152 -152
  147. package/dist/styles/utilities/visibility.css +47 -47
  148. package/dist/version.d.ts +2 -0
  149. package/dist/version.d.ts.map +1 -0
  150. package/dist/version.js +3 -0
  151. package/dist/version.js.map +1 -0
  152. package/docs/NEETECHS_UI_UPGRADE_PLAN.md +312 -0
  153. package/docs/accessibility.md +218 -218
  154. package/docs/appearance-and-theming.md +150 -118
  155. package/docs/brand-palette.md +36 -0
  156. package/docs/component-architecture.md +137 -137
  157. package/docs/component-guidelines.md +64 -64
  158. package/docs/components.md +321 -0
  159. package/docs/content-and-terminology.md +207 -207
  160. package/docs/design-system-audit.md +120 -0
  161. package/docs/design-system-baseline-audit.md +226 -226
  162. package/docs/design-token-contract.md +279 -279
  163. package/docs/layering.md +53 -0
  164. package/docs/localization-and-rtl.md +147 -147
  165. package/docs/migration.md +193 -142
  166. package/docs/page-patterns-and-workflows.md +301 -260
  167. package/docs/responsive-and-adaptive-design.md +351 -351
  168. package/docs/semantic-role-migration-audit.md +77 -77
  169. package/docs/site-chrome.md +317 -0
  170. package/docs/states-feedback-and-recovery.md +206 -206
  171. package/docs/theming.md +5 -5
  172. package/package.json +19 -6
  173. package/src/ai/ai-action-button/ai-action-button.css +271 -271
  174. package/src/ai/ai-approval-card/ai-approval-card.css +323 -323
  175. package/src/ai/ai-conversation-panel/ai-conversation-panel.css +447 -447
  176. package/src/ai/ai-prompt-input/ai-prompt-input.css +380 -380
  177. package/src/ai/ai-proposal-card/ai-proposal-card.css +358 -358
  178. package/src/ai/ai-suggestion-card/ai-suggestion-card.css +295 -295
  179. package/src/ai/ai-tool-call/ai-tool-call.css +256 -256
  180. package/src/ai/index.css +7 -7
  181. package/src/appearance/cache.ts +236 -236
  182. package/src/appearance/cookie.ts +184 -184
  183. package/src/appearance/index.ts +86 -80
  184. package/src/appearance/inline-bootstrap.ts +163 -0
  185. package/src/appearance/preference.ts +121 -121
  186. package/src/appearance/theme-controller.ts +384 -371
  187. package/src/appearance/types.ts +61 -61
  188. package/src/behaviors/announcer.ts +222 -222
  189. package/src/behaviors/calendar.ts +92 -92
  190. package/src/behaviors/data-grid.ts +133 -133
  191. package/src/behaviors/dialog.ts +203 -203
  192. package/src/behaviors/direction.ts +34 -34
  193. package/src/behaviors/drawer.ts +210 -210
  194. package/src/behaviors/dropdown.ts +344 -344
  195. package/src/behaviors/focus-trap.ts +304 -304
  196. package/src/behaviors/forms.ts +205 -205
  197. package/src/behaviors/ids.ts +47 -47
  198. package/src/behaviors/index.ts +3 -0
  199. package/src/behaviors/keyboard.ts +305 -305
  200. package/src/behaviors/navigation.ts +417 -0
  201. package/src/behaviors/overlay.ts +344 -344
  202. package/src/behaviors/popover.ts +157 -0
  203. package/src/behaviors/sidebar.ts +342 -0
  204. package/src/behaviors/state.ts +282 -282
  205. package/src/behaviors/tabs.ts +137 -137
  206. package/src/behaviors/viewport.ts +61 -61
  207. package/src/components/alert/alert.css +226 -220
  208. package/src/components/avatar/avatar.css +298 -220
  209. package/src/components/badge/badge.css +180 -174
  210. package/src/components/breadcrumb/breadcrumb.css +207 -207
  211. package/src/components/button/button.css +278 -195
  212. package/src/components/button-group/button-group.css +111 -0
  213. package/src/components/card/card.css +284 -221
  214. package/src/components/checkbox/checkbox.css +189 -189
  215. package/src/components/chip/chip.css +269 -269
  216. package/src/components/choice-card/choice-card.css +244 -0
  217. package/src/components/data-grid/data-grid.css +520 -520
  218. package/src/components/description-list/description-list.css +187 -0
  219. package/src/components/dialog/dialog.css +339 -339
  220. package/src/components/disclosure/disclosure.css +154 -0
  221. package/src/components/drawer/drawer.css +484 -484
  222. package/src/components/dropdown/dropdown.css +316 -316
  223. package/src/components/icon-button/icon-button.css +162 -162
  224. package/src/components/index.css +6 -0
  225. package/src/components/input/input.css +163 -163
  226. package/src/components/menu/menu.css +315 -315
  227. package/src/components/pagination/pagination.css +250 -250
  228. package/src/components/panel/panel.css +284 -284
  229. package/src/components/popover/popover.css +153 -0
  230. package/src/components/progress/progress.css +268 -256
  231. package/src/components/radio/radio.css +166 -166
  232. package/src/components/segmented-control/segmented-control.css +205 -205
  233. package/src/components/select/select.css +117 -117
  234. package/src/components/skeleton/skeleton.css +267 -262
  235. package/src/components/split-button/split-button.css +292 -292
  236. package/src/components/stat/stat.css +433 -0
  237. package/src/components/switch/switch.css +195 -195
  238. package/src/components/table/table.css +220 -220
  239. package/src/components/tabs/tabs.css +293 -293
  240. package/src/components/textarea/textarea.css +86 -86
  241. package/src/components/toast/toast.css +345 -345
  242. package/src/components/tooltip/tooltip.css +258 -258
  243. package/src/domain/billing/index.css +629 -498
  244. package/src/domain/calendar/agenda-list/agenda-list.css +224 -224
  245. package/src/domain/calendar/day-slice/day-slice.css +384 -384
  246. package/src/domain/calendar/day-timeline/day-timeline.css +332 -332
  247. package/src/domain/calendar/event-card/event-card.css +338 -338
  248. package/src/domain/calendar/index.css +5 -5
  249. package/src/domain/calendar/month-grid/month-grid.css +426 -426
  250. package/src/domain/calendar/week-grid/week-grid.css +480 -480
  251. package/src/domain/companies/index.css +526 -526
  252. package/src/domain/index.css +3 -3
  253. package/src/index.css +5 -5
  254. package/src/index.ts +7 -7
  255. package/src/localization/index.ts +56 -56
  256. package/src/patterns/command-palette/command-palette.css +447 -447
  257. package/src/patterns/company-switcher/company-switcher.css +390 -390
  258. package/src/patterns/content-state/content-state.css +236 -236
  259. package/src/patterns/document-preview/document-preview.css +169 -0
  260. package/src/patterns/editor-workspace/editor-workspace.css +276 -0
  261. package/src/patterns/empty-state/empty-state.css +260 -260
  262. package/src/patterns/error-state/error-state.css +272 -272
  263. package/src/patterns/form-layout/form-layout.css +106 -106
  264. package/src/patterns/index.css +5 -0
  265. package/src/patterns/loading-state/loading-state.css +287 -287
  266. package/src/patterns/master-detail/master-detail.css +103 -103
  267. package/src/patterns/notification-center/notification-center.css +443 -443
  268. package/src/patterns/page/page.css +303 -219
  269. package/src/patterns/profile-header/profile-header.css +205 -0
  270. package/src/patterns/profile-menu/profile-menu.css +298 -298
  271. package/src/patterns/record-list/record-list.css +302 -0
  272. package/src/patterns/resource-card/resource-card.css +258 -0
  273. package/src/patterns/search-bar/search-bar.css +457 -457
  274. package/src/patterns/settings-layout/settings-layout.css +283 -150
  275. package/src/patterns/workflow/workflow.css +168 -168
  276. package/src/shell/app-shell/app-shell.css +211 -75
  277. package/src/shell/content-frame/content-frame.css +93 -93
  278. package/src/shell/footer/footer.css +256 -0
  279. package/src/shell/header/header.css +328 -180
  280. package/src/shell/index.css +8 -6
  281. package/src/shell/mobile-nav/mobile-nav.css +254 -173
  282. package/src/shell/navbar/navbar.css +282 -0
  283. package/src/shell/sidebar/sidebar.css +314 -146
  284. package/src/styles/accessibility.css +150 -116
  285. package/src/styles/animations/motion.css +162 -162
  286. package/src/styles/appearance/accent.css +215 -173
  287. package/src/styles/appearance/density.css +61 -61
  288. package/src/styles/appearance/motion.css +40 -40
  289. package/src/styles/base.css +83 -83
  290. package/src/styles/index.css +28 -28
  291. package/src/styles/localization.css +56 -56
  292. package/src/styles/reset.css +51 -51
  293. package/src/styles/responsive.css +101 -101
  294. package/src/styles/themes/dark.css +210 -202
  295. package/src/styles/themes/high-contrast.css +298 -290
  296. package/src/styles/themes/light.css +209 -201
  297. package/src/styles/tokens/breakpoints.css +37 -37
  298. package/src/styles/tokens/color.css +102 -96
  299. package/src/styles/tokens/compatibility.css +33 -33
  300. package/src/styles/tokens/elevation.css +26 -26
  301. package/src/styles/tokens/index.css +9 -9
  302. package/src/styles/tokens/motion.css +35 -35
  303. package/src/styles/tokens/radius.css +26 -26
  304. package/src/styles/tokens/spacing.css +56 -56
  305. package/src/styles/tokens/typography.css +85 -85
  306. package/src/styles/tokens/z-index.css +14 -14
  307. package/src/styles/utilities/layout.css +153 -153
  308. package/src/styles/utilities/text.css +152 -152
  309. package/src/styles/utilities/visibility.css +47 -47
  310. package/src/types/index.ts +126 -126
  311. package/src/version.ts +2 -0
@@ -0,0 +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. 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`.