Commit Graph
132 Commits
Author SHA1 Message Date
GandClaude Opus 5 a21d8906af chore: add a formatter, and close a CSS comment that was never closed (#419)
* chore: add a formatter, matching the style this repo already writes

singleQuote=true was chosen by counting this repo's own
imports, not by fleet decree. The fleet is genuinely split and the two repos
that already had a .prettierrc disagreed with each other, so there was no
standard to restore. Quote style does not cross repo boundaries; having a
gate does.

Markdown is ignored for now — prettier rewraps prose, which would bury the
real diff.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* style: format with prettier, and close a comment that was never closed

The formatter refused this repo outright, which turned out to be a real defect
rather than a tooling complaint. kivitendo-intake.css opens a header comment,
and line 17 contains an inner /* ⚠ PRÜFEN */ — CSS comments do not nest, so
that inner terminator CLOSES the header. Everything after it is parsed as CSS
until the stray */ on line 20. A browser mis-parses it the same way.

The file exists in two places (public/presentations/ and deliverables/), both
carrying the same defect; fixing one still failed the gate, which is how the
duplicate surfaced at all.

Mechanical otherwise. This SHA is listed in .git-blame-ignore-revs.

* chore: teach git blame to skip the reformat

* fix: undo a 3-way merge duplication in AdminSidebar.tsx

Merging main with -X theirs duplicated a 30-line block: main's currency-sweep
commit and this branch's prettier reformat both touched overlapping lines in
the single-destination-group render path, and the -X theirs strategy inserted
rather than replaced, leaving two near-identical copies and a dangling closing
brace — SyntaxError: ',' expected at line 298.

The branch has no legitimate change to this file's logic, only formatting, so
main's content is correct outright. Took it wholesale rather than hand-editing
the merge result.

* fix(lint): reattach 5 directives the reformat detached

Four eslint-disable-next-line sites for react-hooks/set-state-in-effect and one
@ts-expect-error, all the same defect: the directive sat above useEffect( (or
above a JSX element), while the statement that actually errors is 1-2 lines
further down inside the block. eslint/tsc report at the real statement; the
directive, still bound to its original line number, protects nothing there.

TimecardReviewDrawer.tsx (x2), DataEntryTabs.tsx, AppointmentBookingForm.tsx,
CreatePoolModal.tsx. Same root cause documented for hirnli, fleetcrown and
ivy-portal earlier today — a positional directive is a hidden dependency on
formatting, and this is the fourth distinct shape it's taken.

* fix(i18n): restore a same-line audit-exemption marker

Fifth shape of today's positional-directive defect, this time the repo's own
i18n-hardcoded-audit convention rather than eslint or tsc: a // i18n-ok comment
exempts a hardcoded string only when it trails the SAME line. prettier wrapped
this one if-statement's long condition onto its own line, leaving the marker
on the return statement below — the exact sibling one line down
('fortgeschrittene bis experten') stayed on one line because it was short
enough not to wrap, and it alone kept passing.

Restored the one-line form and added // prettier-ignore so a future reformat
cannot re-split it. Verified against the real audit script locally: 0 new
violations.

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-31 13:35:50 +00:00
Mao NakamotoandClaude Opus 4.8 2f303433e1 fix(brand): infinity + AI spark mark; avatar to Avatar SSOT
- Logo: keep the eternal-reuse infinity loop and ADD the AI spark (a filled
  four-point sparkle, top-right) - the intelligence the loop makes accessible.
  Corrects the earlier ring-only mark (the infinity was meant to stay, with the
  star added). EVIG_MARK to loopPath + sparkPath; Logo, /vision (static +
  animated), OG card and the regenerated favicons all follow the SSOT.
- Avatar: the header/menu "GB" initials badge was a hand-rolled solid bg-action
  circle with a white ring - off-key, and it never used the photo. Route
  UserMenu (header + dropdown) and MobileMenu through the Avatar SSOT: shows
  the photo when set, else one subtle tokenized lime tile everywhere.

verify green (typecheck 0, lint 0).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-28 14:26:28 +02:00
Mao NakamotoandClaude Opus 4.8 a306cf3b5c feat(brand): new evig mark — orbit + intelligence spark
Replaces the thin, generic infinity with a considered mark: an eternal orbit
(ring) carrying a bright node — the spark of intelligence riding the cycle.
Chosen from a rendered exploration (direction D).

- brand.ts: EVIG_MARK restructured to a stroked ringPath + a filled node (one
  SSOT). All four consumers updated — Logo, /vision manifesto (static Mark +
  animated HeroLoop), OG share card.
- Regenerated favicon.ico / icon.png / apple-icon.png / evig-favicon.png
  (obsidian tile + electric-lime orbit).
- Mark uses --color-action, so it is the single per-mode brand green (deep lime
  light / electric dark) like everything else — no separate "logo green".

verify green (typecheck 0, lint 0). Rendered live in the header + at favicon size.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-28 13:51:02 +02:00
GandClaude Opus 4.8 57eaa9589e brand(evig): finish evig rename + honour the Revamp-IT roots and tell the fork (#248)
Two things the user asked for: finish renaming Layer A brand surfaces to evig
(the GitHub repo is already `evig`; the rendered app copy + org.ts were already
migrated), and lean INTO the Revamp-IT origin — name it, honour its history, and
tell the fork honestly. Layer B infra identifiers (is_revampit, @revamp-it.ch,
revampit_cms, /opt/revampit, systemd, host) are deliberately untouched.

Layer A rename (leftovers):
- package.json name revampit -> evig
- public/site.webmanifest: name/short_name/description -> evig; drop the stale
  RevampIT orange (#ff6b35) for evig obsidian (#0a0a0a)
- LICENSE holder -> evig
- packages/saldo/package.json: stale github.com/maonakamoto/revampit -> /evig
- CONTRIBUTING.md clone URL: was doubly-stale g-but/revampit -> maonakamoto/evig
- public/saldo/index.html footer "from Revamp-IT" -> "from evig"
- public/blog/geraete-eingang-integration.svg diagram label -> evig

Honour Revamp-IT + the fork story (naming them, linking revamp-it.ch, crediting
their real since-2003 history as THEIRS, and framing the split as a difference of
ambition + tempo — not grievance):
- src/config/org.ts: new ORG_ORIGIN SSOT (Revamp-IT: Zürich gemeinnütziger Verein,
  since 2003, revamp-it.ch)
- GeschichteSection (/about) + vision (/vision): render the Revamp-IT link, rewrite
  the origin narrative in DE + EN
- messages/{fr,es,it,ja,ko}.json: translated founding narrative (vision stays de/en
  with DE fallback, as before)
- docs/EVIG_STORY.md + docs/MISSION_STATEMENT.md: rewritten to name/honour Revamp-IT
  and set the "grateful, never at their expense" voice guardrail; docs/MANIFESTO.md
  retitled to evig with a dated historical note

Verified: tsc clean, eslint clean on changed files, lint:umlauts clean, all 7
locale JSON valid with balanced <a>/{foundingYear} tags.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-28 09:17:34 +02:00
GandClaude Opus 4.8 8facb0e29d feat: unify evig identity — Obsidian & Ion Lime, one SSOT, light + dark (#247)
* feat(identity): unify evig onto one design SSOT — Obsidian & Ion Lime, light + dark

The site had two brands: green revamp-it chrome + a lime /vision island.
This collapses them into ONE token SSOT that looks dope in both themes.

- Palette: green -> Ion Lime, preserving the light/dark CONTRAST structure so
  ~1000 token consumers keep working. Deep lime (#4d7c0f) = readable text/links/
  logo in light; electric lime (#B6F531) = dark accent + the new 'strong' CTA
  fill (electric + ink text) in both modes. Dark surfaces -> obsidian.
- Mark: one refined eternal-loop geometry in brand.ts (was two divergent marks);
  Logo strokes the action token (follows theme); /vision renders the same SSOT.
- Fonts: Space Grotesk (display) + Inter (body) + IBM Plex Mono via next/font,
  with CJK/Cyrillic fallbacks; hero titles + eyebrows now use them. (The app was
  silently on system fonts — --font-inter was never defined.)
- Killed the .theme-vision token island; /vision now inherits global tokens.
- Contrast: flipped 46 'bg-action text-white' -> text-action-text (ink on lime)
  so dark-mode fills are readable; added --color-action-strong token for CTAs.

Verified: typecheck, lint (0 errors), test:i18n (16/16); 0 arbitrary hex.
Rendered home + /vision + marketplace in BOTH light and dark.

Still to finish (no-green-left-behind follow-up): favicons/OG card + email/PDF
templates + a few secondary buttons + ui-colors.ts still bake the old green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* feat(identity): no green left behind — favicons, OG, emails, PDF → Ion Lime

Finish the rebrand across every non-CSS surface:
- Regenerated favicons (icon.png / apple-icon.png / favicon.ico) with the lime
  eternal-loop on an obsidian tile; refreshed the referenced public favicon.
- OG share card accent → electric lime (ui-colors OG_IMAGE_COLORS.accent).
- ui-colors brand greens (feedback page, global-error primary, newsletter
  success) → lime. Data-viz greens (chart 'positive'/category) kept — green=
  positive is a UX convention, not brand.
- Email templates + invoice PDF: every green hex → lime (deep lime on fills so
  white text stays readable).
- DB default content color → deep lime for new rows.
- rich-editor selected-cell highlight fallback → --color-action.

Verified: typecheck, lint (0 errors), test:i18n (16/16). OG image + favicon
rendered and eyeballed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-27 19:28:58 +02:00
GandClaude Opus 4.8 3ac9c4bac7 feat: /vision — the founding vision as a real route (#246)
* docs(evig): founding story SSOT, brand package, non-profit framing

- docs/EVIG_STORY.md: canonical founding narrative (the 'access to
  intelligence is the inequality that matters' thesis) that About/hero/
  decks/grants derive from.
- public/brand/: organised brand package (SVGs + raster exports + manifest).
- .claude/CLAUDE.md: reconcile non-profit framing (gemeinnütziger Verein in
  Gründung) with the standing honesty boundary (no tax-deductible receipts
  until registered + canton-recognised).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* feat(vision): add /vision manifesto route (Obsidian & Ion Lime, DE+EN)

The founding vision as a real, full-bleed public route — the surface the
live site had nothing of (mission/thesis for donors + talent). Debuts evig's
new obsidian+lime identity as a scoped, low-risk beachhead; the green app is
untouched and the global retheme stays a separate decision.

- Route src/app/[locale]/vision/{page,content}.tsx — static, own header/footer.
- ConditionalMainLayout: locale-aware /vision opt-out from standard chrome.
- globals.css: scoped .theme-vision tokens (obsidian/lime primitives +
  semantic overrides) + self-contained .v-* layout. Zero literal hex in TSX.
- Fonts self-hosted (subset woff2, no CDN): Space Grotesk, Inter, Plex Mono.
- i18n: DE (canonical) + EN vision namespace; other 6 locales fall back to DE
  and are recorded in the i18n baseline (intentional deferral until copy locks).
- routes SSOT + sitemap wired.

Verified: typecheck, lint (0 errors), test:i18n (16/16) all green; rendered
/vision (de) + /en/vision at 1200px and 390px — fonts load, theme scopes,
chrome opt-out works, no horizontal overflow.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* feat(vision): real CTA destinations, footer discoverability, repo cleanup

- CTAs no longer point at the non-existent hallo@evig.ch mailbox — route to
  real in-app pages instead: Support → /get-involved/partnerships, Build →
  /get-involved, products → /contact (added partnerships + contact to the
  ROUTES.public SSOT).
- Discoverability: link /vision from the site footer navigation.
- Cleanup: remove 11 orphaned 'ChatGPT Image …' scratch PNGs (8.4 MB) that
  were shipping unreferenced in public/images/logo/.
- i18n: drop the now-unused mailto subject keys; add footer.vision label
  (DE+EN); baseline the deferred locales for the new keys.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-27 17:50:04 +02:00
Mao NakamotoandClaude Opus 4.8 13a32ccf53 brand(evig): rewrite narrative to the true spin-off story (DE) + open up categories
The About/story surfaces claimed Revamp-IT's identity as evig's: "non-profit
seit 2003", a 2003–2024 milestone timeline, "20 Jahre Erfahrung". evig is a 2026
spin-off — that's false. Rewrite to evig's real story (DE canonical):

- Hero + About mission → the "Zugang zu Intelligenz, für alle bezahlbar"
  positioning; three focus pillars (Zugang zu Intelligenz / Reparatur für alle /
  Kreislauf-Marktplatz) replace the charity-refurb triad.
- Origin story (GeschichteSection) → confident spin-off narrative; the fabricated
  20-year timeline + "since 2003" track-record stats are removed (evig shows no
  numbers it hasn't earned). Dead history data + test deleted.
- Mission image was literally revamp-it's storefront (visible "revamp-it" sign) →
  replaced with an on-brand evig panel (mark + wordmark, generated from the SSOT
  geometry). "0 Jahre Erfahrung" badge + fabricated ImpactStatsSection removed.

Also (per "make categories trivially extensible"): getParentCategory now resolves
the parent by membership in `subs`, not by slicing the id — removes the
2-digit/3-digit id coupling and the 9-category ceiling, so non-IT circular goods
can be added later as one Kategorie with no consumer changes. Docs updated.

Other locales + the deeper track-record pages follow in subsequent commits.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-26 18:06:25 +02:00
Mao NakamotoandClaude Opus 4.8 aee9e6f236 brand(evig): real logo identity — Möbius "eternal loop" mark, favicons, OG card
Replace the renamed-but-still-revamp-it visuals with a genuine evig identity:

- New mark: an "eternal loop" (Möbius infinity) — evig = "eternal" + the
  circular-reuse loop; monochrome, legible to 16px. One SSOT geometry drives
  every asset.
- Logo.tsx now renders inline SVG mark (brand-green via --color-primary-600) +
  live Inter wordmark (currentColor) — razor-sharp at any size, auto light/dark,
  zero per-theme bitmaps. Drops the fixed PNG lockup.
- Regenerated all favicons / app-icons (favicon.ico 16/32/48, apple-icon, icon,
  ORG_IMAGES logo+favicon) as a near-black tile + green mark, from the same
  geometry via sharp.
- OG share card: extracted the two duplicated opengraph-image routes into one
  shared BrandOgCard (DRY), reskinned to the evig dark+green look, copy sourced
  from the org.ts SSOT (name/motto/description). Removes revamp-it's leftover
  "Alte Hardware. Neues Leben." tagline + ♻️ emoji from social previews.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-26 15:47:31 +02:00
Mao NakamotoandClaude Opus 4.8 9ef3c02008 rebrand(evig): identity SSOT, i18n, README, logo assets [Layer A/1]
- org.ts: name/mission/founding → evig; positioning = affordable intelligence
- KILL money-routing: blank revamp-it IBAN; add PAYMENT (BTC + OrangeCat, TODO)
- blank infra-coupled fields evig lacks (phone, legacy site, external shops)
- i18n: brand tokens → evig across all locales (values only, keys untouched)
- README + logo assets → evig

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-26 12:19:40 +02:00
GandClaude Opus 4.8 da2655a276 chore(infra): remove Vercel references — everything is self-hosted now (#239)
Vercel is fully decommissioned; production runs self-hosted on the Hetzner
box (revampit.orangecat.ch) behind Caddy, deployed via deploy-selfhost.yml.

- Sentry configs: VERCEL_ENV/VERCEL_GIT_COMMIT_SHA → NODE_ENV +
  NEXT_PUBLIC_BUILD_SHA (the self-host build SHA set by the deploy script).
- proxy.ts: drop dead '/_vercel' from BYPASS_INTL.
- prune-audit-log cron: drop x-vercel-cron auth branch, keep CRON_SECRET
  (aligns with the other cron routes + run-cron.sh); wake-recurring-tasks
  schedule comment reworded to the systemd-timer reality.
- Public web-design "technologies we use": Vercel → self-hosted Hetzner
  (tsx url + hosting description in all 8 locales).
- Presentations: ki-nachhaltigkeit demo links revampit.vercel.app →
  revampit.orangecat.ch; aoz-wohnen hosting slide → self-hosted Hetzner.
- Email template admin links: hardcoded revampit.vercel.app → ${ORG.website}.
- .env.example: Vercel Blob → S3 (Hetzner Object Storage) vars;
  KIVVI_API_URL → kivvi.orangecat.ch.
- CI: drop dead NEXT_PUBLIC_VERCEL_ENV build env.
- Comments (auth/env/sanitize/instrumentation/tax-reports/hirn/kivvi/
  inventory) reworded to self-hosted reality, rationale preserved.

Accurate historical/current docs (docs/**, README, archive) and the
immutable migration 033 comment left as-is.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-22 21:46:20 +02:00
Mao NakamotoandClaude Opus 4.8 c5a3cffeda content(blog): deepen Zusammenarbeit — how it works, limits, research; better screenshots; all 7 locales
- New section "Warum Zusammenarbeit auf Augenhöhe wirkt — und wo ihre Grenzen
  liegen": grounds the collaboration model in Self-Determination Theory
  (autonomy/competence/relatedness) + participation, motivation and team
  research, with an honest limitations list
- Extensive verified research links, Swiss/German first: Frey & Stutzer and
  Osterloh & Frey (Zürich), Weibel (St. Gallen), Hans-Böckler Mitbestimmung;
  international pillars Ryan & Deci, Gagné & Deci, Edmondson, Locke & Latham,
  Haslam & Reicher, Endenburg (Konsent/Soziokratie)
- Better, tighter screenshots: Teams (no sidebar), the proposal editor showing
  all decision types incl. Konsent, richer Protokolle; NEW task-creation form
- Expanded Aufgaben paragraph (type/priority/team/assistant)
- Re-translated en/fr/it/es/ja/ko/ru from the updated DE canonical

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-21 13:00:11 +02:00
Mao NakamotoandClaude Opus 4.8 6dcf79eeb4 content(blog): expand Wiedereinstieg article + refresh all 7 translations
- New "Öffentlich mitfinanziert" section: KlimUp accountability + a
  two-level impact-measurement model (person-level confidential vs
  aggregated programme-level) with a concrete metrics table; the portal
  measures as a byproduct of work already recorded (SSOT, no surveillance)
- 3 real admin Zusammenarbeit screenshots (Teams, Entscheidungen, Protokolle)
- 6 verified Swiss/DACH sources woven into the research sections
  (Zürich PUK IPS RCT, 6-yr follow-up, IAB/PASS, Sozialfirmen/BSV,
  Swico/SENS Fachbericht, Empa reuse LCA)
- Fully re-translated en/fr/it/es/ja/ko/ru from the DE canonical
  (previous files were stale stubs: 0 images, 3 sections missing)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-21 12:19:56 +02:00
Mao NakamotoandClaude Opus 4.8 5fb0c85c30 content(blog): research-backed expansion of «Ein Platz, an dem Beitrag zählt»
Recovers the second interrupted session's finished work: adds the evidence
base for work reintegration (Paul & Moser 2009 meta-analysis, Jahoda's latent
functions, Bandura self-efficacy, IPS/Modini 2016, Global E-waste Monitor 2024)
and five real portal screenshots (marketplace grid, public profile, IT-Hilfe,
reintegration programme, impact).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-21 11:43:45 +02:00
Mao NakamotoandClaude Opus 4.8 9554f7e2ef content(presentations): retire duplicate decks + enrich the 3 platform decks
- Retire legacy decks kivvi / revamp-info / revampit-neu: drop from the
  registry, delete their HTML, and 308-redirect their old slugs to the
  current decks so already-shared links keep working.
- revampit-portal: reworked layout (new .shot-full slide type) + 7 real
  screenshots (marketplace grid, listing, sell, so-funktionierts, impact,
  finances, spenden).
- kivvi-plattform: "Aus der Praxis" origin slide (revamp-it, seit 2003, MIT).
- revamp-info-plattform: Geschichte, Vision 2030, Team & Kapazität und das
  solidarische Preismodell.

Recovers the interrupted presentation-polish work from a closed session.
The empty "0 Workshops" screenshot is intentionally not featured.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-21 11:36:03 +02:00
Mao NakamotoandClaude Opus 4.8 7ae044adba content(showcase): 3 platform presentations + 3 blog posts (revamp-it, kivvi, revamp-info)
Adds a dedicated, informative presentation + long blog post for each of the
three platforms, in Swiss German, public:
- Decks (self-contained, keyboard-navigable slide engine, real prod screenshots):
  public/presentations/{revampit-portal,kivvi-plattform,revamp-info-plattform}
  registered in src/config/presentations.ts (audience public).
- Posts (Markdown, 1.1k–1.5k words, embedded screenshots, gfm tables):
  content/posts/{die-revamp-it-plattform,kivvi-erp-kreislaufwirtschaft,
  revamp-info-fundraising-transparenz}.md — no author line → inherit the
  personal author.
- 17 real screenshots captured from prod into public/blog/showcase-*.png.

Narrative is problem → solution → feature-rundgang → scale/tech → impact
(not a YC template). Verified: typecheck, lint:umlauts, all image refs resolve.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-21 10:56:11 +02:00
Mao NakamotoandClaude Fable 5 6e7b443f82 feat(saldo): one-command rename — brand name is now trivially changeable
The product name is easy to change without breaking the engine (where "saldo"
also means "balance"):

- The landing site's brand name is a single PRODUCT.name constant; the two
  mid-sentence brand mentions were reworded so the domain word "Saldo" (the
  SALDO column, computeTimeSaldo, Zeitsaldo/Feriensaldo) is fully isolated.
- The Projects card title comes from a config `brandName` (data.ts), not the 8
  locale files — a brand is a proper noun, so it lives in one place.
- `packages/saldo/scripts/rename.mjs "New Name"` renames everything (package,
  alias, site, Projects card, README, locale titles) in one command; it reads
  the current name from the SSOT (re-runnable) and never touches the domain
  term or the /saldo URL. Round-trip tested. See packages/saldo/RENAME.md.
- Removed the redundant packages/saldo/site copy (the app serves public/saldo).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-21 10:40:21 +02:00
Mao NakamotoandClaude Opus 4.8 b62e396cb6 content(blog): expand «Geräte-Eingang» + all 8 locales + UI mockups
Longer, better-flowing version: adds a "Drei Prinzipien / Three principles"
section (SSOT · certainty-not-percentages · idempotency), a review-screen UI
mockup (the AI-filled form with the single Prüfen chip) and a marketplace-payoff
mockup (11 → 208 listings). Full localization: de/en/fr/it/es/ja/ko/ru.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-21 10:29:38 +02:00
Mao NakamotoandClaude Opus 4.8 92128c8da2 content(blog): «Geräte-Eingang — ein Foto statt fünfzehn Minuten» (DE + EN)
Technical deep-dive on the device-intake system: the old spreadsheet→CSV→Cem→
Kivitendo hand-off chain, the AI extraction cascade (Groq/Qwen-Vision/Whisper,
extractJsonObject, detectCategory), the createErfassungProduct SSOT + QC gate,
publishing + the 197-product Shopware migration, the Kivvi REST sync (idempotent,
webhooks) and the browser-emulating Kivitendo translation layer, and the storage/
logistics gap as future work. 5 custom SVG diagrams. DE canonical + EN.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-21 09:38:38 +02:00
Mao NakamotoandClaude Fable 5 cc9cce53b7 feat(saldo): serve the Saldo landing at /saldo and list it in Projects
Puts the Saldo product on the main Revamp-IT site:
- The standalone landing (DE/EN, light/dark, live balancing ledger) is served
  at /saldo by a route handler (src/app/saldo/route.ts) that streams
  public/saldo/index.html — mirroring the presentations route-handler pattern
  (rewrites stay empty). Public + indexable. /saldo is excluded from the i18n
  proxy matcher so middleware doesn't locale-route it.
- Saldo is added to the public Projects showcase (data.ts + projects.items in
  all 8 locales). Its card links to the /saldo landing via a new optional
  `externalHref` on ProjectConfig, so no /projects/saldo detail page is needed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-21 09:22:11 +02:00
Mao NakamotoandClaude Opus 4.8 8ede0d23b6 content(blog): social-work angle — how the portal supports workforce reintegration
New post "Ein Platz, an dem Beitrag zählt" (category Menschen) on Revamp-IT's
Wiedereinstieg mission and how the Zusammenarbeit side of the portal supports it:
personal profiles (skills/interests/goals/strengths + current focus), team
profiles with goals/metrics, tasks, decisions/voting, deliverables/protocols,
and the reintegration HR track. Honest "built today vs. what we could build"
framing (skill levels, development plans, learning paths, an accompaniment view).

DE canonical + en/es/fr/it/ja/ko/ru translations; hero illustration.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-21 08:34:39 +02:00
Mao Nakamoto 2cfa0aab0f fix(presentations): ground V3 charter claims in verified text; V2 speaker notes
Provenance audit against the actual Kraftwerk1-Charta (kraftwerk1.ch):
- Remove the one fabricated phrase «Re-Use im grossen Stil» (not in the charter).
  Replace slide 04 with five VERBATIM charter principles mapped to revamp-it:
  Souveränität (nennt «Reparaturwerkstätten, wo es sinnvoll ist»), Synergie
  («gemeinsame Infrastruktur, z.B. Informatik»), Selbstorganisation, Solidarität,
  Offenheit — all confirmed present in the charter PDF.
- Correct the closing motto to the charter's verbatim form (no comma):
  «Tüend s Züüg zrugg woners her gnoh hend.»
- Team slide: reorder contacts to Andreas Rudin · Veronica Caon · Daniel Zbinden;
  drop the preachy speaker note, state the social impact factually.
- Add a sourced «Sozialer Mehrwert» slide (team-deck wording + Charta «Solidarität»),
  no invented numbers.

V2: replace meta placeholder notes with real spoken speaker notes derived strictly
from each slide's own (team-verbatim) bullets — nothing added.
2026-07-14 10:55:33 +02:00
Mao NakamotoandClaude Opus 4.8 d3938e9201 feat(blog): title/hero image for the open-vs-closed communication post
Every post should have at least a title image; this one had none. Adds a
1200x630 hero (closed padlocked node → open mesh) that also serves as the
og:image for link previews.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-14 10:46:56 +02:00
Mao Nakamoto be0999fe5c feat(presentations): V2 goes photo-forward (big photos like V3)
Replace the small split panels with a magazine layout: a big photo filling
~55% of the slide beside a clean dark content panel (team text stays fully
readable). Applied to Wir sind, Mission, Anbieten, Kundschaft, Nutzung; title,
Versprechen and Danke are full-bleed. Uses more of the PR-Fotos set
(werkstatt, refurbished, repair, support-desk, geraete, cables, penguins).
Content unchanged (team wording); deviations still noted in speaker notes.
2026-07-14 07:41:11 +02:00
Mao NakamotoandClaude Opus 4.8 38de565cf3 fix(deliverables): responsive Kivitendo restyle — verified selectors, desktop 3-panel preserved
Live-verified on the real 3.9.2-beta order form: #row_table_id, #input_row_table_id,
table.tbl-horizontal (float div.col columns), .numeric, .horizontal-scroll-wrapper.
Drop the layout-breaking global width:100% + the dead .form-header guess; header
columns stay side-by-side on desktop and stack at <=1100px/<=640px — responsive for
any device, not just tablet.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-14 02:55:35 +02:00
Mao NakamotoandClaude Opus 4.8 9cab1dcb1e feat(presentations): V2 = team content near-verbatim + my design + photos
Rework V2 to mirror the team's actual deck content 1:1 (their headlines and
bullets: Wir sind / Mission / Mitglied bei / Was wir anbieten / Kundschaft /
Anlässe / Projekte / Nutzung der Räumlichkeiten / Unser Versprechen / Danke),
just redesigned in the house style with their own photos woven in as design
(shopfront, werkstatt, repair, support-desk, penguins). The only content
deviation — the four unfinished template/placeholder slides + the empty
2016/2020 hexagons are omitted — is recorded in the deck's speaker notes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-14 02:28:46 +02:00
Mao NakamotoandClaude Opus 4.8 6e4db31c69 feat(presentations): real team photos on V3 (repair + support desk)
From PR-Fotos/Fotos-Feb26: a team member doing focused repair now sits beside
the 'grosses Team' slide (split layout — the team finally has a face), and the
Support-Desk photo (two people, the 'Support Desk' sign) replaces the generic
bench shot on the Beratung/Support slide.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 21:26:55 +02:00
Mao NakamotoandClaude Opus 4.8 ab8d05ae9e feat(presentations): real PR photos from Nextcloud into V2 + V3
From Medien & Kommunikation/PR-Fotos/Fotos Best: cleaner front-on shopfront
for the title, and a warm 'refurbished laptops' bleed ('Bereit für ein
zweites Leben') showing the actual product. Also stage two more (geraete,
tastaturen) for later. No team/group photo in that set — still to source.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 21:15:04 +02:00
Mao NakamotoandClaude Opus 4.8 e33a4ab1d9 fix(admin): translate Website-Feedback sidebar label + add photo to V3 close
- The 'siteFeedback' section had no admin.sectionLabels translation, so the
  sidebar showed the raw key 'admin.sectionLabels.siteFeedback'. Add the label
  (and description) across all locales → 'Website-Feedback'.
- Per deck feedback ('not enough pics'): put the Linux-penguins photo on V3's
  closing 'Einladung' slide (now a full-bleed).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 20:59:03 +02:00
Mao NakamotoandClaude Opus 4.8 1f1e637455 fix(presentations): honor the whole team on V3, not just 3 coordinators
The 'Wer den Betrieb trägt' slide listed only the three named contacts from
the application letter. revamp-it is carried by a large team — employees,
many pensioners and volunteers, people from the 2nd labour market. Reframe the
slide around the whole team; keep the three as coordination/contact.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 20:25:24 +02:00
Mao NakamotoandClaude Opus 4.8 da9801f16a fix(blog): honest 2-axis messenger diagram + explicit SVG dimensions
- Replace the linear privacy "spectrum" (which wrongly implied Telegram is less
  private than WhatsApp) with a content-vs-metadata scatter: they fail on
  different axes. Adds X Chat (E2E claimed but unverifiable).
- Add explicit width/height to all diagram SVGs so browsers never collapse them.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 19:53:34 +02:00
Mao NakamotoandClaude Opus 4.8 530a197e52 feat(presentations): fold the team's new deck content into V2 + V3
The team's current deck added Mitgliedschaften, Anlässe, Projekte, Nutzung der
Räumlichkeiten and 'Unser Versprechen'. Bring that same content into:
- V2 (same content, better design): full set of the current team slides,
  cleanly designed with their photos (12 slides).
- V3 (design + content, the Kraftwerk1 pitch): add a memberships/network slide
  (credibility for a cooperative) and a projects slide (ZHAW, OIZ/Netto-Null,
  Mastodon), and weave the team's Genossenschaft commitment into the
  'mitmachen' slide (15 slides).
Still no made-up numbers; only the team's own facts.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 19:39:26 +02:00
Mao NakamotoandClaude Opus 4.8 2404f625b3 fix(presentations): V1 matches the current 17-slide Nextcloud deck
The team expanded the deck (12→17 slides: added Mitgliedschaften, Anlässe,
Projekte, Nutzung der Räumlichkeiten, Unser Versprechen + a Kundschaft photo)
after the first import. Re-render V1 from the current file at 1920px so the
'Original (Team)' deck is pixel-exact to what's in Nextcloud now.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 19:35:43 +02:00
Mao NakamotoandClaude Opus 4.8 10d300cd2d feat(blog): two more diagrams for the communication post
- metadaten-brief: envelope metaphor (E2E hides the letter, not the envelope)
- messenger-privatsphaere-spektrum: Telegram → … → SimpleX privacy spectrum

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 19:25:11 +02:00
Mao NakamotoandClaude Opus 4.8 d20d1adc8f fix(presentations): comment form keystrokes no longer navigate slides
The deck's arrow/space navigation listens on document, so typing arrows or a
space inside the open comment textarea bubbled up and switched slides. Stop
key events from inside the comment panel from reaching the deck nav
(bubble-phase stopPropagation); Escape still closes the panel.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 19:13:01 +02:00
Mao NakamotoandClaude Opus 4.8 83ae7e0932 feat(blog): diagrams for the open-vs-closed communication post
Three committed SVGs (the blog renderer allows markdown images, not inline SVG):
- kommunikation-topologien: central vs federated vs relay/P2P
- verschluesselung-transport-vs-e2e: transport vs end-to-end encryption
- zwei-achsen-quadrant: openness/verifiability vs escapability, services plotted

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 17:44:39 +02:00
Mao NakamotoandClaude Opus 4.8 5fe8e02c64 feat(presentations): per-slide reader comments + admin collection
Readers of a shared deck can comment on any slide — signed in OR anonymous:
- New table presentation_comments (migration 126) + Drizzle schema.
- Public API /api/presentations/comments: GET (who-am-I for the form) +
  POST (anonymous allowed; signed-in identity taken from the session, not
  spoofable; honeypot for bots). Notifies super admins in-app per comment.
- Deck UI: a 'Kommentar' button on every slide (hidden in fullscreen/print/
  export) that posts feedback for the current slide.
- Admin /admin/presentations/feedback: comments grouped by deck -> slide with
  an 'Als Prompt kopieren' button (slide-keyed, paste-ready for the AI) and a
  resolve toggle. Feedback link + open-count badge on the Präsentationen page.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 17:35:48 +02:00
Mao NakamotoandClaude Opus 4.8 0b2847391d feat(presentations): real photos on the winning deck + per-slide feedback tool
- Add correctly-matched revamp-it photos to the Kraftwerk1 deck: shopfront
  (title), Werkstatt (two colleagues at a board), and a support/bench shot
  (arbeit.jpg, from Nextcloud) — all the team's own photos.
- Per-slide feedback tool on every deck, gated behind #feedback so shared
  pitch links stay clean. Lists each slide (stable number + title + content)
  with a note field (saved locally) and a 'Feedback kopieren' button that
  produces a slide-keyed, paste-ready prompt for the AI. Hidden in
  fullscreen/print/export. Also shows a live 'Folie N · Titel' reference.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 16:21:28 +02:00
Mao NakamotoandClaude Opus 4.8 670f7b294f fix(presentations): remove non-team numbers from Koch decks
Per review: the decks must contain only figures from the team's own
materials. Removed everything sourced elsewhere or estimated:
- ~1000 Geräte/Jahr and ~75% reuse rate (org-numbers estimates, not team-stated)
- the 285 kg CO2 study value (external LCA, not a revamp-it number)
- the whole Vollkostenbudget projection slide (898k->1.03M CHF, 62%->77%)
- a fabricated '2003' founding year (team only states 'seit über 20 Jahren')

Kept only team-stated facts: über 20 Jahre, 14-tägliche Sitzungen, the two
units EG 52/8+52/13, opening hours, the 30'000 Ausbau cap (from the
Bewerbung letter), and contact details. Wirkung slide reworded qualitatively.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 16:09:14 +02:00
Mao NakamotoandClaude Opus 4.8 17a79a7a4e feat(presentations): Kraftwerk1/Siedlung Koch application decks + admin search
Add three application decks to the presentations system for the Kraftwerk1
Vergabekommission (two ground-floor Ladenlokale, Siedlung Koch):

- bewerbung-koch — the winning deck: quotes Kraftwerk1's Charta back
  (Reparaturwerkstätten / Re-Use), maps their values to revamp-it, only
  verifiable figures (their own budget + sourced CO2 study value)
- bewerbung-koch-vorschlag — the team's content, redesigned, with their
  own photos (shopfront, workshop, penguins)
- bewerbung-koch-original — the team's deck, pixel-for-pixel untouched
  (rendered slides), served + shareable

Built on the existing house deck template (nav, speaker notes, dots,
WYSIWYG PDF+PPTX export). Shared revamp-it photos under _assets/revampit.
Register all three in the presentations SSOT.

Admin /admin/presentations gains live search + sort (Datum/Titel) +
audience filter via a new PresentationsBrowser client component.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 15:27:32 +02:00
Mao NakamotoandClaude Opus 4.8 a1e9cccbfd feat(blog): on-brand title image for every post
Add five 1200x630 hero SVGs (SSOT/quality-gate, marketplace products,
deploy hardening, layout reorder, Mastodon upgrade) matching the existing
tablets-* house style — green gradient, ambient circles, one orange accent
— and wire each via featuredImage frontmatter. Every post now has a title
picture.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 20:56:52 +02:00
Mao NakamotoandClaude Opus 4.8 42d6e1cd99 feat(blog): locale-aware file posts + "Second Life of a Tablet" (DE/EN)
Adds a DE/EN technical post on keeping old tablets out of landfill —
repurposing ideas plus open-source OS alternatives (LineageOS, /e/OS,
postmarketOS, Ubuntu Touch). Data charts (e-waste trajectory, lifecycle
carbon) ship as self-contained SVG assets referenced via markdown images,
since the renderer (react-markdown + remark-gfm) allows images but not
inline HTML. Figures sourced from the UN E-waste Monitor 2024 and Apple's
iPad mini environmental report.

Makes the file-based blog locale-aware: `<slug>.md` = DE (canonical),
`<slug>.<locale>.md` = translation, resolved per request locale with DE
fallback — mirroring the site's i18n behaviour. Existing posts and the DB
path are unaffected.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 18:02:16 +02:00
Mao NakamotoandClaude Opus 4.8 04e9d9c7c5 fix(feedback): invisible click-blocking layer + deck aligned with team deck
CLICK BUG (build-your-own & elsewhere): the feedback widget's fixed
container carried BOTH anchor pairs on desktop (left-4 bottom-4 from
mobile + sm:right-4 sm:top-1/2) — an invisible div stretched across half
the viewport and swallowed clicks ('Auf GitHub ansehen', 'Anleitung
öffnen'). Now mobile anchors are cleared on sm+ (sm:left-auto
sm:bottom-auto); container measures exactly 48x48. Verified: 0 blocked
links/buttons across 7 pages.

DECK ALIGNMENT with the team's final presentation (cloud.revamp-it.ch
share) + Swico Innovationsfonds audience:
- science slide now mirrors the team's exact ranges (52-86% THG,
  78.5-85% ökol. Knappheit) — zero contradiction
- new quality fact: keine Blend- oder Stroboskopeffekte
- beyond-lighting applications absorbed (Leuchttische, Leuchtrahmen,
  Kunst, Bilderrahmen — standardisierte Montagelöcher)
- traction notes carry the team's honest 'Standortsuche war schwieriger
  als erwartet' nuance
- Ausblick slide reframed along the Innovationsfonds axes: effizienter /
  umweltfreundlicher / rentabler, partnership framing with Swico Recycling

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-03 11:17:05 +02:00
Mao NakamotoandClaude Opus 4.8 aac8ffc640 feat(upcycling): use-case scenes + HSLU knowledge-sharing + WYSIWYG deck exports
DECK (15 slides now):
- WYSIWYG PDF + PPTX: exports are pixel-snapshots of the real slides
  (html2canvas → jsPDF pages / pptxgen full-bleed images with speaker
  notes) — identical design instead of text reconstruction; progress %
  on the buttons; animations/chrome suppressed during capture
- links are clickable (wiki, minisite, wirkung methodology, mailto) with
  green-underline styling
- new slide 'Überall, wo Licht gebraucht wird.': Schaufenster, Parkgarage,
  Club/Bar, Treppenhaus — honestly labeled Visualisierungen, tied to the
  ZHAW acceptance-survey findings
- Open-Source slide reworked as full-bleed on the HSLU design-table photo:
  'Wissen teilen statt verkaufen.' — Anleitungen öffentlich, jede Person/
  Werkstatt weltweit kann bauen oder in Serie fertigen; uns zählt
  vermiedener Abfall, nicht Gewinn (HSLU «Local Loops», 14 Studierende)

MINISITE:
- 13 new assets: 8 Szenarien visualizations (full-res from the team's
  XCF/orig composites) + Werkraum4 real install photos + HSLU workshop/
  kreativ photos
- applications: new 'So könnte es aussehen' Szenarien grid (6 scenes,
  every card badged VISUALISIERUNG — photographed-vs-imagined split
  stays honest); Werkraum4 moves into the photographed install grid
- build-your-own: 'Aus den Anleitungen wird Unterricht' HSLU teaching
  block (Local Loops, 14 Studierende) with knowledge-sharing framing
- gallery installations strip picks up the Werkraum4 photos automatically

Gate: tsc 0 · eslint 0 errors · umlauts clean · full jest suite green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-03 10:50:32 +02:00
Mao NakamotoandClaude Opus 4.8 ddb9f23de2 feat(upcycling): ZHAW preliminary LCA results — deck v3 + Wirkung page
The team's ZHAW Zwischenpräsentation (Innoscheck, Stand 28.05.2026) carries
the real preliminary science — now on both surfaces, honestly labeled as
vorläufig:

DECK (2 new slides + motion):
- Wissenschaft: «In jedem Fall besser.» — −82.7% Treibhausgase
  (Durchschnittsszenario, kg CO2-eq/Mlmh), −84.8% Gesamt-Umweltwirkung
  (Methode der ökologischen Knappheit), 52–86% über alle Lebensdauer-
  Szenarien; ISO 14040/44 cradle-to-grave; ZHAW-Fazit wörtlich zitiert;
  C. Baumgartner + M. Grünholz credited
- Ökonomie: gemessene 13.6 W / ~965 lm (DELL U2412b, 8 Messpunkte),
  Zahlungsbereitschaft Ø 80 CHF (n=6, ehrlich klein), 2.5–5 CHF/dm² vs
  Neuware 4.90–11.20; Umfrage-Einsatzorte decken sich mit den Piloten;
  neue Anwendungsideen (Leuchttische, Plakat-Hinterleuchtung)
- fancier: staggered rise-in animations (reduced-motion-safe), slide dots

WIRKUNG PAGE: neuer Resultate-Block im Wissenschafts-Abschnitt — 3 Kennzahlen,
das ZHAW-Zitat als blockquote mit Quelle, Mess-Specs, Vorläufigkeits-Caveat.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-02 23:51:26 +02:00
Mao NakamotoandClaude Opus 4.8 9ea237e364 feat(swico-deck): inspire + facts — full-bleed use-case photography, zero clutter
User direction: 'Wir machen aus Abfall Licht' as the mission; liked the
full-bleed photo slides, disliked small random images on content slides.

- 13 slides alternating: 6 full-bleed photo slides (title on the symmetric
  curved-light hero, mission statement, standby-dongle macro, 2 use-cases
  with fact chips, close) + 7 clean typography-only fact slides
- every full-bleed carries a mono fact chip (photo provenance + hard fact)
- new slides: Mission ('Hardware so offen wie Software'), Kompetenz
  ('Reproduzierbar. Nicht gebastelt.' incl. the honest EIZO learning)
- per-photo object-position focal points so portrait shots keep their
  lamps in frame at 16:9
- notes rewritten as full speaker scripts per slide

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-02 22:14:23 +02:00
Mao NakamotoandClaude Opus 4.8 dbc424633a feat(upcycling): x.ai-grade Swico deck + real photography leads the minisite
SWICO DECK (public/presentations/swico-monitor-upcycling) — full rebuild:
- x.ai/SpaceX design language matching the site: near-black, huge tight
  display type, mono uppercase eyebrows, hairlines, green as the only accent
- photo-first: full-bleed title + close (real Juli-2026 install photography),
  photo-trio product slide, 4-step build strip, standby-dongle macro +
  3D-CAD ceiling mount, Neuware-Vergleich (24-W-Panel CHF 79.95 shelf photo)
- YC arc, nonprofit framing: Problem → Insight → Product → How → Hard part
  solved (open hardware) → Traction (5 Standorte · ~20 Leuchten · 1 Jahr ·
  1 Ausfall) → Science (~15–25 kg CO₂/Leuchte mit Quellen, ZHAW ISO 14040/44
  LCA, CE-Gutachten Barologic) → "Skalierung durch Offenheit" (Team-Wiki
  monitor-upcycling.org CC-BY-SA + Minisite) → Modell → Next → Danke
- every number cited (Apple PER, Öko-Institut, Abschlussbericht) with the
  honest "Arbeitsbasis, nicht Werbung" line; rich speaker notes per slide
- kept the proven controls (keyboard, Vollbild, Notizen+Timer, PDF, PPTX);
  dropped the 730KB watermark blob (776KB → 48KB)

MINISITE — the new real photos lead everywhere:
- 6 more assets processed (standby-dongle macro, 3D-CAD Deckenhalterung,
  Werkstatt-Elektronik, LED-Panel-Vergleich, weitere Installationsfotos)
- landing hero → werkbank-curved-1 (real install, was gallery poster);
  explore cards → eingang-laden / curved-repairhub / standby-dongle
- gallery: new "Im Einsatz" installations strip above the model gallery
  (reuses UPCYCLING_INSTALLATIONS + applications.installs strings — DRY)
- build-your-own: "Aus der Werkstatt" section (dongle + CAD, captions)
- wirkung: Neuware-Vergleich figure (photo evidence, price on the shelf tag)
- license consistency with the team wiki: guides are CC-BY-SA (was
  wrongly "MIT" in the buildYourOwn meta) — fixed in DE + all 7 locales,
  staleness baseline refreshed; hero photoAlt re-translated in 8 locales

Alignment: verified against the team's wiki (monitor-upcycling.org — Wiki.js,
revamp-it × Swico × ZHAW, CC-BY-SA, Anleitungen pro Modell): no
contradictions; both sites now linked from deck + minisite.

Gate: tsc 0 · eslint 0 errors · umlauts clean · 7691/7691 tests.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-02 21:48:27 +02:00
Mao NakamotoandClaude Opus 4.8 0af717e06d feat: unified Hirn assistant + presentations restored + minisite install photos
HIRN — one assistant, both surfaces:
- deleted the 3,129-line client-side rule engine ("Revamp IT Assistent" —
  intent matching, no LLM); feedback widget preserved → components/feedback
- page-context SSOT (config/hirn/page-contexts.ts): route → description +
  suggestion chips + quick actions, public AND admin (resolveHirnContext)
- public tier: HirnPublicFab + HirnChatPanel on all public pages; logged-in
  chat via POST /api/hirn/chat (Zod, 20 msg/h); anonymous → login prompt +
  context quick links; proactive nudge = rule-based chip, once per page per
  session (zero LLM cost)
- ISOLATION: public route has NO RAG (hirn_documents hold internal data) and
  NO action cockpit — only the provider layer is shared (SSOT)
- admin tier: HirnChat sends pathname; context merged into system prompt;
  empty-state context chips; staff actions unchanged; 60 msg/h limit

PRESENTATIONS — found + fixed the real regression:
- the middleware matcher swallowed /presentations/<slug> (extension-less) —
  EVERY shared deck link 404'd on prod; excluded `presentations` from the
  matcher so the rewrite serves index.html again
- new admin page /admin/presentations (requireAnySection presentations|
  content): deck cards + "Öffnen" + copy-share-link (recipients need NO
  account, noindex); SSOT src/config/presentations.ts; sidebar entry
- NEW DECK public/presentations/swico-monitor-upcycling (12 slides, DE):
  Abschlussbericht Projekt 2023-02-01 — Warum Monitore, Produkt, Standby-
  Lösung, Eignung, Montage, Kleinserien, 5 reale Einsatzorte mit Bilanz,
  monitor-upcycling.org, CE-Gutachten (Barologic), Skalierung; fullscreen/
  Notizen/PDF/PPTX wie die bestehenden Decks; echte Fotos

MINISITE — new Nextcloud material integrated:
- 7 install photos processed (EXIF-orient, ≤1600px, ~80KB-130KB) →
  public/projects/upcycling/installs/
- new "Im Einsatz" section on /projects/upcycling/applications: photo cards
  (RepairHub curved light, Laden revamp-it) + honest text cards (Werkraum4
  ~20 Leuchten/1 Jahr/1 Ausfall, RecreaZZZ, AmbossRampe) — data SSOT
  src/data/upcycling-installations.ts, strings in messages
- functional-act scene photo → real curved-light install
- monitor-upcycling.org wiki block (CC-BY-SA) on build-your-own;
  UPCYCLING_WIKI_URL in config

Gate: tsc 0 · eslint 0 errors · umlauts clean · 7691/7691 tests.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-02 18:47:16 +02:00
Mao NakamotoandClaude Opus 4.8 c2e6151d62 fix: execute improvement-plan Phase 1 — 35 audited fixes + Zeiterfassung im Admin
Full-site audit (multi-agent: architecture, mission/functional, design/i18n/
a11y, perf/security + deep admin & public-flow passes) → docs/AUDIT_REPORT.md +
docs/IMPROVEMENT_PLAN.md; this commit executes all of Phase 1.

Security/integrity:
- is_revampit: use the stored column, never re-derive from email (3 files —
  staff private sales were mislabeled RevampIT, admin stats miscounted)
- import-csv: withAuth → withAdmin('products') (any user could inject stock)
- paid workshops were registrable FREE: price gate + future-instance filter +
  optional instanceId + rate limit on /api/workshops/register
- IT-Hilfe rating hole: generic POST /api/reviews rejects it_hilfe (anyone
  could rate any technician); removed the duplicate review form (detail page)
- timecards staff-gated: dashboard card filter honors requiresStaff, API
  withAuth → withAdmin, page redirects non-staff
- requireSection on admin membership + hr/* pages (member/applicant PII)
- dashboard server actions now check section permissions, not just isStaff
- timecard self-approval blocked (four-eyes; friendly API error)
- HIRN chat history scoped by owner (was readable/deletable by session UUID)
- search-index scoped by caller permissions; membership/members + payroll
  read APIs section-scoped; listing-report rate limit

Broken features (shipped but never worked):
- payroll page fetch-looped forever (bounds identity) — useMemo
- ⌘K user search broken since migration 002 ("createdAt" quoting)
- blog delete button had no onClick — wired via ConfirmDialog + toast
- 5 bare fetch() calls bypassed CSRF (projects needs/contributions, task
  project create) — apiFetch + toast
- locations approve wrote approvalStatus but readers filter isApproved —
  approval was invisible; now writes both
- "Um Hilfe bitten" dropdown was always empty (API shape mismatch)
- isMember never populated → member votes never surfaced (DB read)
- intake KPIs always 0 on first load (drifted duplicate fetcher — deduped)
- marketplace verify now refetches the client-held list + error toasts
- ALL timestamps now render Europe/Zurich (prod box runs UTC — everything
  was 1-2h off); workshop counts exclude cancelled registrations
- login errors: typed CredentialsSignin codes (unverified email, lockout,
  no-password, db-down) instead of collapsing to "wrong credentials"
- IT-Hilfe cancel: pending offers rejected + helpers notified (was silent)
- listing edit no longer force-sends status (reserved/sold edits 403'd)
- fake workshop-create form (validated, waited 1s, saved NOTHING) removed —
  entry points now lead to the real proposal flow
- static-pages admin called a nonexistent API — implemented
  /api/admin/pages CRUD (withAdmin('content') + Zod)

Zeiterfassung + admin nav (user request):
- Zeiterfassung is an EMPLOYEE tool → moved to /admin/zeiterfassung ("Heute"
  sidebar group + admin mobile bottom nav slot 4); /dashboard/timecards +
  /admin/timecards redirect; notification links updated
- new alwaysForStaff visibility class: personal staff tools are accessible
  to every staff member regardless of permission narrowing
- admin sidebar quick-filter: type to find any section across the 8 groups

Perf/a11y/design/hygiene:
- R2 host in images.remotePatterns; stripped `unoptimized` from 9 content-
  image sites; Avatar primitive → next/image (lazy + optimized where safe)
- /api/tasks capped (limit/offset, default 100)
- aria-labels on icon-only buttons (6 components); BulkDetailPanel is now a
  real dialog (role/aria-modal/useFocusTrap/Esc)
- token slips: text-teal-* → text-action; text-red-600 → text-error-600
- lazy-load recharts (analyse charts) + framer-motion (ai-camera)
- fixed 2 broken `${...}` className interpolations (literal in DOM)
- dynamic app/robots.ts from APP_URL (robots.txt pointed at wrong domain)
- deleted dead code: 5 orphan modules, 5 deprecated aliases, BulkImportModal,
  legacy blog-admin dir, orphaned workshop-form dir, ITHilfeReviewForm
- invite page i18n'd (was hardcoded German on a public locale route)

Docs: AUDIT_REPORT.md refreshed (prior → AUDIT_REPORT_2026-06.md),
IMPROVEMENT_PLAN.md added with Phase 2/3 backlog.

Gate: tsc 0 errors · eslint 0 errors · umlauts clean · 7691/7691 tests.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-02 17:36:07 +02:00
Mao NakamotoandCursor e4411bfd4f fix(db): Hetzner-only DATABASE_URL SSOT and user/admin E2E smoke
Retire cloud DB and AUTH_DB_* split in code, env examples, and docs so
local dev uses Docker Postgres and prod ops use the Hetzner tunnel pattern.
Add Playwright user-admin-flows spec with locale-aware auth helper.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 13:04:46 +02:00
Mao NakamotoandClaude Opus 4.8 4417319789 chore: remove dead Vercel deploy artifacts
Vercel is retired (deploys run via GitHub Actions → Hetzner self-host). Removed
the now-dead Vercel deploy cluster: vercel.json, public/vercel.svg,
scripts/{add-vercel-env,deploy-to-vercel}.sh, and the whole tools/deployment/
dir (deploy.sh + its trigger/keybind/ship wrappers, all funneling into the
Vercel CLI deploy). Dropped the package.json deploy:vercel and setup-deploy
scripts that pointed into it. The 4 crons vercel.json defined are now systemd
timers on the box (previous commit). Nothing in CI/husky/the self-host deploy
referenced any of these.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 04:01:30 +02:00