From 92c67eb509da6182cca1ef551e40f1712f7a1454 Mon Sep 17 00:00:00 2001 From: Arne Date: Sun, 15 Nov 2026 17:04:52 +0100 Subject: [PATCH 1/4] feat(design): the refined house style, as the owner approved MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit An almost white background with white cards and a thin edge, buttons with slightly rounded corners, and the rounded font only for headings and big amounts. The menu panel is 240 px and shows no amount; the Openstaand amount is in the text colour. Laatste facturen on the overview is a table again on a wide screen. In a list, an overdue invoice says "Te laat" in a pill of one width, with the days beside it, or "sinds " from 100 days. The invoice itself still says how many days. Instellingen is one list in four groups, with quiet states: a tick, grey for off, the warning sign where you have to act. Settings pages have their sections in one card, and field borders reach 3:1. Decisions: owner (buttons, Openstaand, panel), product-owner agent (groups, states, Te laat), huismus-intern/besluiten.md. Playbook: n.v.t. — only Huismus's design, no change to the workflow Co-Authored-By: Claude Opus 5.5 --- SPEC.md | 4 +- docs/design/componenten.html | 26 ++- huismus/business/topics.py | 59 +++++- huismus/business/views.py | 2 +- huismus/config/settings.py | 1 - huismus/core/context_processors.py | 11 - huismus/core/static/core/huismus.css | 197 +++++++++++------- huismus/locale/en/LC_MESSAGES/django.po | 51 +++-- huismus/locale/nl/LC_MESSAGES/django.po | 39 ++-- huismus/templates/base.html | 8 - huismus/templates/business/appearance.html | 2 +- huismus/templates/business/assistants.html | 2 +- huismus/templates/business/backups.html | 2 +- huismus/templates/business/export.html | 2 +- huismus/templates/business/overview.html | 34 +-- huismus/templates/business/password.html | 2 +- huismus/templates/business/topic.html | 2 +- huismus/templates/business/updates.html | 2 +- huismus/templates/core/home.html | 8 +- .../templates/documents/_pill_overdue.html | 3 +- huismus/templates/documents/detail.html | 2 +- .../templates/expenses/receipt_reading.html | 2 +- .../templates/expenses/receipts_folder.html | 2 +- huismus/templates/icons.svg | 9 +- tests/core/test_dashboard.py | 22 +- tests/core/test_update_views.py | 2 +- tests/desktop/test_store.py | 2 +- tests/documents/test_list_view.py | 22 +- tests/e2e/test_browser.py | 4 +- tests/e2e/test_every_page.py | 3 - tests/expenses/test_reading_pages.py | 2 +- 31 files changed, 337 insertions(+), 192 deletions(-) diff --git a/SPEC.md b/SPEC.md index 22dd076..e3748a9 100644 --- a/SPEC.md +++ b/SPEC.md @@ -176,7 +176,9 @@ Added 2026-10-21: - the PDF button opens a page with the PDF, a way back to the document, and Download (named after the document's number, `.pdf`, ready to attach to an e-mail); where the browser can share files there is also Share, and in the installed app only Share; for an imported invoice with an original PDF the page switches between the original and the regenerated one; the editor's preview PDF still opens in a new tab; in the installed app it opens over the editor, which keeps what was typed; - on a phone every action stays reachable: the editor's secondary actions (delete, cancel, copy, PDF, preview PDF, mail) sit behind a "Meer" button in its action bar, the tab bar's + opens four choices (factuur, offerte, klant, uitgave), and with its "Meer" menu the tab bar offers everything else the sidebar does. `tests/e2e/test_every_page.py` checks both on every page. Added with the layout of direction "Vandaag" (issue #186, 2026-11-15; product-owner agent, `huismus-intern/besluiten.md`): -- on a wide screen the menu is a deep violet panel: the sparrow, "Je krijgt nog" (what customers still owe, and how much of it is overdue; `core.dashboard.outstanding_invoices`, the overview's figure, nothing before the first issued invoice), a button "Nieuwe factuur" straight to a new invoice, then Overzicht, Facturen, Offertes, Uitgaven, Klanten, Rapporten, Importeren, Instellingen; Hulp and Uitloggen at the foot. Cards have no border and round corners on a lilac background, buttons are pills, the font is the rounded system font where there is one (no web font); +- on a wide screen the menu is a deep violet panel: the sparrow, a button "Nieuwe factuur" straight to a new invoice, then Overzicht, Facturen, Offertes, Uitgaven, Klanten, Rapporten, Importeren, Instellingen; Hulp and Uitloggen at the foot. What customers still owe is on the overview only, not in the panel; +- look ("Verfijnd", the owner, 2026-11-15): white cards with a thin border on an almost white background, buttons with slightly rounded corners, the amount Openstaand in the text colour; the rounded system font only for headings and big amounts, the plain system font for the rest (no web font); +- in a list an overdue invoice says "Te laat" in a pill of one width, with how late beside it in quiet text: the days, or from 100 days "sinds" the due date; the invoice itself says how many days; - one violet button per screen: the panel's "Nieuwe factuur" and the phone's + only on the overview and the invoice list (not when they are empty); elsewhere the screen's own main action; - the invoice list shows its rows in groups: Te laat, Wacht op betaling (with the days until due), Nog niet verstuurd, Betaald (fully credited ones too), Creditnota's; tabs, search, year and "Meer laden" stay. "Geïmporteerd" is quiet text, and only overdue has a colour; - an overview without any invoice or credit note shows one card to make the first instead of the invoice figures; diff --git a/docs/design/componenten.html b/docs/design/componenten.html index 972677d..d59564a 100644 --- a/docs/design/componenten.html +++ b/docs/design/componenten.html @@ -21,6 +21,7 @@

