Repository navigation
One calm layout for the whole web UI: overview with charts, consistent lists, plans and settings - #110
Open
kratofl wants to merge 10 commits into
Open
One calm layout for the whole web UI: overview with charts, consistent lists, plans and settings#110kratofl wants to merge 10 commits into
kratofl wants to merge 10 commits into
Conversation
Carries the earlier uncommitted work (admins create users, focused budget planning pages, category appearance, merchant search) and step 1 of the web redesign: near-opaque glass only on small floating chrome, a 6/10/14px radius scale, four elevation levels, a 3:1 control edge, near-black dark mode, and DESIGN.md page rules (one lead answer per page, metric strips, chart rules). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The toolbar now carries a page's period control, caption and one primary action; new hero metric, metric strip, period stepper and accessible SVG charts follow the DESIGN.md chart rules. Settings, admin and login pages use the settings and list page types. The monthly budget state returns the last six periods so the overview can compare them, and the sidebar drops its lone "Hauptbereich" header and orders Budget into clusters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The overview leads with what is left to spend and how fast it is going, beside what is still due, then the budget pots, the last six periods and the latest expenses. Expenses, savings, costs, categories and merchants are list pages with a metric strip, one filter for chart and list and one table card; income and reserves shows where the income goes. Periods step with chevrons in the toolbar, and each page's main action sits there too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd pot actions - Chart ticks step in whole euros and domains include shortfalls. - Category, merchant, user and expense sheets show their own errors. - Plan drafts survive moving between the plan pages. - Expense scope, category filter and Savings search are back. - Tapping a pot adds an expense again; the pots strip wraps cleanly. - Periods are named after the month most of their days fall in. - Closed periods no longer list upcoming bills from today's plan. - Existing categories keep their name-based icon after the migration. - e2 on the stuck toolbar and dragged widgets; no inset highlight on dark shadows. - DESIGN.md matches the code; unused components and copy removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The web showed the API's English problem detail verbatim, so a German user saw "A user with this name or email already exists". Identity, sign-in provider and audit problems now carry a stable `code` extension that the web translates; the English detail stays for other API readers. Anything without a known code falls back to a translated message per HTTP status, and an unreachable server gets its own message. Merchant conflicts were missing from the budget copy too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Budget's pages were split by unlabelled gaps that looked like layout bugs. Related pages now hang under a parent row (Planung, Verwalten) that folds them, and every section header (Budget, Admin) folds its section. Folds are kept per device, and the group holding the current page always opens. On the collapsed rail a parent row opens its pages as a menu; the phone view menu shows the same groups. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Monthly and yearly subscriptions can now pick a merchant and add a short note. Both are labels stored on the plan's cost (older plan versions read them as null) and checked like an expense's merchant. Anstehend and the expenses side panel show the merchant's logo and the note. Picking a merchant for an unnamed row names it after the merchant. Also keeps a cost row's remove button on the first line on phones. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The categories table hid renaming and recolouring behind a "…" menu and left most of its width empty. Names, colour and icon are now edited in the row and saved with the plan's Save; a save that only touches categories writes no new plan version. Archive and restore are icon buttons in the row. What a category did this period (spent, reserve left, latest expenses, link to all of them) opens in a read-only details sheet. Table fields are quiet: no edge until focused, so a table of fields still reads as a table. Cost rows use them too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cards, popovers and pickers had grown several look-alike implementations: settings pages had their own list cards, the budget pages hand-built headers and footers, both comboboxes carried their own keyboard handling, and the category look was two different pickers. Now each pattern exists once and pages compose it. - grouped.tsx is the one list kit: ListCard, CardHeader (hint + action or aside), Group, FormRow, ListSubhead, ListFooter, ListEmpty, TextAction. The Settings* copies are gone; Card and list cards share one surface. - New primitives: Popover, Command (cmdk) and RadioGroup. The searchable select and the app search are both Command comboboxes with menu-item options; the segmented control is a RadioGroup. - The category look is one picker (swatches + icon grid, radio groups) in the sheet and in the table popover. - Field no longer needs a type assertion. - DESIGN.md: one component per pattern, Popover and combobox, Choice grid, and the card header, subheader and empty-list rules. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The web UI looked like a stack of separate cards, with no common page structure. Charts were missing from the overview, and lists, plans and settings each used their own layout. This PR redesigns the whole web UI against one set of rules in
docs/design-system/DESIGN.md. The rules say how to display things, not what a page contains, so they hold for future modules too. iOS, Windows and macOS are untouched.What changes for a user
Backend
Plan costs gain optional
merchantIdanddescription, and so do the costs listed per period. The merchant must exist and be the user's own or shared, as for expenses (invalid_merchant). Plan versions saved earlier read both asnull, so no migration is needed.GET /budget/monthlyreturnshistory: the last six periods' starting fun money and what was left, oldest first. Covered by an HTTP test.Categories gain
colorandicon, editable in the categories table.Identity, Pocket ID (OIDC) and audit problem responses gain a stable
codeextension member, for exampleuser_exists. The Englishdetailis unchanged, so other API readers keep working. The web translates the code; anything without a known code gets a translated message per HTTP status. Before, the German UI showed the API's English text.Call-outs
PUT /usersis admin-only. It creates an active account; anonymous self-registration aspendingis gone. Signing in with an unknown Pocket ID (OIDC) account still creates apendingaccount for an admin to activate. This came from the pending admin work bundled into this branch.202610100001_MonthlyCategoryAppearance. It is additive: it addscolorandicontobudget.monthly_categoriesand spreads the colours per user. Existing categories keep the icon the web client used to guess from their name.budget-overview-v2anddashboard-v2, because every widget on those boards was replaced.da009c9).Decisions I made without asking
cmdk. It's the combobox shadcn/ui builds on, and it replaces two hand-written keyboard handlers. It always reports the field as expanded; the app search only lists results while it has focus, so that matches.Not done / known
button.tsx,toast.tsxandsidebar.tsxpredate this PR.clients/web/e2ehave no runner, so they weren't used.Verification
npm run lint(includingcheck:i18n),tsc --noEmitandmake web-buildpass.make backend-buildpasses, including style.make backend-testpasses: 135 tests.Before / after
main)🤖 Generated with Claude Code