Files
evig/docs/ROADMAP.md
CatoandClaude 69022040d9 feat(records): ROADMAP.md, CHANGELOG.md and a public /roadmap read from the fleet map (#522)
evig joins the fleet's building-in-public record contract. The record lives
in this repository as two markdown files; Loki's fleet map ingests them and
the site renders them from the map, so there is one source and no local copy
that can drift.

- ROADMAP.md at the root, Now / Next / Later / Shipped with milestones,
  derived from CLAUDE.md, docs/ and the git history. No dates. The honesty
  boundary holds: the Verein is "in Gründung", nothing claims receipts or a
  recognised non-profit status.
- CHANGELOG.md at the root in Keep-a-Changelog form, generated from the same
  releases src/config/changelog.ts renders at /changelog; that config now
  states the root file is the canonical record and must move with it.
- /[locale]/roadmap renders profile.roadmap from
  loadDevelopmentProfile(fleet map, "evig") with evig's own chrome
  (PageHero, Section, Card) — the data is the map's, the markup is ours, so
  the card-shell ratchet holds at 3. Fetch revalidates every 300s with an 8s
  timeout. A null profile says the record is temporarily unavailable; an
  empty one says nothing is recorded yet.
- Labels for the page and the footer link in all eight locales, DE canonical.
- Footer links the roadmap next to the changelog; both are in the sitemap.
- Unit test for the data path over a fleet-map fixture through
  developmentProfileFromMap, grouping, progress and the fetcher's cache
  semantics.

Until Loki's producer change deploys, the live map carries no evig records
and the page shows "nothing recorded yet" — expected.


Claude-Session: https://claude.ai/code/session_01NJJp6XiUkeEVzjDaBmWjL3

Co-authored-by: Claude <noreply@anthropic.com>
2026-09-28 04:37:09 -07:00

18 KiB
Raw Permalink Blame History

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: <StorageLocationSelect> (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 <Input> in ProductDimensionFields.tsx with a <Select> of active storage locations + an inline "+ Standort hinzufügen" that POSTs and re-selects. Keep box_id. Write storage_location_id in formDataToPayload + /api/admin/erfassung.
  • ONE location per product (the ask is "choose among a list", not split-across-places). SSOT/SoC/DRY: config = kinds, table = instances, one API, one Select component.

2d. ✅ DONE (2026-07-09) — build-your-computer honesty fix + category SSOT review.

  • Category SSOT review conclusion: KATEGORIEN is well-structured for part-matching — main codes + component subcategories already exist (70→ 701 Grafikkarten, 702 RAM, 703 SSDs/HDDs, 704 CPUs, 705 Netzteile, 706 Mainboards). NO restructure needed. The real blocker for a live part-matcher: listings.category is a SINGLE code with NO subcategory column, so the granular component codes never reach the storefront. A real inventory build-matcher needs a listings.subcategory migration + backfill first — flagged as future work.
  • build-your-computer fabricated-data fix (shipped): the tool showed getMockRecommendation/MOCK_INVENTORY — invented CPUs/GPUs with fake prices, fake stock, and fake cross-EUROPE locations (Berlin/London/Amsterdam/Paris/Rom…) for a LOCAL Zürich non-profit. Removed entirely. Replaced with honest getBuildRecommendation(useCase) → component-TIER guidance (no fake products/prices/scores) + Step3 now links to the REAL /marketplace + a "Build anfragen" CTA + an honest sustainability line (no fabricated CO₂ numbers). 44 config/i18n tests green.
  • Still future: real inventory build-matcher (needs listings.subcategory); the page's visual redesign was already done earlier this session (option cards + honest copy).
  1. Role-aware onboarding (partial — shipped staff-aware checklist) — ✅ staff (@revamp-it.ch) now get a DISTINCT onboarding checklist (verify email · set schedule→Zeiterfassung · complete team profile skills/goals), DB-derived from team_profiles, surfaced on /admin + /dashboard, self-hiding when done.

    • 🐛 Onboarding "complete your profile" link is DOUBLE-broken (diagnosed 2026-07-09, NOT yet fixed — security-adjacent, do attended): the checklist links to /admin/team/${userId}/edit, but (a) that page + the PUT /api/admin/team/profiles/[id] route are BOTH gated requireSection('team')/withAdmin('team'), which new staff usually lack → 403; AND (b) the route param is the team_profile.id (WHERE tp.id=$1), but the link passes the user_id (team_profiles.id is a separate defaultRandom() uuid, ≠ user_id) → notFound() even if allowed.
    • ✅ Good news (de-risks the fix): the PUT route ALREADY gates sensitive fields (salary/AHV/hr_notes/canton) on isSuperAdmin (route.ts:158-164), so self-service can't escalate to compensation data.
    • Ready-to-execute plan (own-only = zero id-based authz to get wrong): add GET+PUT /api/admin/team/profiles/me using withAuth (any staff) that ONLY ever touches WHERE user_id = session.user.id; reuse the existing super-only sensitive-field guard; add page /admin/team/me/edit (withAuth, includeSensitive=false for non-super) that loads own profile by user_id + renders TeamProfileForm; make useTeamProfileForm target /profiles/me in self mode; repoint the onboarding teamProfileHref to /admin/team/me/edit. Test: non-team staff can edit own non-sensitive fields; CANNOT write salary even if injected; CANNOT reach another profile.
    • Also still to do: AI-assisted profile fill; skills/interests taxonomy (config SSOT) to power dev-paths + interest-based task assignment.
  2. Profiles overhaul (NEW) — audit + improve all profile types (team/staff, technician, seller, customer/people/organization). Public profiles should rival/beat Ricardo/Amazon (trust signals, ratings, verified badges, listing galleries, member-since, response time, activity). Staff profiles rich enough for dev-paths + task matching (skills taxonomy, interests, seniority, schedule). (Audit running.)

  3. Promo Slice 2 — admin issuance UI (/admin/promo-codes) + checkout redemption across marketplace/workshop/appointment, incl. 100%-off → skip Payrexx gateway → mark paid (no flow supports zero-total today).

  4. Gift cards Phase 2 — purchasable, depleting balance, sold in the marketplace, recipient delivery. On the same promo_codes rail.

  5. Reparaturbonus ZH — research the Stadt Zürich repair-bonus program (+ George's dev/reparaturbonus-zh repo; city didn't select us but we're building it anyway) and integrate bonus redemption so customers can use it on our site.

  6. ✅ DONE (2026-07-09) — Removed orphaned pro-repairer application/certification flow. Deleted 36 files (/api/repairer/apply, all /admin/repairer-applications + /api/admin/documents + /api/admin/certifications routes, the admin page, the 9-file review-UI dir, repairer email templates, dead certification-status.ts + document-status.ts). Surgically edited shared files: dropped the repairerApplications drizzle table + 5 TABLE_NAMES entries; removed the dashboard repairer count (getDashboardStats/buildActionItems/types/InlineActionButton), approveRepairerApplicationAction, the repairer-applications section + permission alias + breadcrumb, and repointed the IT-Hilfe empty-state CTAs to the technician directory. Migration 116 drops technician_applications. KEEP flow untouched: repairer_profiles (community tier), getActiveTechnicianProfileId, all /api/it-hilfe/* + /it-hilfe/*, TechnicianProfileSchema. Verified: 0 dangling refs, 0 tsc errors, 131 suites / 3082 tests green. (The 4 cert/doc tables the routes queried never had a migration — they never existed — so nothing to drop for those.)

  7. Email follow-ups (in docs/EMAILS.md) — paid-workshop + paid-appointment webhook confirmations, marketplace double-emails (apply skipEmail), time-off requester ack, task_assigned SSOT drift.

  8. GNU Taler + other payment rails — wire as far as possible NOW (adapter registry already exists) so they're ready the moment external deps (creds/backend/store) are provided. Don't wait on things needing the team.

  9. AI email assistant — inbox copilot on the HIRN RAG assistant + IMAP (Thunderbird/shared inbox, credential via user, never plaintext to Claude) + Nextcloud Talk. Spec as its own initiative.

  10. Deliverability (ops, user's task) — authenticate revampit.ch in Brevo (SPF/DKIM/DMARC) so external emails actually land. Until then, prefer in-app notifications.