- Admin calendar: "Ältere Alben übernehmen" lists albums named
"Titel | TT.MM.JJJJ" without an event (preview, all preselected,
optional category) and creates linked events in one transaction.
Albums without a date suffix are never offered.
- Editorials now see all past events; the past list is collapsible and
a click in the month view opens it.
- Release notes 2.4.1 seeded (migration 0010).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ZIP download from the Merkzettel: every photo is a new usage by
default; only already downloaded photos offer "Neu / Bereits genutzt"
(SegmentedControl), with thumbnails and a cost summary. "Bild
auslassen" is gone.
- Toasts (Sakani Toaster) for admin saves, deletes and errors; billing
errors are readable and use router.refresh instead of reloads. Errors
inside modal dialogs stay inline (a toast would sit behind the
backdrop).
- Album overview in blog-listing style, Sakani Pagination for albums,
search and usage history, skeleton loading states.
- Registration stepper; verification mail lands on step 3.
- Editorials as a searchable, filterable table; audit log with event
picker, German labels and collapsible details.
- Release notes 2.4.0 seeded (migration 0009).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Admin-managed event categories (name + one of Sakani's 8 calendar
colors) at /admin/kalender/kategorien; events pick a category.
- Calendar as Sakani MonthCalendar with a German header and a color
legend, for editorials and admins.
- "Zu meinen Alben hinzufügen" replaces RSVP: grants the event album at
once when it exists, otherwise reserves it; the auto-rule scheduler
grants pending reservations once the album appears. Editorials see when
an auto rule already covers the event. event_responses is dropped.
- New admin dashboard: to-dos, next events, 30-day figures, activity.
- Photo grid reads left to right in uniform 3:2 tiles.
- Release notes 2.3.0 seeded (migration 0008).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ReleaseHistory groups release notes by version (sorted by version
number, newest marked "Aktuell") and renders them as Sakani cards on
/redaktion/neuigkeiten and /admin/versionen (with audience + delete).
- The "Was ist neu?" popup links to the history ("Frühere Änderungen
ansehen") and closes on navigation.
- Release notes for 2.2.2 seeded via custom migration 0005; popup
version bumped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Billing is always quarterly: the billing page opens the current
quarter, the month view is gone, old ?month= links land in their
quarter and invalid quarters no longer throw.
- Calendar and release-note forms and the RSVP buttons use Sakani
components (Card, Input, Textarea, FormSelect, Button, Alert).
- Sidebar logo stays visible in dark mode (Sakani's logo tile is light).
- Release notes for 2.2.1 seeded via custom migration 0004; popup
version bumped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Squash the 13 historical migrations into one generated baseline whose
journal entry reuses the original 0000 timestamp: the migrator skips it
on every existing database (prod journal stuck at 0006) and applies it
only on fresh ones. Parity with the old chain verified via pg_dump diff
plus fresh/existing/prod-simulated drizzle-kit migrate runs. Historical
files move to drizzle-history/pre-squash-2026-08/ for integration tests
that exercise legacy migration behavior.
Also repair db tests that already failed before this change:
- raw SQL targeted users, but the table has always been "user"
- membership recheck mocked legacy getAsset.albums instead of searchPhotos
- audit rollback assertion walks drizzle's wrapped error cause chain
- keyset index probe pinned to NULLS LAST ordering, removing a planner
cost tie-break that flipped with index creation order
Adds failedVerificationCount and lockedUntil (brute-force tracking
maintained by the two-factor plugin). The adapter rejects any
two-factor endpoint while declared fields are missing from the drizzle
schema; verified was already added in the previous commit.
The two-factor plugin reads/writes a verified boolean on the twoFactor
model (set true by verify-totp); without it the drizzle adapter rejects
every /two-factor/enable call.
Implements OWASP audit recommendations P1-P3:
P1 - Two-factor authentication (TOTP) mandatory for admins:
- better-auth twoFactor plugin; new two_factor table + user flag
(migration 0010, MUST run before deploying the app)
- requireAdmin throws TWO_FACTOR_REQUIRED without a finished setup;
pages redirect to the new /zwei-faktor wizard which uses a weak
guard (allowWithoutTwoFactor) so admins can never lock themselves
out. Wizard lives outside /admin to avoid layout redirect loops.
- login flow handles twoFactorRedirect and asks for the TOTP code;
backup codes are shown once during enablement
P2 - Step-up for destructive operations (ASVS 2.5.4):
- hardDeleteEditorialAction and resetUsageDataAction reject sessions
older than 15 minutes (SESSION_STALE) with actionable German
messages instead of throwing opaque digests
P3 - Password policy (NIST 800-63B):
- minimum length raised from 8 to 12 plus common-password denylist,
enforced for registration AND reset/change via a before-hook