Files
evig/drizzle/0002_decisions_background.sql
g-butandClaude Sonnet 4.6 2055d85127 feat: decisions — democratic voting for all members, rich UX, context field
- Open vote API to authenticated members (withAuth), eligibility enforced in service
- Dashboard voting pages: /dashboard/decisions + /dashboard/decisions/[id]
- Type-aware email dispatch: decision_voting → decisionVotingOpened template, etc.
- Email deep links point to /dashboard/decisions/:id (not admin list)
- decisionClosed email template added; deadline reminder cron fires 24h before expiry
- background field (DB migration + schema + CRUD + API + forms): separates "what we're deciding" from "why" — shown as collapsible Begründung section before the ballot
- Type picker redesigned: icons, mechanic description on select, responsive 1→2→3 col grid
- Voter page: participation progress bar vs quorum, time remaining, creator, scope badges
- Admin detail: background shown as collapsible <details> panel

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 11:17:41 +02:00

5 lines
207 B
SQL

-- Add background/rationale field to decisions
-- Separate from description (what we're deciding) — this is the "why" context
ALTER TABLE "decisions" ADD COLUMN "background" text;--> statement-breakpoint