Principes

  1. Kleur alleen waar je iets moet doen; de rest is rustig. Te laat, over de KOR-grens: een gekleurd vlak. Betaald, definitief, afgerond: alleen een vinkje of slotje in gedempte tekst. Onbetaald en concept: gewone tekst of een gestippeld randje. Zo valt het ene belangrijke op.
  2. Vandaag. Violet voor acties, snavelgeel voor highlights en herinneringen, neutralen met een zweem violet voor de rest. Geen nieuwe kleuren of lettertypes zonder besluit (huismus-intern/besluiten.md).
  3. +
  4. Rust van papier. Witte vlakken met een dunne rand op een bijna witte achtergrond. Knoppen met licht ronde hoeken, geen pillen. De ronde letter alleen voor koppen en grote bedragen. Bedragen in de tekstkleur, ook Openstaand: het menu is al violet.
  5. Snavelgeel is nooit een knop. Een knop is violet (primair), wit (secundair), kaal (ghost) of rood (verwijderen).
  6. Uitgegeven is definitief. Een uitgegeven document heeft geen invoervelden en een slotje. Concepten hebben geen nummer.
  7. Licht en donker, telefoon en laptop. Alles werkt op 360 px en in beide thema's, en haalt WCAG AA. Wissel het thema bovenaan om deze pagina in het donker te zien.
  8. @@ -36,7 +37,8 @@

    Kleuren

    --surface-2
    hover, verzonken vlak
    --surface-3
    nog dieper
    --border
    randen
    -
    --border-strong
    veldranden
    +
    --border-strong
    sterke randen
    +
    --field-border
    rand van een invoerveld (3 : 1)
    --text
    tekst
    --text-muted
    bijtekst (AA)
    --paper
    het vel papier
    @@ -86,6 +88,7 @@

    Status

    Letters, ruimte, vormen

    --font-sans
    systeemletter, geen webfonts
    Factuur 2026-0013
    +
    --font-display
    ronde letter, alleen koppen en grote bedragen
    € 49.670,00
    --font-mono
    nummerformaten, code
    {year}-{seq:04d}
    --fs-3xl
    36
    Factuur
    --fs-2xl
    28, paginatitel
    Facturen
    @@ -99,7 +102,7 @@

    Letters, ruimte, vormen

    --s-1 … --s-16
    4, 8, 12, 16, 20, 24, 32, 40, 48, 64 (--s-2 --s-3 --s-4 --s-5 --s-6 --s-8 --s-10 --s-12)
    --r-sm --r-md --r-lg --r-xl --r-pill
    6, 10, 14, 20, rond
    --sh-1 --sh-2 --sh-paper --sh-pop
    kaart, zwevend, vel papier, dialoog
    -
    --sidebar-w, --content-max, --control-h
    248, 1120, 40 px
    +
    --sidebar-w, --content-max, --control-h
    240, 1120, 40 px
    --ease
    één beweging voor alles
    @@ -116,7 +119,7 @@

    Knoppen

    Statuslabels

    Bovenaan de labels met een vlak (er moet iets gebeuren), onderaan de rustige (afgerond).

    - + @@ -133,7 +136,7 @@

    Statuslabels

    LabelWanneerKleur
    12 dagen te laatFactuur voorbij de vervaldatum en niet betaald.Framboos vlak met het aantal dagen: hier moet je iets doen.
    Te laat 12 dagenTe laat sinds 9 jun 202635 dagen te laatFactuur voorbij de vervaldatum en niet betaald.Framboos vlak met het aantal dagen: hier moet je iets doen.
    OnbetaaldUitgegeven factuur, nog niets betaald.Amber vlak: er staat geld open.
    Deels betaaldEen deel is betaald.Amber vlak, halve stip.
    VerzondenOfferte verstuurd, wacht op antwoord. Ook: een koppeling die nog wacht.Gewone tekst met een open stip: wachten op de ander.
    NakijkenUitgave die een AI-assistent invulde; weg na "Klopt" of Opslaan.Amber vlak, zoals Onbetaald: er moet nog iets gebeuren.
    overgeslagenVariant zonder stip (.no-dot), bijv. in het importrapport.Zoals de basis, zonder stip.
    -
    12 dagen te laatOnbetaaldDeels betaaldVerzondenConceptGeïmporteerdCreditnotaGecrediteerdDefinitiefBetaaldGeaccepteerdAanAfgewezenVerlopenovergeslagenNakijken
    +
    Te laat 12 dagenTe laat sinds 9 jun 202635 dagen te laatOnbetaaldDeels betaaldVerzondenConceptGeïmporteerdCreditnotaGecrediteerdDefinitiefBetaaldGeaccepteerdAanAfgewezenVerlopenovergeslagenNakijken
    @@ -179,7 +182,7 @@

    Tabellen, kaarten, cijfers

    - +
    NummerKlantBedragStatus
    3 facturen€ 4.820,00

    Passen de tabs niet, dan lopen ze door op een volgende regel; ze scrollen nooit uit beeld. De streep staat onder de actieve tab zelf, op elke regel.

    @@ -212,10 +215,21 @@

    Document

    Voorbeeld-pdf

    +
    +

    Instellingen

    +

    Een lijst met rijen per groep. De status is rustige tekst: een vinkje als iets aan staat, grijs als het uit staat, het waarschuwingsteken als je iets moet doen. Geen kleur: alleen "te laat" heeft kleur.

    + +
    +

    Iconen

    Uit huismus/templates/icons.svg. De mus is het merkteken.

    -
    mus
    home
    file
    clipboard
    copy
    users
    receipt
    upload
    download
    settings
    plus
    search
    lock
    paperclip
    check
    check-circle
    alert
    info
    help
    x-circle
    x
    chevron-down
    chevron-left
    chevron-right
    arrow-left
    arrow-right
    log-out
    trash
    grip
    archive
    refresh
    menu
    calendar
    mail
    send
    swap
    image
    clock
    more
    euro
    edit
    undo
    globe
    zip
    table
    chart
    +
    mus
    home
    file
    clipboard
    copy
    users
    receipt
    upload
    download
    settings
    plus
    search
    lock
    paperclip
    check
    check-circle
    alert
    info
    help
    x-circle
    x
    chevron-down
    chevron-left
    chevron-right
    arrow-left
    arrow-right
    log-out
    trash
    grip
    archive
    refresh
    menu
    calendar
    mail
    send
    swap
    image
    clock
    more
    euro
    edit
    undo
    globe
    zip
    table
    chart
    building
    percent
    hash
    folder
    sparkles
    chat
    sun