Jump to content

MindAttic.Components/SPEC

From MindAttic Docs

MindAttic.Components — Product specification

The complete product, written down before it is built (owner, 2026-11-30, MAT-T360). Every epic, feature and story the finished product will have is listed here, built or not. The ticket tree mirrors this file one to one: every ID below is a ticket. Nothing gets built unless it is here, and anything taken out of here is closed wont-do in the tree. docs/RELEASE.md says which part of this the current milestone delivers.

1. Product definition

In docs/ECOSYSTEM.md this is a platform repo: it owns the UI controls concern, one configurable control per kind for WPF, the web and Unity, so no product draws its own.

MindAttic.Components is MindAttic's one shared UI kit, built for the people who make MindAttic's sites, desktop apps and games (in practice the owner and the agents working for them). It has four parts: a framework-neutral token palette (MindAttic.Components.Tokens), the WPF package every desktop app takes its controls from (MindAttic.Components.Wpf, on nuget.org), the web package of CSS/JS components and themes that the MindAttic sites load from a pinned jsDelivr tag, and a Unity UI package for the games. Change a button, font or theme once and every consumer picks it up on its next build. The finished product is three things:

  • a WPF library with one property-configurable button and every control its consumers need, so no app keeps local styles;
  • a web package whose every component is checked automatically;
  • a tagged Unity package that its games pin.

2. Scope boundary

2.1 In the product

  • Design tokens and light/dark/high-contrast themes shared by every surface.
  • WPF: themed controls, MVVM helpers, settings building blocks, MaButton as the one button, NUnit tests, CI-gated publishing to the local feed and nuget.org.
  • Web: self-contained components and whole-page themes, the marker-block site build, the parity harness, the asset manifest, immutable whole-number CDN tags.
  • Unity: uGUI + TextMesh Pro menus, dialogs, controls, HUD widgets and keyboard/gamepad navigation, released by tag.

2.2 Never in the product

  • Blazor packages (MindAttic.Components.Blazor.*) — the old overview roadmap planned them, but nothing consumes them: IdeaCms keeps its own Razor projects for its local 1.0, and no Blazor project exists. Reopen only if the owner names a consumer.
  • JS (MindAttic.Components.Js) parity for every WPF control — no consumer asked; the web package serves the sites' real needs.
  • "Brainstorm" components with no consumer — radio, toggle switch, accordion, breadcrumb, pagination, data grid, card, alert, skeleton, stepper, rating, file upload, typeahead combobox, date picker, colour picker, segmented control, popover and empty state. A control is added only when a consuming app files for it.
  • Open-ended bughunts, audit sweeps and "run the suite until green" loops — bugs are filed as fixes when found.
  • Work in MindAttic.Components.SIDEBAR — a stale second checkout of this repo on a SIDEBAR branch.

3. Users and roles

  • Desktop app developer (Orchestrator, Tickets Desktop, Launcher, Vault Desktop, MW5 Save Editor): references MindAttic.Components.Wpf and wants every control themed, accessible and identical across apps.
  • Site owner (mindattic.com, ryandebraal.com, mindatticcares.com, Hyperspace, plus Psst and Tutor pages): pins a CDN tag and wants a component change to arrive only when they repin.
  • Game developer (Unity.Multiplayer, Unity.Cursory and other Unity games): wants menus and HUD widgets themed like the web palette, driven by keyboard, gamepad and pointer.
  • Maintainer (an agent or the owner): wants every change proven (baselines, parity, idempotent builds) and published behind a new version, never by mutating an old one.

4. Requirements

Status is built (closed ticket, with evidence) or MS-n, the milestone in §7 that delivers it. Every unbuilt story is approved and prioritised in build order; the planner splits a story into tasks when the queue reaches it.

E1. WPF control library — M.COMP-T275 — built

The themed controls and MVVM helpers that every MindAttic desktop app takes its UI from.

F1.1 Theme and tokens — M.COMP-T276 — built

  • S1.1.1 Token package — M.COMP-T5 — built. As an app developer, I want framework-neutral design tokens with a thin WPF package over them, so that every surface shares one palette. Evidence: dotnet/src/MindAttic.Components.Tokens.
  • S1.1.2 Light and dark themes — M.COMP-T53 — built. As a user, I want an app to switch between light and dark themes live, so that it matches my preference. Acceptance: given MaTheme switches, then every palette brush updates without a restart.
  • S1.1.3 Themed scroll bars — M.COMP-T37 — built. Every ScrollBar and ScrollViewer corner is themed by default.
  • S1.1.4 Ma naming — M.COMP-T42 — built. Every style key and control class carries the Ma prefix.
  • S1.1.5 Wrapping tooltips — M.COMP-T116 — built. Long tooltip text wraps at 420 px instead of running off screen.

