UI — design system for Glacez webapps
Lane: UI · Repos: glacez/glacez-webapp-ui, glacez/glacez-webapp-admin · Editing rules: each repo's AGENTS.md
The user-facing layer: Vaadin Flow 25 server-side components on Lumo. glacez-webapp-ui is dark-only (@ColorScheme(DARK) on GlacezUi); glacez-webapp-admin runs its own theme and its own copy of the shared CSS.
This section is the design knowledge — what a screen is made of, what shapes exist, and the rules that keep them coherent. The bar every screen has to clear, the states and the access rules live at the top of Conventions.
The model
Three layers, in dependency order. A view is built by composing layer 1, choosing layer 2, and obeying layer 3.
| Layer | Page | Answers |
|---|---|---|
| Primitives | Primitives | What is a screen made of? |
| Archetypes | Archetypes | What shape does this screen take? |
| Conventions | Conventions | What must every screen obey? |
Archetypes at a glance
| Archetype | Canonical implementation | CSS selector |
|---|---|---|
| Dashboard / multi-card | PortfolioView (variant: MarketView) |
.portfolio-view, .market-view |
| Detail, uni-column | StrategyView |
.uni-column-view |
| List with filters | StrategiesView |
— |
| Form with aside | DcaView |
.form-with-aside-layout |
| Form, simple | AddTransactionView |
.credit-card-form-view |
| Timeline chart | PositionUplTimeline |
— |
| Switcher / gauge | MarketOverviewSwitcher |
— |
| Report | ReportViewLayout |
.glacez-report-markdown |
| Profile / settings | UserProfileView |
— |
| Auth / onboarding | LoginView |
.onboarding-view (the choice grid) |
| Feed | FeedView |
.feed-view |
Every canonical implementation is a real class in glacez-webapp-ui; the CSS selector is the theme rule in frontend/themes/Glacez-UI/. A "—" means the archetype is expressed in Java layout and needs no selector.
How to build or change a view
- A new shape, or a visible restyle, is mocked up before it is coded. One static page per screen under review in
glacez-webapp-uimockups/(portfolio.html,market.html), importing the app's realthemes/Glacez-UI/styles.cssplus the shared_mockup.css, and using the repo's own class names, so what is approved is what compiles; charts stay named placeholders. Serve it from the repo root (python3 -m http.server). The mockup is updated in the same MR that changes how that screen looks, and a mockup that lags the view is a finding. A change that copies an existing archetype needs no mockup — the canonical class is the mockup. The file count follows reviews, not the 35 routes: a variant that is still a variant of a screen under review stays a block inside that screen's file, and a screen that has changed enough to stand alone gets its own page. - Name the archetype. If a screen does not fit one, the screen is wrong — change the screen, or propose a new archetype here in its own MR. Do not grow a one-off shape.
- Open the canonical implementation and copy its skeleton. Copying a named reference is the enforcement mechanism; a rule that only describes a shape is a doc, not a constraint.
- Compose primitives — not raw
Div/VerticalLayoutscaffolding when a primitive exists. - Check Conventions before the first line of CSS — the design bar (one primary action, essential information first), the five states, the accessibility thresholds, the toolkit order and the call budget.
- Visual check at 1440 and 390 wide, dark mode. A UI change is not done until it has been looked at.
What this section does not carry
Build commands, ports and pitfalls stay in each repo's AGENTS.md. The service narrative — what the webapp is, what it owns, its data path — stays in Webapp · UI. This section owns design only.