mirror of
https://github.com/bitbaum/botsmann.git
synced 2026-12-05 06:19:31 +01:00
* feat(auth): every way in on AccountKit's own screens
Botsmann signed people in against OrangeCat's GoTrue (auth.users). It now
runs on AccountKit (@bitbaum/accountkit 0.23) with AccountKit's own forms:
/auth/signin offers email and password, an emailed sign-in link, a
passkey, recovery through the mailed link and the second factor;
/auth/signup is sign-up; /account carries the account panel ("Sign-in and
security" in the account menu). "Continue with OrangeCat" and the shared
sign-in show when their clients are set, the link and recovery when mail
is. The GoTrue routes (/api/auth/signin, signup, forgot-password,
resend-verification, profile) and pages (callback, forgot-password,
reset-password, verify-email) and the cookie-session client are gone.
AccountKit's tables live in a host accounts database (drizzle/, loki
accounts-db.conf); the data stays in the botsmann supabase schema, which
every route already read with the service-role client. verifyUser now reads
AccountKit's session; /api/user/profile moves onto it too. New accounts get
uuid ids, and migration 013 drops the person columns' keys to auth.users,
which a new person's id is not in. Nothing is deleted. The profile editor
writes AccountKit's name and image.
Existing people keep their rows: scripts/db/accountkit-people.sql lists
everyone who owns rows 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).
Pages were served with public, max-age=3600 to every browser, account pages
included: after sign-out the browser showed its cached /account. /account
and /auth/* are now private, no-store. The account menu's trigger has a name.
tests/__tests__/accounts runs the ways in and the import on the committed
migration; browser-smoke.yml's account job 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
* fix(auth): send a signed-out visitor to sign in with the router
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
* ci(auth): the shared sign-in's button is matched by how it starts
AccountKit 0.24 names only the providers Morulia publishes, so the label
changes with Morulia.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
* ci(auth): expect the shared sign-in only once Morulia publishes a provider
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
* ci: run the checks on the journey change
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>
97 lines
2.9 KiB
JSON
97 lines
2.9 KiB
JSON
{
|
|
"name": "botsmann",
|
|
"version": "1.0.0",
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"build:ci": "pnpm install --frozen-lockfile && pnpm run build",
|
|
"start": "next start",
|
|
"test": "vitest run",
|
|
"test:e2e": "NODE_ENV=test playwright test",
|
|
"test:watch": "vitest run --watch",
|
|
"test:db": "tsx scripts/test-db-connection.ts",
|
|
"lint": "eslint . --max-warnings 0",
|
|
"lint:fix": "eslint . --fix",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"typecheck": "tsc --noEmit",
|
|
"check:selfhost": "bash scripts/ci/no-hosted-supabase.sh",
|
|
"verify": "pnpm run format:check && pnpm run lint && pnpm run typecheck && pnpm run check:selfhost && pnpm run test && pnpm run build",
|
|
"prepare": "husky install",
|
|
"lint-staged": "lint-staged"
|
|
},
|
|
"dependencies": {
|
|
"@better-auth/passkey": "^1.7.15",
|
|
"@bitbaum/accountkit": "^0.24.0",
|
|
"@bitbaum/ai-kit": "^1.24.0",
|
|
"@bitbaum/chatkit": "^0.22.1",
|
|
"@bitbaum/design-tokens": "^1.3.1",
|
|
"@bitbaum/mail-kit": "^0.2.0",
|
|
"@giscus/react": "^3.1.0",
|
|
"@headlessui/react": "^2.2.10",
|
|
"@supabase/ssr": "^0.12.7",
|
|
"@supabase/supabase-js": "^2.118.0",
|
|
"@tailwindcss/forms": "^0.5.11",
|
|
"@tailwindcss/postcss": "^4.3.3",
|
|
"@tailwindcss/typography": "^0.5.20",
|
|
"@xenova/transformers": "^2.17.2",
|
|
"better-auth": "^1.7.15",
|
|
"bip-kit": "^0.6.1",
|
|
"date-fns": "^4.4.0",
|
|
"drizzle-orm": "^0.45.4",
|
|
"limitkit": "^0.2.1",
|
|
"mermaid": "^11.17.2",
|
|
"next": "^16.4.3",
|
|
"pdf-parse": "^2.4.5",
|
|
"pg": "^8.23.1",
|
|
"postcss": "^8.5.31",
|
|
"react": "^19.3.1",
|
|
"react-dom": "^19.3.1",
|
|
"react-hook-form": "^7.91.0",
|
|
"react-icons": "^5.7.0",
|
|
"server-only": "^0.0.1",
|
|
"shiki": "^4.5.0",
|
|
"sonner": "^2.0.8",
|
|
"tailwindcss": "^4.3.3",
|
|
"zod": "^4.6.7"
|
|
},
|
|
"devDependencies": {
|
|
"@electric-sql/pglite": "^0.5.14",
|
|
"@playwright/test": "^1.64.1",
|
|
"@testing-library/jest-dom": "^6.6.3",
|
|
"@types/node": "^26.6.5",
|
|
"@types/pg": "^8.23.1",
|
|
"@types/react": "^19.3.0",
|
|
"@types/react-dom": "^19.3.0",
|
|
"@typescript-eslint/eslint-plugin": "^8.72.0",
|
|
"@typescript-eslint/parser": "^8.72.0",
|
|
"dotenv": "^17.4.2",
|
|
"drizzle-kit": "^0.31.11",
|
|
"eslint": "^10.13.0",
|
|
"eslint-config-next": "^16.4.3",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-prettier": "^5.5.7",
|
|
"husky": "^9.1.6",
|
|
"jsdom": "^25.0.1",
|
|
"lint-staged": "^17.6.0",
|
|
"node-mocks-http": "^1.18.1",
|
|
"playwright": "^1.64.1",
|
|
"prettier": "^3.9.10",
|
|
"tsx": "^4.23.15",
|
|
"typescript": "^6.0.3",
|
|
"vitest": "^4.1.11"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,jsx,ts,tsx}": [
|
|
"eslint --cache --fix",
|
|
"prettier --write"
|
|
],
|
|
"*.{json,md,css,scss,html,yml,yaml}": "prettier --write"
|
|
},
|
|
"packageManager": "pnpm@11.25.0"
|
|
}
|