F1.2 Buttons and inputs — M.COMP-T277 — built

  • S1.2.1 MaButton, the one button — M.COMP-T174 — built. As an app developer, I want one Button control configured by properties (shape, per-state colours, accent, toggle and group), so that I never write a button template. Evidence: Controls/MaButton.cs.
  • S1.2.2 Two-state icon toggle — M.COMP-T183 — built (MaToggleIcon, including the sun/moon theme switch).
  • S1.2.3 Themed check box — M.COMP-T121 — built (MaCheck).
  • S1.2.4 Text box placeholder — M.COMP-T34 — built (MaTextBox.Placeholder, MaTextArea).
  • S1.2.5 Secret field — M.COMP-T155 — built. As a user, I want a masked secret field that reveals on click and hides itself after 30 s or a focus change, so that keys aren't left on screen.
  • S1.2.6 Slider — M.COMP-T228 — built (MaSlider, horizontal and vertical).
  • S1.2.7 Link style — M.COMP-T35 — built (MaHyperlink).

F1.3 Dialogs and feedback — M.COMP-T278 — built

  • S1.3.1 In-window modal — M.COMP-T15 — built (MaModal, dimmed backdrop, standalone template).
  • S1.3.2 Message box — M.COMP-T38 — built (MaMessageBox.Show, for prompts with no app window).
  • S1.3.3 Toasts — M.COMP-T30 — built (MaToast / MaToastHost).
  • S1.3.4 Busy spinner — M.COMP-T33 — built (MaSpinner, keeps turning while the UI thread is blocked).
  • S1.3.5 Progress bar — M.COMP-T32 — built.
  • S1.3.6 Callout tooltips — M.COMP-T167 — built. The arrow faces the target and the placement flips to stay on screen.
  • S1.3.7 Rich callout content — M.COMP-T193 — built. A tooltip can show a chart or any element.

F1.4 Navigation and structure — M.COMP-T279 — built

  • S1.4.1 Tab strip and status light — M.COMP-T50 — built.
  • S1.4.2 Sidebar tabs — M.COMP-T166 — built (TabStripPlacement=Left).
  • S1.4.3 Tab reordering — M.COMP-T168 — built (AllowReorder, IsLocked).
  • S1.4.4 Tab trailing content — M.COMP-T172 — built.
  • S1.4.5 Cascading dropdown menus — M.COMP-T189 — built.
  • S1.4.6 Tree — M.COMP-T110 — built (MaTree: groups expand, only leaves select).
  • S1.4.7 Tree checkboxes and dividers — M.COMP-T238 — built.

