Release 2.3.0: calendar categories, reservations, month view, dashboard
- 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>
This commit is contained in:
1 parent
4fb6f2d373
commit
2775b406bf
39 files changed
+9754
-701
No files matched your search
@@ -0,0 +1,24 @@
|
||||
CREATE TABLE "event_categories" (
|
||||
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
||||
"name" text NOT NULL,
|
||||
"color" text NOT NULL,
|
||||
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
||||
"created_by_user_id" uuid,
|
||||
CONSTRAINT "event_categories_color_check" CHECK ("event_categories"."color" in ('blue', 'green', 'orange', 'purple', 'teal', 'gold', 'red', 'neutral'))
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE "event_reservations" (
|
||||
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
||||
"event_id" uuid NOT NULL,
|
||||
"editorial_account_id" uuid NOT NULL,
|
||||
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
||||
"granted_at" timestamp with time zone
|
||||
);
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "calendar_events" ADD COLUMN "category_id" uuid;--> statement-breakpoint
|
||||
ALTER TABLE "event_categories" ADD CONSTRAINT "event_categories_created_by_user_id_user_id_fk" FOREIGN KEY ("created_by_user_id") REFERENCES "public"."user"("id") ON DELETE restrict ON UPDATE no action;--> statement-breakpoint
|
||||
ALTER TABLE "event_reservations" ADD CONSTRAINT "event_reservations_event_id_calendar_events_id_fk" FOREIGN KEY ("event_id") REFERENCES "public"."calendar_events"("id") ON DELETE restrict ON UPDATE no action;--> statement-breakpoint
|
||||
ALTER TABLE "event_reservations" ADD CONSTRAINT "event_reservations_editorial_account_id_editorial_accounts_id_fk" FOREIGN KEY ("editorial_account_id") REFERENCES "public"."editorial_accounts"("id") ON DELETE restrict ON UPDATE no action;--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX "event_categories_name_lower_unique" ON "event_categories" USING btree (lower("name"));--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX "event_reservations_event_editorial_unique" ON "event_reservations" USING btree ("event_id","editorial_account_id");--> statement-breakpoint
|
||||
ALTER TABLE "calendar_events" ADD CONSTRAINT "calendar_events_category_id_event_categories_id_fk" FOREIGN KEY ("category_id") REFERENCES "public"."event_categories"("id") ON DELETE restrict ON UPDATE no action;
|
||||
@@ -0,0 +1 @@
|
||||
DROP TABLE "event_responses" CASCADE;
|
||||
@@ -0,0 +1,6 @@
|
||||
-- Custom SQL migration file, put your code below! --
|
||||
INSERT INTO "release_notes" ("version", "audience", "body", "created_by_user_id")
|
||||
VALUES
|
||||
('2.3.0', 'admin', 'Neu in 2.3: Kategorien (Name und Farbe) unter Kalender, Kategorien verwalten. Der Kalender ist jetzt eine Monatsansicht mit Legende. Statt Zusagen merken Redaktionen Termine vor; das Album wird automatisch freigeschaltet, sobald es in Immich erscheint. Neues Dashboard mit offenen Aufgaben, nächsten Terminen, Kurzzahlen und letzten Aktivitäten.', NULL),
|
||||
('2.3.0', 'editorial', 'Neu in 2.3: Der Kalender ist jetzt eine Monatsansicht, farbig nach Sportart und Liga. Mit „Zu meinen Alben hinzufügen“ merken Sie ein Spiel vor; das Album wird automatisch freigeschaltet, sobald es da ist. Ob Sie ein Album über eine automatische Regel bekommen, sehen Sie direkt am Termin. Die Fotos im Album stehen jetzt in gleich großen Kacheln, zeilenweise von links nach rechts.', NULL)
|
||||
ON CONFLICT ("version", "audience") DO NOTHING;
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -43,6 +43,27 @@
|
||||
"when": 1796074977959,
|
||||
"tag": "0005_release_notes_2_2_2",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 6,
|
||||
"version": "7",
|
||||
"when": 1796077322641,
|
||||
"tag": "0006_calendar_categories_reservations",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 7,
|
||||
"version": "7",
|
||||
"when": 1796077322892,
|
||||
"tag": "0007_drop_event_responses",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 8,
|
||||
"version": "7",
|
||||
"when": 1796077763423,
|
||||
"tag": "0008_release_notes_2_3_0",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user