From 992e40835af1600a0961ec2454fb78ff43aec3c6 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 7 Sep 2026 22:31:23 +0200 Subject: Add routine archives: archive date, searchable archived list, frozen page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Stamp archived_at on the archived snapshot; copy it on edit - loadArchived(projectId) + collapsible fuzzy-searched "Archivées" section on the project page - Archived routine pages open read-only with the health chart ending at the archive date; edit/complete actions reject archived routines --- src/lib/server/db/schema.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/server/db/schema.ts') diff --git a/src/lib/server/db/schema.ts b/src/lib/server/db/schema.ts index bac1c46..c5daac5 100644 --- a/src/lib/server/db/schema.ts +++ b/src/lib/server/db/schema.ts @@ -54,6 +54,7 @@ export const routines = sqliteTable( frequencyDays: integer('frequency_days').notNull(), description: text('description').notNull().default(''), archived: integer('archived', { mode: 'boolean' }).notNull().default(false), + archivedAt: text('archived_at'), createdAt: text('created_at').notNull(), }, (t) => [primaryKey({ columns: [t.id, t.version] })], -- cgit v1.3