F1.5 Data, MVVM and settings — M.COMP-T280 — built

  • S1.5.1 Shared MVVM helpers — M.COMP-T11 — built (ObservableObject, RelayCommand, CollectionSync, ZoomLevel).
  • S1.5.2 Dashboard pieces — M.COMP-T12 — built (the Orchestrator's building blocks and MaLineChart).
  • S1.5.3 Async commands — M.COMP-T156 — built (AsyncRelayCommand).
  • S1.5.4 Settings-tab contract — M.COMP-T151 — built.
  • S1.5.5 Open my settings — M.COMP-T153 — built (launch or activate Vault Desktop at an app's tab).
  • S1.5.6 Settings form generator — M.COMP-T159 — built.

F1.6 Package distribution — M.COMP-T281 — built

  • S1.6.1 Safe local-feed publish — M.COMP-T40 — built. publish-wpf.ps1 refuses to overwrite a published version.
  • S1.6.2 Public nuget.org package — M.COMP-T173 — built (metadata and push-wpf-nugetorg.ps1).

E2. Panels — M.COMP-T213 — built

MaPanel is a titled, nestable container with opt-in collapse. MaPanelGroup drag-reorders panels and persists their order. Features M.COMP-T214, M.COMP-T217, M.COMP-T220; stories M.COMP-T215, M.COMP-T216, M.COMP-T218, M.COMP-T219.

E3. Web component package — M.COMP-T282 — built

F3.1 Components and themes — M.COMP-T283 — built

  • S3.1.1 Pinned CDN components — M.COMP-T284 — built. As a site, I want to load components from a pinned V<n> jsDelivr tag, so that a change reaches me only when I repin. Evidence: docs/web/BIBLE.md §6 and the tests/package sites specs.
  • S3.1.2 Theme toggle — M.COMP-T115 — built.
  • S3.1.3 Tag tip placement — M.COMP-T4 — built.

F3.2 Site build and parity — M.COMP-T285 — built

  • S3.2.1 Marker-block site build — M.COMP-T286 — built. A rebuild changes only the MINDATTIC.COMPONENTS marker blocks, and tests/parity proves the result identical.
  • S3.2.2 Newest tag by default — M.COMP-T3 — built.

F3.3 CaptureDemo names Media.Capture — M.COMP-T230 — built (epic kept as filed).

  • S3.4.1 Web package for desktop apps — M.COMP-T291 — proposed (owner): a WebView2 app's wwwroot takes the themes and controls offline, pinned; found by ProcessLogger's build-up (PL-T71, R14).

E4. Unity UI package — M.COMP-T287 — built

F4.1 Menus, controls and HUD — M.COMP-T288 — built

  • S4.1.1 Unity package — M.COMP-T43 — built (com.mindattic.components.unity 1.0.0).
  • S4.1.2 HUD widgets from Unity.Cursory — M.COMP-T46 — built.

E5. One Button — M.COMP-T244 — MS-10

Every legacy Button/ToggleButton style becomes a pixel-perfect MaButton preset.

F5.1 Pixel-perfect baselines — M.COMP-T247 — MS-10

  • S5.1.1 Legacy button baselines — M.COMP-T255 — MS-10. As a maintainer, I want reference renders of every legacy button style in every state, light and dark, plus a comparison helper, so that I can prove each conversion is pixel-perfect.

F5.2 Button presets — M.COMP-T248 — MS-10

  • S5.2.1 Command button presets — M.COMP-T256 — MS-10. MaToolButton, MaTextButton, the MaButton style and MaPrimaryButton set MaButton properties and have no template of their own. Acceptance: each render matches its baseline.
  • S5.2.2 Tile and stat presets — M.COMP-T257 — MS-10.
  • S5.2.3 Stat card grows to fit — M.COMP-T119 — MS-10. Given a stat tile with a progress bar and a caption, then nothing is clipped (MinHeight, not Height="74").
  • S5.2.4 Pill and pin toggle presets — M.COMP-T258 — MS-10.

E6. Consumer parity, no local styles — M.COMP-T245 — MS-10

F6.1 Combo and chip — M.COMP-T249 — MS-10

  • S6.1.1 MaCombo — M.COMP-T120 — MS-10. As an app developer, I want a themed ComboBox, so that I stop keeping my own combo style.
  • S6.1.2 Chip style — M.COMP-T202 — MS-10. Tickets Desktop drops its last local styles.

F6.2 Lists and grids — M.COMP-T250 — MS-10

  • S6.2.1 Virtualizing list — M.COMP-T55 — MS-10. Given a list of 761 rows, then only the visible rows are built.
  • S6.2.2 Drag-reorder rows — M.COMP-T200 — MS-10.
  • S6.2.3 GridView styles — M.COMP-T201 — MS-10.

F6.3 Menus — M.COMP-T251 — MS-10

  • S6.3.1 Context menu control — M.COMP-T59 — MS-10. A themed right-click menu that the Orchestrator's person tab (M.ORCH-T797) can switch to.
  • S6.3.2 Checked dropdown items — M.COMP-T191 — MS-10. A checkable row shows a check glyph.

E7. Every release proven — M.COMP-T246 — MS-10

F7.1 Controls proven by tests — M.COMP-T252 — MS-10

  • S7.1.1 Test projects on NUnit — M.COMP-T198 — MS-10. Wpf.Tests and Tokens.Tests run on NUnit 4.

F7.2 Only green builds publish — M.COMP-T253 — MS-10

  • S7.2.1 CI workflow — M.COMP-T203 — MS-10. A Windows workflow runs on every push to main.
  • S7.2.2 Publish gate — M.COMP-T204 — MS-10. publish-wpf.ps1 refuses a commit whose CI run isn't green.

F7.3 Docs match the package — M.COMP-T254 — MS-10

  • S7.3.1 Overview current state — M.COMP-T259 — MS-10. docs/overview.md names 50.x, NUnit, the CI gate and the one-button rule.

E8. Web package verified — M.COMP-T262 — MS-111

F8.1 Site build idempotency — M.COMP-T263 — MS-111

  • S8.1.1 Idempotent build check — M.COMP-T264 — MS-111. As a maintainer, I want every sites.json target rebuilt twice by an automated check, so that a non-idempotent splice is caught before it ships. Acceptance: given the four sites, Psst and Tutor, when the check reruns the build, then there is no diff, and Psst and Tutor move to verified in the web BIBLE.

F8.2 Component-level checks — M.COMP-T265 — MS-111

  • S8.2.1 Component specs — M.COMP-T266 — MS-111. Every UI component a site consumes has a spec in web/tests/package. Acceptance: the BIBLE's component catalog line moves from partial to done.

F8.3 Web polish and release — M.COMP-T267 — MS-111

  • S8.3.1 Web release tag — M.COMP-T268 — MS-111 (requires M.COMP-T264 and M.COMP-T266). The verified package ships behind the next whole-number tag, the sites are repinned, the manifest is checked against the CDN and docs/web is current. The owner signs off on the four sites.

E9. Unity package finished — M.COMP-T269 — MS-112

F9.1 Consumer verification — M.COMP-T270 — MS-112

  • S9.1.1 Games pin a tagged package — M.COMP-T271 — MS-112. Unity.Multiplayer and Unity.Cursory reference a tagged UPM git URL and build clean against it.
  • S9.1.2 EditMode coverage — M.COMP-T272 — MS-112. EditMode tests cover every control and both themes.

F9.2 Unity polish and release — M.COMP-T273 — MS-112

  • S9.2.1 Unity 1.1.0 release — M.COMP-T274 — MS-112 (requires M.COMP-T271 and M.COMP-T272). The package is tagged 1.1.0 with a changelog, a current docs/unity/COMPONENTS.md and gallery shots. The owner signs off in one game menu.

Added by MAT-T477 (owner stories and cross-repo links)

  • F M.COMP-T289 Unity controls a game can theme (epic M.COMP-T269, MS-112)
    • S M.COMP-T290 Games theme the shared controls: GridGame.Unity's GG-T1986 requires it; the Unity 1.1.0 polish (M.COMP-T273) waits for it. Given a game's token set, when it uses the package's buttons, lists, dialogs and HUD, then they render in the game's colours, type and spacing with no per-game control code.

5. Non-functional requirements

  • Platforms: WPF on .NET 10 (net10.0-windows); web with no build step for consumers (plain CSS/JS from jsDelivr); Unity 6 with uGUI and TextMesh Pro.
  • Accessibility: the WPF themes meet WCAG 2.2 AA by themselves and swap to high contrast live; every control is keyboard-operable and exposes UI Automation patterns. The Unity controls work by keyboard, gamepad and pointer, and the web components honour reduced motion.
  • Releases: WPF versions are whole-number majors packed from main, never republished. Web CDN tags are immutable (MAU-LAW-6). Every served asset is listed with its size and SHA-256 and checked against the CDN.
  • Tests: NUnit for .NET (the golden rule); Playwright package and parity suites for the web; EditMode tests for Unity. They run only when the owner asks.

6. Interfaces and dependencies

Platform it relies on (docs/ECOSYSTEM.md): MindAttic.Agency (standard, docs and brochure pipeline), MindAttic.Tickets (the plan). Consumers: every WPF app, MindAttic.Web and the Unity games.

  • Consumers (WPF): MindAttic.Orchestrator, MindAttic.Tickets (Tickets Desktop), MindAttic.Launcher, MindAttic.Vault (Vault Desktop), Mods.MechWarrior5.SaveEditor and MindAttic.Media.Capture. They reference the package from C:\LocalNuGet or nuget.org, and each moves to a new major on its own schedule.
  • Consumers (web): MindAttic.Web (the four sites), MindAttic.Psst (through sync-psst.yml) and Tutor, enrolled only through web/sites.json (MAU-LAW-1).
  • Consumers (Unity): Unity.Multiplayer's drop-in front end, Unity.Cursory's HUD and pause menu, and Unity.Shared.
  • Depends on: jsDelivr (CDN), nuget.org (public package; key from MindAttic.Vault), and GitHub Actions (CI, once M.COMP-T203 lands).

7. Release sequence

  1. MS-10 — One library, one button (active, docs/RELEASE.md): E5 One Button (900), E6 Consumer parity (800), E7 Release hygiene (700). The publish of the next WPF major with the presets is this milestone's release.
  2. MS-111 — Web package 1.0: every component verified: E8 (600), which ends with F8.3 Web polish and release.
  3. MS-112 — Unity package 1.1: the finished kit: E9 (500), which ends with F9.2 Unity polish and release. When it is reached, MindAttic.Components is finished. New controls then arrive only when a consumer files for one.

8. Change log

Date Change to scope Ticket
2026-11-30 Specification written from the overview, both bibles, the release charter, the code and 142 closed tickets. Built work recorded as epics E1–E4. Two planned milestones (MS-111 web, MS-112 Unity) finish the product. Blazor packages are moved to Never: the overview's old roadmap listed them with no consumer, so this is the owner's call to reverse. MAT-T371
2026-11-30 MAT-T462 single-source pass: 5 renamed, 1 bucket reworded as an outcome (M.COMP-T246, its three features are one outcome: a proven release), 8 requires added, 0 platform re-points MAT-T466
2026-11-30 MAT-T477 owner story for GridGame.Unity MAT-T477
From MindAttic.Components/docs/SPEC.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.