Commit Graph
14 Commits
Author SHA1 Message Date
CatoandClaude Opus 5 f71ad23316 chore(config): stop duplicating the box IP, the old repo path, and the retired host (#489)
Five literals that each duplicated a fact owned somewhere else, or named
something that no longer exists.

1. packages/saldo/package.json — `homepage` pointed at
   `revampit.orangecat.ch/saldo`. That host is retired: the organisation renamed
   to evig, the canonical host is `evig.orangecat.ch`, and this repo's own
   `src/config/urls.ts` and `.env.selfhost.local.example` already say so. A
   published package's homepage is the one copy that would outlive the Caddy
   redirect keeping the old name alive.

2. scripts/setup-deploy-keybind.sh — the generated trigger script baked
   `PROJECT_DIR="/home/g/dev/revampit"`, wrong twice over: it names one
   developer's laptop, and it names the repo by a directory it no longer uses.
   The checkout knows where it is, so ask it: PROJECT_DIR is now derived from
   the setup script's own resolved location (`scripts/` -> repo root), which is
   the same root the rest of the file already assumes. The heredoc had to become
   interpolating for that, so the generated script's own `$PROJECT_DIR`
   references are escaped to stay literal. Verified by running it: the generated
   file lands on the parent of `scripts/`, and `bash -n` passes on both.

3+4. The Hetzner box IP was written out twice — `ssh-keyscan -H 167.233.22.31`
   in .github/workflows/deploy-selfhost.yml and
   `BOX="${BOX:-ubuntu@167.233.22.31}"` in scripts/selfhost-deploy-evig.sh — for
   one fact that already has an org-wide definition: the `HETZNER_IP` Actions
   variable (visibility: all). Both now read it, the workflow passing it to the
   script through the job env.

   Each end fails LOUDLY rather than proceeding on an empty value.
   `ssh-keyscan -H ""` writes nothing and exits 0, so an unset variable would
   have produced a deploy that died much later with an unhelpful host-key error;
   the step now emits `::error::` and stops. The script uses `${HETZNER_IP:?…}`
   so it refuses to guess a target. Setting BOX explicitly still overrides both,
   for a one-off host. Proved by mutation: unset -> exit 1 with the message;
   set -> ubuntu@<ip>; BOX set with HETZNER_IP unset -> BOX wins.

5. src/config/e2e-test-accounts.ts held two real personal addresses as a shipped
   `as const` array. That published who they were in a public repo and made
   changing them a release. The list is configuration: it now comes from
   `E2E_TEST_ACCOUNT_EMAILS` (comma-separated) and defaults to EMPTY.

   Empty is the safe direction and the reason this is not a behaviour risk: the
   list only ever RELAXES a rate limit, so an unset variable means nobody is
   exempt — the strict path every other account already takes. The opposite
   default would trust an address nobody configured on every deployment of this
   code. It is read at call time, not module load, so the value cannot be
   snapshotted before the environment is populated. This follows the direction
   scripts/e2e-inventory-prod.sh already took when it dropped its own hardcoded
   account default.

   OPERATIONAL NOTE: until `E2E_TEST_ACCOUNT_EMAILS` is added to `SELFHOST_ENV`,
   the prod dual-persona smoke runs under normal rate limits. Documented in
   .env.example and .env.selfhost.local.example.

   The test asserted the hardcoded list's length, which is no longer a property
   of the source. It now sets the variable itself with fictional fixture
   addresses — a test naming a real person's mailbox is the same leak the source
   just stopped committing — and adds the two cases that matter most: unset and
   empty must both exempt nobody.

Deliberately NOT touched: src/config/org.ts DEFAULT_CONTACT_EMAIL. The comment
above it records that the gmail address is a live decision because evig.ch is
not registered and the previous address bounced.


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

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-17 01:57:08 -07:00
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
bd8b5a0db3 chore: fix stale catomean org references (docs, config, saldo package) (#418)
github.com/catomean/... -> github.com/bitbaum/... across CONTRIBUTING.md,
README.md, org.ts, statuten.ts, evig-projects.ts (the kivvi repo link),
and packages/saldo/package.json's repository/bugs URLs. Found while
resolving a merge conflict on an unrelated PR whose local branch carried
a partial version of this same fix from 2026-08-28 -- six of nine files
it touched were still unfixed on origin/main.

Harmless today (GitHub's rename redirect still resolves these), but the
same fragility class as the Actions uses: refs that don't get redirected.

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-31 10:31:20 +02:00
Mao Nakamoto c8140cfe39 chore(ci): GitHub owner maonakamoto -> catomean 2026-08-27 19:18:29 +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
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 Fable 5 15afe285d7 fix(saldo): add .js extensions to published dist so Node ESM can import it
tsc (bundler resolution) emits extensionless relative imports; Node's ESM
loader requires them. A post-build step rewrites dist/*.js and dist/*.d.ts.
Source stays extensionless (the monorepo app consumes it via its bundler);
only the published package is affected. Verified: `import from 'saldo-engine'`
now resolves under plain Node.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-21 10:07:51 +02:00
Mao NakamotoandClaude Fable 5 36a24db859 chore(saldo): make saldo-engine publish-ready for npm
Adds repository/homepage/author/bugs metadata, engines, publishConfig
(public), and a prepublishOnly build so `npm publish` ships a freshly
compiled dist/. Ignores build output (dist/, *.tgz).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-21 10:04:04 +02:00
Mao NakamotoandClaude Fable 5 79f6fd078f feat(saldo): extract the time-balance engine as a standalone package
The Zeitsaldo/Feriensaldo accounting core is now `saldo-engine`
(packages/saldo) — pure, dependency-free TypeScript with its own tests
(node:test, 12 passing, zero app imports) and an MIT licence, ready to
publish and reuse in any project.

- packages/saldo: the engine (computeTimeSaldo / computeVacationBalance),
  schedule math, a config-driven category classifier (Swiss default, bring
  your own), optional Swiss holidays, a BRAND SSOT so the name is a one-line
  change, a README, and a marketing landing page (site/index.html, DE/EN,
  light/dark, live balancing ledger).
- The app dogfoods it: src/lib/team/saldo.ts is now a thin adapter that wires
  the engine to this app's category SSOT (@/config/timecards). Behaviour is
  identical — all existing saldo tests pass through the package.
- tsconfig + jest: `saldo-engine` path alias → packages/saldo/src.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-21 09:00:21 +02:00
Mao NakamotoandCursor 2c50fad008 fix(deps): resolve 4 Dependabot alerts (nodemailer, OTel, js-yaml, uuid)
Bump nodemailer to 9.0.1, @sentry/nextjs to 10.61, pin safe transitive
versions via overrides, and raise ai-native-cms-core uuid to 11.1.1+.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 18:37:56 +02:00
g-butandClaude Opus 4.5 f26dac6848 fix(lint): resolve ESLint errors blocking CI/CD pipeline
- Fix useEffect dependency warnings with useCallback pattern
- Fix "creating component during render" errors with separate components
- Add eslint ignore patterns for medusa-backend build artifacts
- Replace <a> tags with Next.js <Link> components
- Fix export default object pattern in medusa i18n

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 18:34:45 +01:00
Your NameandClaude 13210a88c2 feat: update admin authentication and storage adapters
- Enhanced PostgreSQL storage adapter configuration
- Updated admin dashboard components
- Improved authentication routing
- Fixed TypeScript configuration

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-15 11:10:05 +02:00
Your Name 2eb4d191da Auto-deploy: Updates from 2025-09-15 02:13:33 2025-09-15 02:13:33 +02:00
Your Name 26d89c437d feat(platform): Integrate AI Native CMS and Revamp Copilot 2025-09-15 01:44:38 +02:00