# RevampIT Build Roadmap (working queue, July 2026) > The public roadmap is `ROADMAP.md` at the repository root — the record the > fleet map reads and `/roadmap` renders. This file is the July 2026 working > queue and is kept as history. Living queue of what we're building. Updated 2026-07-10. Keep in sync as items ship. ## ✅ Shipped (2026-07-10 session) — blog + site i18n - **Blog overhaul**: sticky floating Table of Contents on long posts, an on-brand title image on every post, artifact-grade tables/code/callouts, and SEO (file posts in the sitemap, `/feed.xml` RSS, JSON-LD, hreflang, `noindex` on unlisted posts). - **Site-wide i18n**: filled ~1,800 message keys that existed only in German (the cause of German leaking onto non-German pages), moved the `/about` history timeline out of `history.ts` into messages, and translated all 5 public posts into every locale. `/about` verified French, not German. - **Mastodon runbook** published as an unlisted post + correctness fixes (`SKIP_POST_DEPLOYMENT_MIGRATIONS`, federation-backfill note). - **Unlisted posts** are password-gated (`BLOG_UNLISTED_PASSWORD`, default `revamp`). - **Blog comments** — any logged-in user can comment; author/staff delete (migration 119). - **Admin manages every post** — git/file posts are now Edit (import to DB) / Delete (hide slug) from the admin UI, no git needed; posts carry a `visibility` column (migration 120). - **`/support` deduped** into `/get-involved/donate`. - **Verified (not a bug):** the "technician UI shown to a non-technician" report — the only `technician_profiles` row is the owner's own (active); `butaeff@gmail.com` has none, and every surface gates on an active profile. No change needed. ## ✅ Shipped — autonomous run (2026-07-09, part 2) - **build-your-computer** fixed: broken option cards (Button base crushed stacked title+desc → overlap) → accessible OptionCard; dropped 11 fabricated "global inventory network / Europa" claims → honest local copy. Browser-verified. - **Linux distro guide**: added a "Welche Distribution passt zu dir?" quick-chooser (need→Mint/Ubuntu/Fedora/Debian/MX, jumps to detail cards) on `/services/linux-open-source`. Browser-verified — looks great. - **Marketplace OS picker**: computer/laptop listings (category 10/20) get a "Linux gratis vorinstalliert" distro picker + link to the chooser. (Fixed: category is a CODE not a label.) ## ✅ Shipped (2026-07-09 session) - Timecard self-approval (super-admins) + submit/approve **emails** (submitter confirmation + sole-approver case) - Verification gates admin, not login (frictionless signup; auto-sign-in) - Dashboard redesign (lucide icons, monochrome x.ai discipline) + RSC-boundary outage fix - IT-Hilfe: only technicians can offer + owner "raise compensation" no-offers nudge - Technician registration dead-end fixed (auto-activate + `communityRoles` SSOT) - E2E suite fixed → CI green - Email audit + `docs/EMAILS.md` SSOT; wired shop-sale→seller bell + service-booking→customer - **Promo/gift-code foundation** (migration 115, `revamp100`/`revamp100p`, tested engine) — Phase 1 Slice 1 - **Freigaben** `approval-sources.ts` SSOT + one count engine; killed the dead-`user_content_submissions` double-count; removed Techniker tab — Slice 1 ## 🐛 Bugs to fix - **Technician items shown to a non-technician** — `butaeff@gmail.com` (role=customer, NO `technician_profiles` row on prod) reportedly sees technician UI. Data is clean → a UI-gating bug: some nav/account-dropdown/dashboard surface shows technician links (Offene Anfragen / Meine Angebote) without checking for an active technician profile. Audit every place technician items appear and gate on `getActiveTechnicianProfileId` (the SSOT). NOT caused by the auto-activate change (that only touches existing profiles on save). ## 🆕 Newer asks - **Marketplace OS selection** — for a laptop/computer listing, let the buyer choose which **Linux distro** to have pre-installed; if unsure, link to a **Linux-distro guide** (under Lernen/Guides). Build that guide if missing. - **Linux distro guide (education)** — a beautiful, easy, progressive-disclosure guide (pictures/schemas/diagrams; source or AI-generate images) so people make an educated distro choice. Rethink Lernen/Guides navigation + content around it. - **Profiles SSOT/debt** — are the 4-5 profile types (user/seller/technician/team) following SSOT/SoC/DRY, or spaghetti? (See debt notes.) Unify rating star (Lucide `Star` + one token); build the missing public buyer + team pages; skills taxonomy. ## 📋 Queue (priority order) 1. **Freigaben full unification** — ✅ **hub + count engine done.** The `/admin/approvals` hub reads ONE SSOT engine (`getApprovalCounts` over `APPROVAL_SOURCES`), routing each source to its `reviewHref` by `reviewMode` (inline / bulk / page). ✅ **Dashboard reconciled (edcebec6):** the second engine is gone — `getDashboardStats` no longer reads the dead `user_content_submissions` table for approvals; `buildActionItems` now derives every approval row from the same SSOT counts, gated per-source permission + `superAdminOnly`, so hub and dashboard can't drift. Removed the dead `ActionItemsSection`/`QuickActionsSection`/`buildFulfillActions` the UnifiedQueue had already replaced. **Optional polish left:** filter chips on the hub; richer per-type review surfaces (the routing is correct, the destination pages vary in polish). 2. **Zeiterfassung de-frankenstein** — audit done; design tokens were actually clean (frankenstein is in the LOGIC). - ✅ **Slice 1 (the real bug, shipped+tested):** "fill from plan" had TWO builders storing different category/description for the same intent (month=schedule category, per-day=hardcoded ADMIN) → **divergent payroll rows**. Unified via one canonical `buildScheduleEntryForDate`; test locks range-fill===single-day-fill. Extracted `weekdayIdFromDate`. - ✅ **Slice 2 (config SSOT, shipped):** `TIMECARD_DAY_GRID` (06–22/30min/break window) + `TIMECARD_MANUAL_DEFAULT` (09:00/17:00/60) moved out of HourRangePicker + the hook into `config/timecards.ts`. - ✅ **Slice 3 (one gesture engine + entry UX, shipped+tested):** new `useGridPointerInput` is THE selection engine — month grid and hour grid both run on it (pointer events; mouse drag-paint, touch swipe/long-press paint with scroll preserved via `touch-action: pan-y` + horizontal-intent/long-press lock, tap toggles, trailing-click swallow). `useCellSelection` rebuilt on top of it for the hour grid: drag paints, drag-from-selected erases, so SPLIT SHIFTS are two swipes (gap = break, no Ctrl needed; blocks shown in the summary). Day editor gained exact Von/Bis/Pause inputs (two-way synced with the grid — external changes re-seed, user gestures never echo). Fills on explicitly selected non-plan days now fall back to `TIMECARD_MANUAL_DEFAULT` instead of skipping/refusing (labelled + message); clearing the hour grid zeroes the duration (was a phantom total). Day editor reachable via double-click, bulk-bar "Tag bearbeiten" (1 day), and context menu. Hardcoded German hints moved to `admin.timecards.*` (all 8 locales). - ✅ **Slice 4 (mobile information hierarchy, shipped):** phone screenshots showed the day view unusable — the Von/Bis/Pause fields sat two screens below a full-screen hour grid, the header zone (kicker + title + plan card + month + plan repeated + a SECOND Save/Submit cluster) ate ~1.5 screens, and the "Erweitert" label overflowed the viewport. Now: day view is ordered duration hero → **Von/Bis/Pause first** → quick actions → hour grid (collapsed on phones, open from lg, two-column on desktop) → category/note; `TimecardHeader` is one compact line (month + status badge + totals — Save/Einreichen live ONLY in the sticky bar, which also clears the feedback FAB); clock-in + AI assistant render in month view only; page header is one line. This also resolved the old "two Save/Submit clusters" item. - **Remaining (careful, payroll-adjacent — do attended):** the shift-clock persist path (`addShiftEntry` rebuilds its own PUT); the ~900-line `useTimecardDraft` god-hook needs splitting. Lower-severity: day-grid re-quantizes non-30-min breaks (edge case; exact times survive in the Von/Bis fields — only a grid gesture re-quantizes). **NOTE: the audit's "dead week code" is NOT dead** — `buildTimecardEntriesFromSchedule`/`startOfWeek`/`period_type='week'` are live server-side for historical week timecards; do not remove. 2b. **Geräte-Eingang / product capture** — ✅ **Unified 2026-07-17.** `/admin/intake/capture` is the canonical capture page; legacy `/admin/erfassung` renders the same component. Text, photo, CSV/Excel and speech are input channels into one product schema, followed by review and one destination decision. Deleted the quick/physical mode toggle and duplicate quick form. Quality is the recommended path; inventory, parts and recycling are explicit alternatives. Untested shop publication is a price- and reason-gated audited exception and never receives verification. The pipeline, QR labels, buyer-visible checks, two-person QA, page guide/Hirn context and public open process are shipped. **Remaining integration cleanup:** the legacy `/api/admin/erfassung` write endpoint and Kivvi-only `/api/inventory/import-csv` remain for external clients; retire them only after caller telemetry confirms zero use. ⚠️ **Pre-existing red test (NOT mine):** `src/app/api/admin/erfassung/__tests__/route.test.ts` — 2 success cases 500 because the Kivvi refactor (1d230a3d) added a post-transaction `db.update(inventoryItems)` for `kivvi_sync_status` that the test's `db` mock doesn't stub. Route is fine in prod; the mock is stale. Fix the mock (add chainable `db.update().set().where()`), don't touch the route. 2c. ✅ **DONE (2026-07-09) — Product storage-location picker on erfassung.** New `storage_locations` table (migration 117: kind + optional holder_user_id + seeded Hauptlager/Laden/Nebenlager) + `inventory_items.storage_location_id` FK (free-text `location` kept for compat). Config SSOT `src/config/erfassung/storage-locations.ts` (5 kinds + labels). API `/api/admin/storage-locations` GET+POST. Erfassung: `` (fetch + Select + inline "+ Standort" add) replaced the free-text field; wired through zod schemas → `formDataToPayload` → `create-product`. 342 erfassung/schema tests green. Built in an isolated worktree (a parallel session held the main tree). **Minor follow-up:** the inventory GET doesn't return `storage_location_id` yet → EDIT doesn't pre-select it (new erfassung works). ~~Design notes:~~ current `inventory_items.location` is FREE TEXT; the `locations` table is for PUBLIC venues — did NOT reuse it. Built a dedicated internal model: - Migration: `storage_locations` table (`id`, `name`, `kind`, `holder_user_id` uuid NULL → users, `is_active`, `created_by`, timestamps) + `inventory_items.storage_location_id` uuid NULL FK. Seed defaults (Hauptlager, Laden, Nebenlager). Keep the old free-text `location` column for backfill/compat (don't drop). - Config SSOT `src/config/erfassung/storage-locations.ts`: `STORAGE_LOCATION_KINDS` = main_storage · shop · secondary_storage · member_possession · other, with DE labels + icon. (member_possession rows carry a `holder_user_id`.) - API `/api/admin/storage-locations`: GET (list active) + POST (create, withAdmin('intake'|'products')). - Erfassung: replace the free-text location `` in `ProductDimensionFields.tsx` with a `