From 257a4cf6c0cc6d51bca5905c528c24195b2396fd Mon Sep 17 00:00:00 2001 From: NuklearRabbit <145918611+NuklearRabbit@users.noreply.github.com> Date: Mon, 3 Aug 2026 15:58:48 +0200 Subject: [PATCH] docs(polish): audit finale demo-afwerking Verifies the actual branch HEAD against the deployed Unraid revision (they match) and corrects a one-commit-behind final-commit hash in artifacts/demo-release/final-summary.md (its own "record the hash" follow-up commit couldn't self-reference). Catalogues remaining MobilityOps/PoC mentions (including in knowledge-base procedure prose that gets quoted in answers), confirms no i18n exists, documents the Demo Guide's single-behaviour-at-all-desktop-widths gap, the inconsistent radio-vs-card decision styling in Data Quality, automation/ audit density, and exactly which dashboard rows aren't fully clickable. Notes the repository's primary branch is `master`, not `main`. --- artifacts/demo-release/final-summary.md | 11 +- docs/final-product-polish/audit.md | 173 ++++++++++++++++++++++++ 2 files changed, 180 insertions(+), 4 deletions(-) create mode 100644 docs/final-product-polish/audit.md diff --git a/artifacts/demo-release/final-summary.md b/artifacts/demo-release/final-summary.md index 669a4ea..cf311b5 100644 --- a/artifacts/demo-release/final-summary.md +++ b/artifacts/demo-release/final-summary.md @@ -8,10 +8,13 @@ to `main`; no rebase/reset/squash/force-push; full git history preserved, as required) - **Start commit** (functional-completion baseline, already accepted): `e0c7ed60112510687627d20a957af91c8b9db7f8` -- **Final commit**: `294a8176d196e42408c4e99c29ab142771fcec04` (the commit that added this - file; a small follow-up commit records this hash explicitly, since a commit cannot - self-reference its own hash — `git log -1` on this branch is the authoritative source - if it has moved further since). +- **Final commit**: `4a268c73515dc4f1d56c1aa2f231714654bffbb8` — verified via + `git rev-parse HEAD` on `feat/mobilityops-functional-completion` and confirmed to match + `/mnt/user/appdata/mobilityops/.deploy/source-revision` on the Unraid server exactly. + (This corrects a self-reference gap in the immediately preceding pair of commits, which + necessarily could not know their own hash at the time they were written; this is now + the single, unambiguous, verified reference. The repository's primary branch is + `master`, not `main` — no branch named `main` exists in this repository.) - **Live URL**: `http://192.168.10.150:1236` ## Demo organisation and context diff --git a/docs/final-product-polish/audit.md b/docs/final-product-polish/audit.md new file mode 100644 index 0000000..f1fff12 --- /dev/null +++ b/docs/final-product-polish/audit.md @@ -0,0 +1,173 @@ +# Final product polish — audit + +Performed 2026-08-03 against `feat/mobilityops-functional-completion`. + +## Commit state + +- **Local/branch HEAD**: `4a268c73515dc4f1d56c1aa2f231714654bffbb8` +- **Deployed on Unraid** (`/mnt/user/appdata/mobilityops/.deploy/source-revision`): + `4a268c73515dc4f1d56c1aa2f231714654bffbb8` — **matches exactly**, no drift. +- **Repository's primary branch is `master`, not `main`** — no branch named `main` exists + (`git branch -a` / `git remote show` confirm only `master`, `design/mobilityops-premium-ui`, + and `feat/mobilityops-functional-completion`). `origin/master` = local `master` = + `e0c7ed60112510687627d20a957af91c8b9db7f8`, unchanged since the functional-completion + baseline — this is the baseline to compare against before any future merge. +- **Evidence-file mismatch found and corrected**: `artifacts/demo-release/final-summary.md` + recorded final commit `294a8176d19...` (one commit behind actual HEAD, because its own + "record the hash" follow-up commit necessarily couldn't self-reference). Corrected to + the verified, unambiguous `4a268c73515dc4f1d56c1aa2f231714654bffbb8`, cross-checked + against both `git rev-parse HEAD` and the server's `source-revision`. +- Containers on Unraid: `api`/`db`/`web` all healthy; migrations at `e7b08389f47f (head)`. + +## Remaining "MobilityOps" mentions (user-facing) + +- `frontend/index.html:7` — `MobilityOps`; `:6` meta description. +- `frontend/src/components/Layout.tsx:178` — sidebar brand lockup `MobilityOps`. +- `frontend/src/components/Layout.tsx:232` — global search `aria-label`/visually-hidden + label "Search MobilityOps". +- `frontend/src/components/Layout.tsx:299` — footer `MobilityOps PoC` (also + the "PoC" mention to remove). +- `frontend/src/pages/Login.tsx:27` — the manifest-fallback org description string. +- `frontend/src/pages/AboutDemo.tsx:32,63,71` — page heading and two body paragraphs. +- `frontend/src/pages/Knowledge.tsx:108` — empty-state copy. +- `frontend/src/pages/BookingDetail.tsx:80` — scenario callout copy. +- `frontend/src/data/demoGuideSteps.ts:91` — step 8's expected-outcome text. +- `backend/app/services/demo_manifest.py:24` — `ORGANIZATION_DESCRIPTION` (the string + `Login.tsx:27` falls back to when the manifest hasn't loaded yet — both need updating + together to avoid a flash of stale branding). +- `backend/app/main.py:36` — FastAPI `title="MobilityOps API"` (visible in the OpenAPI/ + Swagger UI a reviewer might open; low-risk to rename since it's a display string, not a + route or contract field). +- **`knowledge/procedures/*.md` — user-facing, appears directly in cited answer text**: + `02-vehicle-return.md`, `03-damage-handling.md` (also says "PoC"), `05-cleaning- + checklist.md`, `07-customer-documents.md` (also says "PoC"), `09-booking-conflicts.md` + all say "MobilityOps" in prose that gets quoted verbatim as a knowledge-assistant + answer excerpt — these must be rebranded too, not just the app chrome. +- e2e tests asserting on the string "MobilityOps" that must be updated alongside the + rename (not gaps, just dependencies): `demo-accessibility.spec.ts`, `demo-entry.spec.ts`, + `guided-demo-full.spec.ts` (About-page heading), `ui-redesign.spec.ts` (4× "Search + MobilityOps" combobox name). + +**Kept as technical identifiers** (per the brief, not renamed): Git repo `Jens/MobilityOps`, +local repo folder name, Compose project `mobilityops`, deployment dir +`/mnt/user/appdata/mobilityops`, Postgres db/user `mobilityops`, `knowledge/manifest.json`'s +`"workspace": "mobilityops"` (a RAGcore-workspace config value), frontend package name +`mobilityops-web`, and the internal API route prefix conventions. + +## Language problems (no i18n exists at all) + +- `frontend/package.json` has no i18n library (`i18next`/`react-i18next`/etc. absent). +- There is no language switcher anywhere and no persisted language preference. +- The existing UI mixes English (Dashboard, Vehicles, Bookings, Data Quality workbench, + Audit, Automation internals — all shipped in Task-B's demo-productization pass) and + Dutch (Login, Demo Guide, Scenarios, About, demo badge — added in the same pass) by a + documented, deliberate scope decision at the time. That decision must now be superseded: + the brief requires one true default (nl-BE) with working en-GB/fr-BE switching across + the **entire** application, so the English-language existing screens are now in scope + for translation, not just new surfaces. +- The demo knowledge base (`knowledge/procedures/*.md`) is English-only; a Dutch or French + question against it returns `insufficient` evidence (verified empirically in the prior + work) — this is a real gap for the trilingual guided demo requirement. + +## Remaining technical user-facing language + +- `frontend/src/pages/Automation.tsx:183` — `{r.event_type}` rendered raw (e.g. + `vehicle.returned.v1`) in the primary ledger table, no human label. +- `frontend/src/pages/Automation.tsx:91` — "delivered through the outbox" in primary copy. +- `frontend/src/pages/Audit.tsx:129` — `{e.correlation_id.slice(0, 8)}` shown as the + visible `` trigger text for technical detail, not a meaningful reference. +- `frontend/src/pages/DataQualityIssueDetail.tsx:341,366` — "canonical odometer" used + directly in primary decision copy, not translated to an operational phrase. +- No central technical→human terminology mapping exists anywhere in the frontend. + +## Demo Guide panel problems + +- `frontend/src/components/DemoGuide.tsx` + the `@media (min-width: 701px)` rule in + `styles.css` implement exactly **one** behaviour for every desktop/tablet width ≥701px: + a fixed 400px right-side panel with `.app-workspace.guide-open { padding-right: + min(400px, 92vw) }` reserving space. There is no distinction between "extra-wide + desktop, dock + reflow with a guaranteed minimum content width" and "standard desktop/ + tablet, floating non-modal sheet that auto-collapses to a progress chip" as the brief + now requires — today the panel never collapses to a chip at all; it only fully opens + or fully closes. +- "Ga naar deze stap" (`DemoGuide.tsx`'s `goToStepRoute()`) only calls `navigate(...)`; it + does not scroll to or focus the relevant target element, and does not auto-collapse the + panel afterward. +- No semantic target anchors exist on pages for the guide to scroll/focus toward. +- Reduced-motion is not explicitly handled for the panel's open/close or any future + collapse/expand transition. + +## Data Quality Workbench contrast and hierarchy + +- Confirmed by direct inspection of `DataQualityIssueDetail.tsx`: only the odometer- + regression decision (lines 349,358) uses the higher-contrast `.check-card` treatment + (`background: var(--surface-subtle); border: 1px solid var(--line); padding: 10px 12px`). + Every other decision point — `DuplicateCustomerPanel`'s survivor choice (134,143) and + per-field merge choice (172,187), and `BookingOverlapPanel`'s block-choice (459) — uses + the bare `.checkbox-label` class: a small inline radio with no card background, no + border, no selected-state treatment, and no visible risk/consequence copy next to the + option. This is the inconsistency the brief describes as "kleine losse radioknoppen in + een zwak omlijnde rij." +- Resolve/defer/reject already have some visual differentiation (`button-primary` for the + main resolution action inside each panel; a separate "Defer or reject" section below), + but defer and reject are rendered as two identically-weighted plain `