Commit Graph
28 Commits
Author SHA1 Message Date
CatoandClaude 346b19c5b6 ci: the fleet's file-input check runs in verify (#542)
Adds @bitbaum/chatkit (dev only — evig has no chat) for its
chatkit-check-file-inputs bin, and `check:file-inputs` to `verify`, which
CI runs verbatim. It fails any file input whose literal accept mixes image
and document families, the shape that made Android show a capture-app
chooser instead of the file browser (SourceUploader, fixed in #537).

Pinned to the merged chatkit 0.4.1 commit until it is on npm.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-07 05:18:17 -07:00
CatoandClaude Opus 5 65ed27a08c fix(e2e): stop shipping the two E2E login addresses as defaults (#491)
The E2E personas are real accounts on a real deployment, and every place
that needed one carried it as a literal in a public repo: a fallback in
scripts/e2e-inventory-prod.sh, four `|| '...'` defaults across the e2e
specs and their auth helper, a workflow header comment, and two docs
tables. The repo therefore published whose accounts they are — and the
defaults were dead weight besides: CI has supplied both addresses from
the repository secrets of the same name since they were created, so the
literals were an unreachable branch that only ever leaked.

Now there is no default anywhere. The addresses come from
AUTH_TEST_USER_EMAIL and AUTH_TEST_ADMIN_EMAIL, both existing repo
secrets, and the absence of one is an error rather than a quiet
substitution:

- scripts/e2e-inventory-prod.sh requires both with `:?` naming the
  secret. The "no passwords configured, skip" path still runs first, so
  an unconfigured checkout is unaffected.
- The two consuming jobs guard first and fail with `::error::` naming
  the missing secret, instead of dying inside bash or playwright.
- The specs skip a persona when its address is unset, the same way they
  already skip on a missing password, rather than attempting a login
  with an empty e-mail and reporting it as a broken page.

Unchanged: the e2e-local job, which sets all four addresses to its own
seeded @evig.test fixtures at job level, so the defaults were never
reached there either.

Not addressed here, and still in the tree: the owner's address in the
SUPER_ADMIN_EMAILS allowlist (plus its assertions and the applied SQL
migrations that reference it), and the public contact address in
src/config/org.ts, which is published on purpose. Those are identity and
data, not E2E credentials, and removing them is a separate decision.


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

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-17 03:27:12 -07:00
894b203602 docs: sync docs with actual stack (#447)
Docs truth-sweep against ground truth (package.json, CI workflows):
- npm → pnpm across evergreen docs (pnpm 11.25.0 is the package manager;
  npx tsx → pnpm exec tsx, npx ts-prune/jscpd → pnpm dlx, npm ci →
  pnpm install --frozen-lockfile, package-lock.json → pnpm-lock.yaml)
- Jest → Vitest in README, CONTRIBUTING, COMMANDS (vitest 4 is installed)
- Node claims: README 20+ → 22.13+ (engines) with CI/deploy on 24;
  deployment.md "Setup Node 20 (npm cache)" → Node 24 (pnpm cache), and
  the pipeline line now shows `pnpm run verify` as CI actually runs
- TypeScript 5.x claims → 6 (typescript ^6.0.3); Next.js 14 → 16 in
  BLOG_SYSTEM, guides/ARCHITECTURE, AI_BOT_SYSTEM_PROMPT
- COMMANDS.md: dropped nonexistent `dev:cms` script; services list fixed
  to db/meilisearch/listmonk (no redis in compose)
- HR_RUNBOOK: `npm run test -- src/…` → `pnpm run test src/…` (pnpm
  passes args without the `--` separator)

Historical records (docs/archive/**, dated audit reports, UPGRADE_PLAN)
left as-is — they describe what was true when written.


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

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-04 15:01:39 +00:00
ba754f6508 chore(deploy): rename revampit infra references to evig (#430)
* chore(deploy): rename revampit infra references to evig

The GitHub repo was renamed revamp-it -> evig a while back and the
domain/Caddy layer already points at evig.orangecat.ch (with a 308 from
the old revampit.orangecat.ch), but the self-host deploy pipeline was
still targeting /opt/revampit and the revampit-app systemd unit. Renamed
the deploy script, CI's throwaway fixture names, and the smoke-test
default URLs to match. The systemd unit + /opt directory on the box were
renamed to evig-app / /opt/evig directly, verified live (200 before and
after).

Left untouched: production database names/users (revampit_cms etc. in
rollback-production.sh, monitoring-setup.sh, check-services.sh) and the
revampit-cron@*.timer / revampit-backup units — those are a separate,
higher-stakes rename.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HVwg8DKHQktxJuHeLM3xpG

* chore(deploy): point deploy pipeline + CI fixtures at evig, not revampit

The GitHub repo was renamed revamp-it -> evig a while back and the
domain/Caddy layer already points at evig.orangecat.ch (with a 308 from
the old revampit.orangecat.ch), but the self-host deploy pipeline was
still targeting /opt/revampit and the revampit-app systemd unit. Updates
the deploy script's NAME var, CI's throwaway fixture names/emails, and
the smoke-test default URLs to match. The systemd unit + /opt directory
on the box were renamed to evig-app / /opt/evig directly, verified live
(200 before and after, zero downtime).

Left untouched: production database names/users (revampit_cms etc. in
rollback-production.sh, monitoring-setup.sh, check-services.sh) and the
revampit-cron@*.timer / revampit-backup units — those touch live data
and a schedule (one timer looks like it releases escrow), so they're a
separate, higher-stakes rename flagged for a deliberate go/no-go rather
than folded in here.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HVwg8DKHQktxJuHeLM3xpG

* fix(docs): point deploy-script docs at the renamed evig script

The rename to scripts/selfhost-deploy-evig.sh left 5 docs pointing at the
old filename, tripping the docs-paths CI gate (stale count rose 68 -> 73).
Fixed the references; net stale count actually fell to 65, so lowered the
baseline in the same PR per the gate's own instruction.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HVwg8DKHQktxJuHeLM3xpG

* fix(ci): correct the docs-paths baseline back to 68

My previous commit set this to 65 based on a local run that was reading a
dirty working tree (leftover untracked files were falsely satisfying 3
path checks). Verified against a truly clean clone of this branch: the
real count, after the doc-path fixes, is 68 — unchanged from main, since
this PR only touches the 5 revampit->evig references and leaves the
pre-existing unrelated stale docs alone.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HVwg8DKHQktxJuHeLM3xpG

---------

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-02 10:37:38 +02:00
Mao NakamotoandCursor 7189e66582 feat(it-hilfe): add edit and withdraw offer journey E2E
Close inventory items #19 and #24 with dual-persona coverage, align
update-request canton validation with create schema, and harden login/API
helpers for local webpack dev runs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 01:42:14 +02:00
Mao NakamotoandCursor 9aa982de60 feat(marketplace): add listing Q&A and buy CTA
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 19:36:11 +02:00
Mao NakamotoandClaude Fable 5 321c7269f1 chore(db): drop notifications type CHECK (110) + migration discipline policy
- 110: notifications_type_check dropped — recreated five times (039/040/069/
  093/108), caused two silent-insert-failure incidents; writers are exclusively
  internal services using NOTIFICATION_TYPES constants. Config + compiler are
  the validator; DB CHECKs stay reserved for true invariants.
- CLAUDE.md: schema changes only via migrations (drizzle-kit push forbidden),
  app-enum policy, local-replay-before-push rule
- npm run db:migrate → scripts/db/run-migration.sh
- delete scripts/deploy.sh + migrate-to-production.sh (pre-Hetzner relics
  invoking nonexistent migrate.js / docker-compose.prod machinery) + stale
  COMMANDS.md rows

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 20:20:08 +02:00
Mao NakamotoandCursor 58d80de1ca feat(e2e): CMS blog journey + IT-Hilfe rate-limit bypass for E2E accounts
Blog draft → publish → public view journey; exempt known prod test emails from IT-Hilfe create rate limit so inventory can run all journeys back-to-back.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 19:30:53 +02:00
Mao NakamotoandCursor 6146b2e830 feat(e2e): admin decisions staff journey (create → vote → close)
Deterministic sense_check flow with absolute quorum 1; wired into prod inventory script and feature inventory (#98, #99).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 19:08:48 +02:00
Mao NakamotoandCursor 672807fbdb feat(e2e): admin protocols staff journey (JSON import → finalize)
Exercise create, process-notes JSON import, review UI, and finalize without
depending on LLM availability on prod.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 18:24:15 +02:00
Mao NakamotoandCursor a83f7ef8ef feat(e2e): admin tasks staff journey (create → complete)
Add API + UI round-trip for one-time tasks and wire into prod inventory script.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 18:14:16 +02:00
Mao NakamotoandCursor 55ced0a326 feat(e2e): intake pipeline staff journey + fix published detail crash
Add admin create → checklist gate → publish E2E and coerce selling_price_chf
before toFixed so published intake detail no longer hits the error boundary.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 17:58:04 +02:00
Mao NakamotoandCursor 56343c3104 feat(e2e): timecard + preferred techniker journeys, dynamic IDs
Normalize Postgres TIME to HH:MM on timecard API reads so resubmit no longer
400s. Align preferred-technician selection with community visibility SSOT.
Add prod E2E for timecards, IT-Hilfe preferred flow, and richer dynamic
route discovery (orders, sellers, admin detail pages).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 17:23:52 +02:00
Mao NakamotoandCursor 199e686351 feat(e2e,ci): workshop proposal journey + migration drift gate
Add dual-persona E2E for workshop propose/approve/reject (#61–62) and wire it
into post-deploy inventory. CI now replays all migrations on pgvector Postgres
with idempotent guards so fresh-DB apply matches prod evolution.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 16:10:39 +02:00
Mao NakamotoandCursor 67531fe8c0 feat(e2e): Phase 4 cleanup, Payrexx SSOT, workshops + service journeys
Community technicians are public when active; Techniker terminology SSOT;
dynamic ID discovery and empty-state fallbacks; Payrexx setup doc; dual-persona
E2E for workshops registration and service appointment assign flow.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 15:37:07 +02:00
Mao NakamotoandCursor 7d7e7fa5ed test(e2e): marketplace checkout dual-persona journey
User lists, admin checks out; full Payrexx flow when configured, otherwise
verifies checkout UI + own-listing guard. Shared api-csrf helper extracted.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 14:24:15 +02:00
Mao NakamotoandCursor d5d09b1ad7 test(e2e): IT-Hilfe dual-persona journey + expanded route matrix
Admin creates request, user techniker offers/completes, admin accepts/reviews.
Post-deploy and CI inventory now include journey; add service repair and
upcycling routes to the inventory matrix.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 13:39:57 +02:00
Mao NakamotoandCursor d587644aa6 ci(deploy): run dual-persona inventory after every prod deploy
Post-deploy job hits 186 routes as user + admin when E2E passwords are
in GitHub secrets; CI also runs optional prod inventory on PRs/main.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 13:28:59 +02:00
Mao NakamotoandCursor c5b43c8f5f test(e2e): dual-persona feature inventory smoke (186 routes)
Every navigable surface is checked as non-admin user and staff admin on
prod. Route matrix lives in inventory-routes.ts; run via test:e2e:inventory.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 13:23:49 +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 dd5d40e325 docs: refresh stale Neon/Vercel references to current Hetzner + R2 + Actions reality
A lot of documentation still described the retired stack. Updated to ground truth:
prod DB = self-hosted Postgres 17 on Hetzner (Neon retired for prod+auth, single
DATABASE_URL pool); images on Cloudflare R2 (revampit-media); deploys via GitHub
Actions → rsync → systemd revampit-app (Vercel retired); nightly off-box backups
to R2 (revampit-backups). Rewrote DISASTER_RECOVERY.md and deployment.md for the
self-host flow, marked github-vercel-setup.md legacy, and added HISTORICAL banners
to point-in-time audit/architecture docs (DATABASE_AUDIT, AUDIT_REPORT, CODE_AUDIT,
guides/ARCHITECTURE, BACKEND_CONTENT_MANAGEMENT, hosting-migration-frauenfeld).
Surgical factual fixes to README, SHARED_CONTEXT, COMMANDS, MIGRATIONS,
ARCHITECTURE_DATABASE_BACKEND, system-integration, installation, MIGRATION_PLAN_QQQ5,
production-ready-checklist, and the docs index.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 03:46:20 +02:00
Mao Nakamoto c1274e215e Document self-host production health setup 2026-06-16 19:32:27 +02:00
Mao Nakamoto e6652e4675 Harden self-host deployment 2026-06-16 16:03:24 +02:00
Mao Nakamoto 308450c2b8 Clarify production deployment target 2026-06-16 15:15:04 +02:00
Mao NakamotoandCursor d3dc2d9f91 feat(design): semantic tokens and ui-public-* on public surfaces
Migrate marketing, shop, IT-Hilfe, chatbot, and floating UI to semantic
tokens; enforce design-system ESLint errors on [locale] routes. Document
Hetzner push-to-deploy (GitHub Actions + pre-push hook).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-15 23:40:44 +02:00
Mao NakamotoandCursor 2ada48465c feat: ship upcycling mini-site refactor, nav i18n fix, and techniker profile
Consolidates the Monitor-Upcycling sub-site (reading flow SSOT, business plan
split, stale content fixes, local photos), fixes Projekte mega-menu labels via
nav.items.* resolution, and redesigns public techniker profiles to match list UX.
Docs and i18n parity scripts updated; typecheck, i18n:businessplan, build pass.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-15 17:00:55 +02:00
g-butandClaude Opus 4.6 3419caaa69 docs: update all documentation and configuration for post-Medusa architecture
Remove all Medusa-specific documentation (MEDUSA_*.md, SETUP_*.md,
README_MEDUSA.md, AI_AGENT_QUICK_REFERENCE.md, REVAMPIT_SHOP_*.md).
Update remaining docs, README, AGENTS.md, CLAUDE.md, env examples,
sitemap, and agent config files to reflect the simplified architecture
without Medusa dependency. Replace Medusa.js with WooCommerce in
service offerings documentation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 11:44:25 +01:00
g-butandClaude Opus 4.5 2b4510b189 chore: fix security vulnerabilities
Updated vulnerable packages where possible.
Some vulnerabilities remain due to next-contentlayer peer dependency conflicts.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 19:57:05 +01:00