FE-M0-28 · The shell and the error pages on components/ui
ID FE-M0-28 · Level L0 · Run order row 34b, after FE-M0-27 · Why D88, D8, R-APP-01 to R-APP-10 · Issue to be named on the pull request (D28)
Everything apps/web shows is built from components/ui, and components/opleet, opleet.css, tokens.css, theme.css and app.css are gone. The specs for R-APP-01 to R-APP-10 pass unchanged.
What the pull request does
Section titled “What the pull request does”- Root. app/layout.tsx imports design/opleet/globals.css and mounts the Toaster.
@ui/points at components/ui;@ui/design/still points at design/opleet. postcss.config.mjs is only@tailwindcss/postcss: the Google Fonts plugin is not needed, because globals.css imports no font. - Shell. Card, Button and Sheet. Below lg the menu is a Sheet from the left (MobileMenu), and it closes when the page changes; it adds one catalog key,
shell.menu.close. The pool switcher is a Popover with one submit button per pool, and the ID | EN switcher is two Buttons in a glass track, because R-APP-10's spec presses both by their button role and the design system's SegmentedControl and DropdownMenu would make them radios and menu items. The menu's icons are in components/shell/nav-icons.ts. - Error pages. The 404 pages, (shell)/error.tsx, the refusal page, /no-access and /login use Card, Button and FormField. PlainError (R-APP-09) is a Card with two Buttons and still reads nothing from the database or the catalog; global-error.tsx imports globals.css itself, because it replaces the root layout.
- lib/errors' UI. The text beside a control (
ControlError, R-APP-10) is built from the tokens: danger text on strong glass, under its control,role="alert". The design system has no inline notice, so the sign-out reason on /login isNotice, built from the same tokens as its toast. - Removed. The
tokensscript and its check in typecheck, scripts/tokens.mjs, components/opleet/ (twelve components and the icon registry). - Guide. The design system guide and apps/web/AGENTS.md describe the new layout.
pnpm installpnpm --filter web typecheckpnpm --filter web testpnpm lintThen the checks of FE-M0-29.
Expect
Section titled “Expect”- typecheck: "Keys: 114. With English: 114. Without: 0.", then no errors.
- test: 52 pass.
- lint: no fixes applied.
If it fails
Section titled “If it fails”- A class has no effect: the utility names changed with the design system (
gap-4, notgap-space-4;max-w-sheet, notmax-w-sheet-w). The guide's table lists them. - A spec can't find a control by its role: keep the control a button, as above; don't switch it to a component that changes its role without changing the spec first.
Revert the merge commit in a new pull request: git revert <MERGE_COMMIT> on a branch, then push and open it.
Not run yet. Log each run as a comment on the issue.