···11+ALTER TABLE `kanban_columns` ADD `status_type` text DEFAULT 'backlog' NOT NULL;
22+--> statement-breakpoint
33+UPDATE `kanban_columns` SET `status_type` = 'planned' WHERE `slug` = 'todo';
44+--> statement-breakpoint
55+UPDATE `kanban_columns` SET `status_type` = 'started' WHERE `slug` = 'in-progress';
66+--> statement-breakpoint
77+UPDATE `kanban_columns` SET `status_type` = 'completed' WHERE `slug` = 'done';
+11
drizzle/0009_damp_microbe.sql
···11+ALTER TABLE `feature_requests` RENAME COLUMN "label_tid" TO "label_updated_at";--> statement-breakpoint
22+ALTER TABLE `kanban_tasks` RENAME COLUMN "label_tid" TO "label_updated_at";--> statement-breakpoint
33+CREATE TABLE `label_pds_records` (
44+ `entity_id` text NOT NULL,
55+ `entity_type` text NOT NULL,
66+ `actor_did` text NOT NULL,
77+ `rkey` text NOT NULL,
88+ PRIMARY KEY(`entity_id`, `entity_type`, `actor_did`)
99+);
1010+--> statement-breakpoint
1111+ALTER TABLE `kanban_columns` ADD `status_type` text DEFAULT 'backlog' NOT NULL;
···6262 description?: string;
6363 /** Column slug the task belongs to. Values are user-defined per Sphere. */
6464 status: string;
6565+ /** Canonical status type the column maps to. Third-party indexers use this to categorize user-defined slugs without needing the sphere's column config. */
6666+ statusType: string;
6567 /** did — DID of the Sphere owner (the identity hosting the site.exosphere.sphere.profile record). */
6668 subject: string;
6769 /** did — DID of the member assigned to this task. */
···9294 subject: string;
9395 /** Column slug the task is moved to. Values are user-defined per Sphere. */
9496 status: string;
9797+ /** Canonical status type the column maps to. Third-party indexers use this to categorize user-defined slugs without needing the sphere's column config. */
9898+ statusType: string;
9599}
9610097101export interface ModerationRecord {
···7788import type { KanbanTask, KanbanTaskComment } from "./db/schema.ts";
99import type { LabelInfo } from "@exosphere/core/sphere";
1010+import type { StatusType } from "./schemas/status-type.ts";
10111112/** Column definition as returned by the API. */
1213export type KanbanColumnDef = {
1314 id: string;
1415 slug: string;
1516 label: string;
1717+ statusType: StatusType;
1618 position: number;
1719};
1820