6 Commits
Author SHA1 Message Date
CatoandClaude Opus 5.5 d02931b1a3 chore(auth): AccountKit 0.24, and a journey that follows Morulia (#93)
* chore(auth): AccountKit 0.24, and a journey that follows Morulia

AccountKit 0.24 shows the shared sign-in's button only once Morulia
publishes a provider, and names exactly those providers. The browser
journey now asks Morulia (SIGNIN_ISSUER/api/providers) whether to expect
the button, and matches it by how it starts, so it neither demands a
button that would advertise nothing nor breaks when a provider is added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

* chore(auth): AccountKit 0.27.0, the canary's version

The rollout gate holds 0.24 now that the canary (biaslens) runs 0.27.0, so
this raise goes straight to it. 0.25 adds the sign-in code to the sign-in
link's email and 0.26.1 Lightning login (off until ACCOUNTKIT_LIGHTNING=1).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-03 03:18:07 +01:00
CatoandClaude Opus 5.5 b40e67aeea feat(auth): every way in on AccountKit's own screens (#91)
* feat(auth): every way in on AccountKit's own screens

PrintCraft signed people in against OrangeCat's GoTrue (auth.users). It now
runs on AccountKit (@bitbaum/accountkit 0.23) with AccountKit's own forms:
/login offers email and password, an emailed sign-in link, a passkey,
recovery through the mailed link and the second factor; /register is
sign-up; /account carries the account panel. "Continue with OrangeCat" and
the shared sign-in show when their clients are set, the link and recovery
when mail is. The GoTrue forms, the Supabase cookie middleware and the
browser auth client are gone.

AccountKit's tables live in a host accounts database (app/drizzle, loki
accounts-db.conf); the project data stays in the printcraft supabase schema.
API routes always read it through the service-role client and check
ownership against the session's user id, as they already did for guests.
New accounts get uuid ids (projects.user_id is a uuid), and a supabase
migration drops the projects.user_id key to auth.users, which a new
person's id is not in. Nothing is deleted.

Existing people keep their projects: scripts/db/accountkit-people.sql lists
every project owner with their OrangeCat actor id, and
scripts/db/accountkit-import.sql gives each an account under the same id,
linked to OrangeCat by that actor id, never by address (loki
accountkit-supabase.yml rehearses it rolled back, then imports).

src/lib/auth/accounts.test.ts runs the ways in and the import on the
committed migration; accounts.yml rehearses the import and runs the browser
journey against the production build with AccountKit's real mail caught by
a sink.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

* ci(auth): the account journey is the browser smoke the rollout gate reads

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

* docs(ci): name the journey's workflow

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-02 22:01:52 +01:00
CatoandClaude Opus 5 e42736ebeb fix(seed): take the photo folder from the environment, not one laptop's home (#59)
The Duschwand seed carried eleven absolute paths under /home/g/Dokumente/,
which is one machine's home directory. Roli's photos are the customer's own
files and were never in the repo, so on any other checkout — a colleague's
laptop, CI, the box — every readFileSync would throw ENOENT and the script
could not be run at all. The directory is a property of the environment; the
filenames are the data, so they stay in the code.

SEED_PHOTO_DIR now names the folder holding real-photos/ and edited/, and the
script exits with that message rather than reading a path nobody set.


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

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-17 01:02:52 -07:00
GandClaude Opus 5 d5b4bf837a chore: add a formatter (#35)
* 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 (85 files)

Mechanical. No behaviour change. This SHA is listed in
.git-blame-ignore-revs so `git blame` skips it.

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

* chore: teach git blame to skip the reformat

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

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-29 10:18:53 +00:00
Mao NakamotoandClaude Opus 4.8 0f74a685f1 chore: purge stale Vercel / managed-Supabase references
PrintCraft migrated off Vercel and managed Supabase onto the self-hosted
Hetzner box (supabase.orangecat.ch) in June 2026. This removes the leftover
present-tense references to that retired infrastructure:

- app/README.md: replace create-next-app boilerplate (Vercel font blurb,
  "Deploy on Vercel") with a real README pointing at the self-hosted stack.
- app/next.config.ts: drop the dead managed-Supabase image remotePattern;
  the self-hosted host is already configured alongside it.
- app/scripts/seed-roli-project.ts: read SUPABASE_URL from env with a
  self-hosted fallback; fix the dead *.vercel.app project URL log.
- .mailmap: repoint the legacy g-but identity to Mao Nakamoto.

Also removed the untracked, gitignored local .vercel link artifact.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 21:46:08 +02:00
g-butandClaude Opus 4.6 691239e3db Initial commit: PrintCraft project structure with Duschwand Roli
Consolidated scattered files from ~/Dokumente/Duschwand/ into a proper
project structure. Source photos, reference art, scripts, process docs,
Next.js app, and a project template for future clients.

Generation rounds (02-07) are gitignored (large, reproducible).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 20:37:09 +02:00