⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
fix: make the app usable on phones (#1983)
Tin Sever53d76f6b2cab
diff --git a/apps/api/drizzle/0062_motionless_sister_grimm.sql b/apps/api/drizzle/0062_motionless_sister_grimm.sqlnew file mode 100644index 000000000..e52af2b4d--- /dev/null+++ b/apps/api/drizzle/0062_motionless_sister_grimm.sql@@ -0,0 +1,72 @@+ALTER TABLE IF EXISTS "account" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "activity" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "activity" ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "asset" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "billing_event" ALTER COLUMN "processed_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "billing_reminder_sent" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "billing_reminder_sent" ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "calendar_feed" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "column" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "column" ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "comment" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "comment" ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "custom_field_definition" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "custom_field_definition" ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "custom_field_value" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "custom_field_value" ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "data_migration" ALTER COLUMN "completed_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "device_code" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "device_code" ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "external_link" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "external_link" ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "github_import" ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "integration" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "integration" ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "invitation" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "label" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "label" ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "mcp_oauth_state" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "mcp_oauth_state" ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "workspace_role" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "workspace_role" ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "project" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "session" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "storage_cleanup" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "task_relation" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "task_reminder_sent" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "task_reminder_sent" ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "task" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "task" ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "time_entry" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "time_entry" ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "trial_grant" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "user" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "user" ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "user_avatar" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "user_avatar" ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+-- Drifted installs can lack these timestamp columns until the startup repair+-- adds them, which runs after migrations. Only change columns that exist; the+-- repair creates missing ones with this default.+DO $$+DECLARE+ target record;+BEGIN+ FOR target IN+ SELECT table_name, column_name+ FROM information_schema.columns+ WHERE table_schema = current_schema()+ AND table_name IN ('user_notification_preference', 'user_notification_workspace_project', 'user_notification_workspace_rule')+ AND column_name IN ('created_at', 'updated_at')+ LOOP+ EXECUTE format('ALTER TABLE %I ALTER COLUMN %I SET DEFAULT (now() AT TIME ZONE ''utc'')', target.table_name, target.column_name);+ END LOOP;+END $$;--> statement-breakpoint+ALTER TABLE IF EXISTS "verification" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "verification" ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "workflow_rule" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "workflow_rule" ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "workspace_billing" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "workspace_billing" ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "workspace_member_access" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "workspace_member_access" ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');--> statement-breakpoint+ALTER TABLE IF EXISTS "workspace_member_project" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');\ No newline at end of filediff --git a/apps/api/drizzle/meta/0062_snapshot.json b/apps/api/drizzle/meta/0062_snapshot.jsonnew file mode 100644index 000000000..5ba4bbaea--- /dev/null+++ b/apps/api/drizzle/meta/0062_snapshot.json@@ -0,0 +1,5253 @@+{+ "id": "0466239b-b8ab-4220-a847-dde109ec6508",+ "prevId": "57657924-5578-41e7-99bd-b2e744037c44",+ "version": "7",+ "dialect": "postgresql",+ "tables": {+ "public.account": {+ "name": "account",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "account_id": {+ "name": "account_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "provider_id": {+ "name": "provider_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "access_token": {+ "name": "access_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "refresh_token": {+ "name": "refresh_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "id_token": {+ "name": "id_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "access_token_expires_at": {+ "name": "access_token_expires_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "refresh_token_expires_at": {+ "name": "refresh_token_expires_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "scope": {+ "name": "scope",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "password": {+ "name": "password",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ }+ },+ "indexes": {+ "account_userId_idx": {+ "name": "account_userId_idx",+ "columns": [+ {+ "expression": "user_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "account_user_id_user_id_fk": {+ "name": "account_user_id_user_id_fk",+ "tableFrom": "account",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.activity": {+ "name": "activity",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "task_id": {+ "name": "task_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "type": {+ "name": "type",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "content": {+ "name": "content",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "event_data": {+ "name": "event_data",+ "type": "jsonb",+ "primaryKey": false,+ "notNull": false+ },+ "external_user_name": {+ "name": "external_user_name",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "external_user_avatar": {+ "name": "external_user_avatar",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "external_source": {+ "name": "external_source",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "external_url": {+ "name": "external_url",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ }+ },+ "indexes": {+ "activity_task_id_idx": {+ "name": "activity_task_id_idx",+ "columns": [+ {+ "expression": "task_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "activity_userId_idx": {+ "name": "activity_userId_idx",+ "columns": [+ {+ "expression": "user_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "activity_createdAt_idx": {+ "name": "activity_createdAt_idx",+ "columns": [+ {+ "expression": "created_at",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "activity_task_id_task_id_fk": {+ "name": "activity_task_id_task_id_fk",+ "tableFrom": "activity",+ "tableTo": "task",+ "columnsFrom": [+ "task_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "activity_user_id_user_id_fk": {+ "name": "activity_user_id_user_id_fk",+ "tableFrom": "activity",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "set null",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "activity_task_external_source_external_url_unique": {+ "name": "activity_task_external_source_external_url_unique",+ "nullsNotDistinct": false,+ "columns": [+ "task_id",+ "external_source",+ "external_url"+ ]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.apikey": {+ "name": "apikey",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "config_id": {+ "name": "config_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "default": "'default'"+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "start": {+ "name": "start",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "reference_id": {+ "name": "reference_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "prefix": {+ "name": "prefix",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "key": {+ "name": "key",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "refill_interval": {+ "name": "refill_interval",+ "type": "integer",+ "primaryKey": false,+ "notNull": false+ },+ "refill_amount": {+ "name": "refill_amount",+ "type": "integer",+ "primaryKey": false,+ "notNull": false+ },+ "last_refill_at": {+ "name": "last_refill_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "enabled": {+ "name": "enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": false,+ "default": true+ },+ "rate_limit_enabled": {+ "name": "rate_limit_enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": false,+ "default": true+ },+ "rate_limit_time_window": {+ "name": "rate_limit_time_window",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "default": 86400000+ },+ "rate_limit_max": {+ "name": "rate_limit_max",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "default": 10+ },+ "request_count": {+ "name": "request_count",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "default": 0+ },+ "remaining": {+ "name": "remaining",+ "type": "integer",+ "primaryKey": false,+ "notNull": false+ },+ "last_request": {+ "name": "last_request",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "expires_at": {+ "name": "expires_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ },+ "permissions": {+ "name": "permissions",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "metadata": {+ "name": "metadata",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ }+ },+ "indexes": {+ "apikey_configId_idx": {+ "name": "apikey_configId_idx",+ "columns": [+ {+ "expression": "config_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "apikey_key_idx": {+ "name": "apikey_key_idx",+ "columns": [+ {+ "expression": "key",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "apikey_referenceId_idx": {+ "name": "apikey_referenceId_idx",+ "columns": [+ {+ "expression": "reference_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "apikey_userId_idx": {+ "name": "apikey_userId_idx",+ "columns": [+ {+ "expression": "user_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "apikey_reference_id_user_id_fk": {+ "name": "apikey_reference_id_user_id_fk",+ "tableFrom": "apikey",+ "tableTo": "user",+ "columnsFrom": [+ "reference_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "apikey_user_id_user_id_fk": {+ "name": "apikey_user_id_user_id_fk",+ "tableFrom": "apikey",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.asset": {+ "name": "asset",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "project_id": {+ "name": "project_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "task_id": {+ "name": "task_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "activity_id": {+ "name": "activity_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "object_key": {+ "name": "object_key",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "filename": {+ "name": "filename",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "mime_type": {+ "name": "mime_type",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "size": {+ "name": "size",+ "type": "integer",+ "primaryKey": false,+ "notNull": true+ },+ "kind": {+ "name": "kind",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "default": "'image'"+ },+ "surface": {+ "name": "surface",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "default": "'description'"+ },+ "created_by": {+ "name": "created_by",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "asset_workspaceId_idx": {+ "name": "asset_workspaceId_idx",+ "columns": [+ {+ "expression": "workspace_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "asset_projectId_idx": {+ "name": "asset_projectId_idx",+ "columns": [+ {+ "expression": "project_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "asset_taskId_idx": {+ "name": "asset_taskId_idx",+ "columns": [+ {+ "expression": "task_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "asset_activityId_idx": {+ "name": "asset_activityId_idx",+ "columns": [+ {+ "expression": "activity_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "asset_createdBy_idx": {+ "name": "asset_createdBy_idx",+ "columns": [+ {+ "expression": "created_by",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "asset_draft_expiry_idx": {+ "name": "asset_draft_expiry_idx",+ "columns": [+ {+ "expression": "created_at",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ },+ {+ "expression": "id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "where": "\"asset\".\"task_id\" is null and \"asset\".\"surface\" in ('draft', 'draft-pending')",+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "asset_workspace_id_workspace_id_fk": {+ "name": "asset_workspace_id_workspace_id_fk",+ "tableFrom": "asset",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "asset_project_id_project_id_fk": {+ "name": "asset_project_id_project_id_fk",+ "tableFrom": "asset",+ "tableTo": "project",+ "columnsFrom": [+ "project_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "asset_task_id_task_id_fk": {+ "name": "asset_task_id_task_id_fk",+ "tableFrom": "asset",+ "tableTo": "task",+ "columnsFrom": [+ "task_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "asset_activity_id_activity_id_fk": {+ "name": "asset_activity_id_activity_id_fk",+ "tableFrom": "asset",+ "tableTo": "activity",+ "columnsFrom": [+ "activity_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "asset_created_by_user_id_fk": {+ "name": "asset_created_by_user_id_fk",+ "tableFrom": "asset",+ "tableTo": "user",+ "columnsFrom": [+ "created_by"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "set null",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "asset_object_key_unique": {+ "name": "asset_object_key_unique",+ "nullsNotDistinct": false,+ "columns": [+ "object_key"+ ]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.billing_event": {+ "name": "billing_event",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "event_type": {+ "name": "event_type",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "processed_at": {+ "name": "processed_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.billing_reminder_sent": {+ "name": "billing_reminder_sent",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "reminder_type": {+ "name": "reminder_type",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "trial_ends_at": {+ "name": "trial_ends_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "billing_reminder_sent_workspaceId_idx": {+ "name": "billing_reminder_sent_workspaceId_idx",+ "columns": [+ {+ "expression": "workspace_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "billing_reminder_sent_userId_idx": {+ "name": "billing_reminder_sent_userId_idx",+ "columns": [+ {+ "expression": "user_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "billing_reminder_sent_user_id_user_id_fk": {+ "name": "billing_reminder_sent_user_id_user_id_fk",+ "tableFrom": "billing_reminder_sent",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "billing_reminder_sent_workspace_id_workspace_id_fk": {+ "name": "billing_reminder_sent_workspace_id_workspace_id_fk",+ "tableFrom": "billing_reminder_sent",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "billing_reminder_sent_user_type_unique": {+ "name": "billing_reminder_sent_user_type_unique",+ "nullsNotDistinct": false,+ "columns": [+ "user_id",+ "reminder_type"+ ]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.calendar_feed": {+ "name": "calendar_feed",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "project_id": {+ "name": "project_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "token": {+ "name": "token",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "label_ids": {+ "name": "label_ids",+ "type": "jsonb",+ "primaryKey": false,+ "notNull": true+ },+ "time_zone": {+ "name": "time_zone",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "default": "'UTC'"+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "calendar_feed_project_id_idx": {+ "name": "calendar_feed_project_id_idx",+ "columns": [+ {+ "expression": "project_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "calendar_feed_project_id_project_id_fk": {+ "name": "calendar_feed_project_id_project_id_fk",+ "tableFrom": "calendar_feed",+ "tableTo": "project",+ "columnsFrom": [+ "project_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "calendar_feed_token_unique": {+ "name": "calendar_feed_token_unique",+ "nullsNotDistinct": false,+ "columns": [+ "token"+ ]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.column": {+ "name": "column",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "project_id": {+ "name": "project_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "slug": {+ "name": "slug",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "position": {+ "name": "position",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "default": 0+ },+ "icon": {+ "name": "icon",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "color": {+ "name": "color",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "is_final": {+ "name": "is_final",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "column_projectId_idx": {+ "name": "column_projectId_idx",+ "columns": [+ {+ "expression": "project_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "column_project_id_project_id_fk": {+ "name": "column_project_id_project_id_fk",+ "tableFrom": "column",+ "tableTo": "project",+ "columnsFrom": [+ "project_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.comment": {+ "name": "comment",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "task_id": {+ "name": "task_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "content": {+ "name": "content",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "comment_task_idx": {+ "name": "comment_task_idx",+ "columns": [+ {+ "expression": "task_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "comment_user_idx": {+ "name": "comment_user_idx",+ "columns": [+ {+ "expression": "user_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "comment_task_id_task_id_fk": {+ "name": "comment_task_id_task_id_fk",+ "tableFrom": "comment",+ "tableTo": "task",+ "columnsFrom": [+ "task_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "comment_user_id_user_id_fk": {+ "name": "comment_user_id_user_id_fk",+ "tableFrom": "comment",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.custom_field_definition": {+ "name": "custom_field_definition",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "project_id": {+ "name": "project_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "type": {+ "name": "type",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "required": {+ "name": "required",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": false+ },+ "default_value": {+ "name": "default_value",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "options": {+ "name": "options",+ "type": "jsonb",+ "primaryKey": false,+ "notNull": false+ },+ "position": {+ "name": "position",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "default": 0+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "custom_field_def_projectId_idx": {+ "name": "custom_field_def_projectId_idx",+ "columns": [+ {+ "expression": "project_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "custom_field_definition_project_id_project_id_fk": {+ "name": "custom_field_definition_project_id_project_id_fk",+ "tableFrom": "custom_field_definition",+ "tableTo": "project",+ "columnsFrom": [+ "project_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.custom_field_value": {+ "name": "custom_field_value",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "task_id": {+ "name": "task_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "field_id": {+ "name": "field_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "value": {+ "name": "value",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "custom_field_value_taskId_idx": {+ "name": "custom_field_value_taskId_idx",+ "columns": [+ {+ "expression": "task_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "custom_field_value_fieldId_idx": {+ "name": "custom_field_value_fieldId_idx",+ "columns": [+ {+ "expression": "field_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "custom_field_value_task_id_task_id_fk": {+ "name": "custom_field_value_task_id_task_id_fk",+ "tableFrom": "custom_field_value",+ "tableTo": "task",+ "columnsFrom": [+ "task_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "custom_field_value_field_id_custom_field_definition_id_fk": {+ "name": "custom_field_value_field_id_custom_field_definition_id_fk",+ "tableFrom": "custom_field_value",+ "tableTo": "custom_field_definition",+ "columnsFrom": [+ "field_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "custom_field_value_task_field_unique": {+ "name": "custom_field_value_task_field_unique",+ "nullsNotDistinct": false,+ "columns": [+ "task_id",+ "field_id"+ ]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.data_migration": {+ "name": "data_migration",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "completed_at": {+ "name": "completed_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.device_code": {+ "name": "device_code",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "device_code": {+ "name": "device_code",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "user_code": {+ "name": "user_code",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "expires_at": {+ "name": "expires_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ },+ "status": {+ "name": "status",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "last_polled_at": {+ "name": "last_polled_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "polling_interval": {+ "name": "polling_interval",+ "type": "integer",+ "primaryKey": false,+ "notNull": false+ },+ "client_id": {+ "name": "client_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "scope": {+ "name": "scope",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ }+ },+ "indexes": {+ "device_code_device_code_uidx": {+ "name": "device_code_device_code_uidx",+ "columns": [+ {+ "expression": "device_code",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": true,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "device_code_user_code_uidx": {+ "name": "device_code_user_code_uidx",+ "columns": [+ {+ "expression": "user_code",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": true,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "device_code_user_id_idx": {+ "name": "device_code_user_id_idx",+ "columns": [+ {+ "expression": "user_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "device_code_user_id_user_id_fk": {+ "name": "device_code_user_id_user_id_fk",+ "tableFrom": "device_code",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.external_link": {+ "name": "external_link",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "task_id": {+ "name": "task_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "integration_id": {+ "name": "integration_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "resource_type": {+ "name": "resource_type",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "external_id": {+ "name": "external_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "url": {+ "name": "url",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "title": {+ "name": "title",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "metadata": {+ "name": "metadata",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "external_link_taskId_idx": {+ "name": "external_link_taskId_idx",+ "columns": [+ {+ "expression": "task_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "external_link_integrationId_idx": {+ "name": "external_link_integrationId_idx",+ "columns": [+ {+ "expression": "integration_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "external_link_externalId_idx": {+ "name": "external_link_externalId_idx",+ "columns": [+ {+ "expression": "external_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "external_link_resourceType_idx": {+ "name": "external_link_resourceType_idx",+ "columns": [+ {+ "expression": "resource_type",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "external_link_deferred_issue_idx": {+ "name": "external_link_deferred_issue_idx",+ "columns": [+ {+ "expression": "id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "where": "\"external_link\".\"resource_type\" = 'issue' AND \"external_link\".\"metadata\" LIKE '%\"deferredIssueEdit\":%'",+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "external_link_task_id_task_id_fk": {+ "name": "external_link_task_id_task_id_fk",+ "tableFrom": "external_link",+ "tableTo": "task",+ "columnsFrom": [+ "task_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "external_link_integration_id_integration_id_fk": {+ "name": "external_link_integration_id_integration_id_fk",+ "tableFrom": "external_link",+ "tableTo": "integration",+ "columnsFrom": [+ "integration_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.github_import": {+ "name": "github_import",+ "schema": "",+ "columns": {+ "integration_id": {+ "name": "integration_id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "run_id": {+ "name": "run_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "state": {+ "name": "state",+ "type": "jsonb",+ "primaryKey": false,+ "notNull": true+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {},+ "foreignKeys": {+ "github_import_integration_id_integration_id_fk": {+ "name": "github_import_integration_id_integration_id_fk",+ "tableFrom": "github_import",+ "tableTo": "integration",+ "columnsFrom": [+ "integration_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.github_integration": {+ "name": "github_integration",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "project_id": {+ "name": "project_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "repository_owner": {+ "name": "repository_owner",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "repository_name": {+ "name": "repository_name",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "installation_id": {+ "name": "installation_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false+ },+ "is_active": {+ "name": "is_active",+ "type": "boolean",+ "primaryKey": false,+ "notNull": false,+ "default": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "indexes": {},+ "foreignKeys": {+ "github_integration_project_id_project_id_fk": {+ "name": "github_integration_project_id_project_id_fk",+ "tableFrom": "github_integration",+ "tableTo": "project",+ "columnsFrom": [+ "project_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "github_integration_project_id_unique": {+ "name": "github_integration_project_id_unique",+ "nullsNotDistinct": false,+ "columns": [+ "project_id"+ ]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.integration": {+ "name": "integration",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "project_id": {+ "name": "project_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "type": {+ "name": "type",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "config": {+ "name": "config",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "is_active": {+ "name": "is_active",+ "type": "boolean",+ "primaryKey": false,+ "notNull": false,+ "default": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "integration_projectId_idx": {+ "name": "integration_projectId_idx",+ "columns": [+ {+ "expression": "project_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "integration_type_idx": {+ "name": "integration_type_idx",+ "columns": [+ {+ "expression": "type",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "integration_project_id_project_id_fk": {+ "name": "integration_project_id_project_id_fk",+ "tableFrom": "integration",+ "tableTo": "project",+ "columnsFrom": [+ "project_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "integration_project_type_unique": {+ "name": "integration_project_type_unique",+ "nullsNotDistinct": false,+ "columns": [+ "project_id",+ "type"+ ]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.invitation": {+ "name": "invitation",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "email": {+ "name": "email",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "role": {+ "name": "role",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "team_id": {+ "name": "team_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "status": {+ "name": "status",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "default": "'pending'"+ },+ "expires_at": {+ "name": "expires_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "inviter_id": {+ "name": "inviter_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "project_access": {+ "name": "project_access",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "default": "'all'"+ },+ "project_ids": {+ "name": "project_ids",+ "type": "text[]",+ "primaryKey": false,+ "notNull": true,+ "default": "'{}'::text[]"+ }+ },+ "indexes": {+ "invitation_workspaceId_idx": {+ "name": "invitation_workspaceId_idx",+ "columns": [+ {+ "expression": "workspace_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "invitation_email_idx": {+ "name": "invitation_email_idx",+ "columns": [+ {+ "expression": "email",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "invitation_inviterId_idx": {+ "name": "invitation_inviterId_idx",+ "columns": [+ {+ "expression": "inviter_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "invitation_workspace_id_workspace_id_fk": {+ "name": "invitation_workspace_id_workspace_id_fk",+ "tableFrom": "invitation",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "invitation_inviter_id_user_id_fk": {+ "name": "invitation_inviter_id_user_id_fk",+ "tableFrom": "invitation",+ "tableTo": "user",+ "columnsFrom": [+ "inviter_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.job_lease": {+ "name": "job_lease",+ "schema": "",+ "columns": {+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "owner": {+ "name": "owner",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "expires_at": {+ "name": "expires_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.label": {+ "name": "label",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "color": {+ "name": "color",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "deletion_started_at": {+ "name": "deletion_started_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "task_id": {+ "name": "task_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ }+ },+ "indexes": {+ "label_task_id_idx": {+ "name": "label_task_id_idx",+ "columns": [+ {+ "expression": "task_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "label_workspace_id_idx": {+ "name": "label_workspace_id_idx",+ "columns": [+ {+ "expression": "workspace_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "label_workspace_cascade_idx": {+ "name": "label_workspace_cascade_idx",+ "columns": [+ {+ "expression": "workspace_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ },+ {+ "expression": "name",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ },+ {+ "expression": "created_at",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ },+ {+ "expression": "id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "where": "\"label\".\"task_id\" is not null",+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "label_workspace_name_unique": {+ "name": "label_workspace_name_unique",+ "columns": [+ {+ "expression": "workspace_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ },+ {+ "expression": "name",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": true,+ "where": "\"label\".\"task_id\" is null",+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "label_task_id_task_id_fk": {+ "name": "label_task_id_task_id_fk",+ "tableFrom": "label",+ "tableTo": "task",+ "columnsFrom": [+ "task_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "label_workspace_id_workspace_id_fk": {+ "name": "label_workspace_id_workspace_id_fk",+ "tableFrom": "label",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "label_task_name_unique": {+ "name": "label_task_name_unique",+ "nullsNotDistinct": false,+ "columns": [+ "task_id",+ "name"+ ]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.mcp_oauth_state": {+ "name": "mcp_oauth_state",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "kind": {+ "name": "kind",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "key": {+ "name": "key",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "payload": {+ "name": "payload",+ "type": "jsonb",+ "primaryKey": false,+ "notNull": true+ },+ "expires_at": {+ "name": "expires_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "mcp_oauth_state_kind_key_uidx": {+ "name": "mcp_oauth_state_kind_key_uidx",+ "columns": [+ {+ "expression": "kind",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ },+ {+ "expression": "key",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": true,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "mcp_oauth_state_expiresAt_idx": {+ "name": "mcp_oauth_state_expiresAt_idx",+ "columns": [+ {+ "expression": "expires_at",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.notification": {+ "name": "notification",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "title": {+ "name": "title",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "content": {+ "name": "content",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "type": {+ "name": "type",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "default": "'info'"+ },+ "event_data": {+ "name": "event_data",+ "type": "jsonb",+ "primaryKey": false,+ "notNull": false+ },+ "is_read": {+ "name": "is_read",+ "type": "boolean",+ "primaryKey": false,+ "notNull": false,+ "default": false+ },+ "resource_id": {+ "name": "resource_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "resource_type": {+ "name": "resource_type",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp with time zone",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp with time zone",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "indexes": {+ "notification_userId_idx": {+ "name": "notification_userId_idx",+ "columns": [+ {+ "expression": "user_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "notification_user_id_user_id_fk": {+ "name": "notification_user_id_user_id_fk",+ "tableFrom": "notification",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.workspace_role": {+ "name": "workspace_role",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "role": {+ "name": "role",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "permission": {+ "name": "permission",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "workspace_role_workspaceId_idx": {+ "name": "workspace_role_workspaceId_idx",+ "columns": [+ {+ "expression": "workspace_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "workspace_role_role_idx": {+ "name": "workspace_role_role_idx",+ "columns": [+ {+ "expression": "role",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "workspace_role_workspace_id_workspace_id_fk": {+ "name": "workspace_role_workspace_id_workspace_id_fk",+ "tableFrom": "workspace_role",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.project": {+ "name": "project",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "slug": {+ "name": "slug",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "icon": {+ "name": "icon",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "default": "'Layout'"+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "is_public": {+ "name": "is_public",+ "type": "boolean",+ "primaryKey": false,+ "notNull": false,+ "default": false+ },+ "archived_at": {+ "name": "archived_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "last_task_number": {+ "name": "last_task_number",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "default": 0+ },+ "position": {+ "name": "position",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "default": 0+ },+ "background_object_key": {+ "name": "background_object_key",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "background_mime_type": {+ "name": "background_mime_type",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "background_version": {+ "name": "background_version",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ }+ },+ "indexes": {+ "project_background_object_key_idx": {+ "name": "project_background_object_key_idx",+ "columns": [+ {+ "expression": "background_object_key",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "where": "\"project\".\"background_object_key\" is not null",+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "project_workspaceId_position_idx": {+ "name": "project_workspaceId_position_idx",+ "columns": [+ {+ "expression": "workspace_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ },+ {+ "expression": "position",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "project_workspace_id_workspace_id_fk": {+ "name": "project_workspace_id_workspace_id_fk",+ "tableFrom": "project",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "project_workspace_id_id_unique": {+ "name": "project_workspace_id_id_unique",+ "nullsNotDistinct": false,+ "columns": [+ "workspace_id",+ "id"+ ]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.session": {+ "name": "session",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "expires_at": {+ "name": "expires_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ },+ "token": {+ "name": "token",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ },+ "ip_address": {+ "name": "ip_address",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "user_agent": {+ "name": "user_agent",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "active_organization_id": {+ "name": "active_organization_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "active_team_id": {+ "name": "active_team_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "impersonated_by": {+ "name": "impersonated_by",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ }+ },+ "indexes": {+ "session_userId_idx": {+ "name": "session_userId_idx",+ "columns": [+ {+ "expression": "user_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "session_user_id_user_id_fk": {+ "name": "session_user_id_user_id_fk",+ "tableFrom": "session",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "session_token_unique": {+ "name": "session_token_unique",+ "nullsNotDistinct": false,+ "columns": [+ "token"+ ]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.storage_cleanup": {+ "name": "storage_cleanup",+ "schema": "",+ "columns": {+ "object_key": {+ "name": "object_key",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "last_attempt_at": {+ "name": "last_attempt_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.task_relation": {+ "name": "task_relation",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "source_task_id": {+ "name": "source_task_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "target_task_id": {+ "name": "target_task_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "relation_type": {+ "name": "relation_type",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "task_relation_source_idx": {+ "name": "task_relation_source_idx",+ "columns": [+ {+ "expression": "source_task_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "task_relation_target_idx": {+ "name": "task_relation_target_idx",+ "columns": [+ {+ "expression": "target_task_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "task_relation_source_task_id_task_id_fk": {+ "name": "task_relation_source_task_id_task_id_fk",+ "tableFrom": "task_relation",+ "tableTo": "task",+ "columnsFrom": [+ "source_task_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "task_relation_target_task_id_task_id_fk": {+ "name": "task_relation_target_task_id_task_id_fk",+ "tableFrom": "task_relation",+ "tableTo": "task",+ "columnsFrom": [+ "target_task_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.task_reminder_sent": {+ "name": "task_reminder_sent",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "task_id": {+ "name": "task_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "reminder_type": {+ "name": "reminder_type",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "task_reminder_sent_taskId_idx": {+ "name": "task_reminder_sent_taskId_idx",+ "columns": [+ {+ "expression": "task_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "task_reminder_sent_task_id_task_id_fk": {+ "name": "task_reminder_sent_task_id_task_id_fk",+ "tableFrom": "task_reminder_sent",+ "tableTo": "task",+ "columnsFrom": [+ "task_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "task_reminder_sent_task_type_unique": {+ "name": "task_reminder_sent_task_type_unique",+ "nullsNotDistinct": false,+ "columns": [+ "task_id",+ "reminder_type"+ ]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.task": {+ "name": "task",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "project_id": {+ "name": "project_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "position": {+ "name": "position",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "default": 0+ },+ "number": {+ "name": "number",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "default": 1+ },+ "assignee_id": {+ "name": "assignee_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "title": {+ "name": "title",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "status": {+ "name": "status",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "default": "'to-do'"+ },+ "column_id": {+ "name": "column_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "priority": {+ "name": "priority",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "default": "'low'"+ },+ "start_date": {+ "name": "start_date",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "due_date": {+ "name": "due_date",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "task_projectId_idx": {+ "name": "task_projectId_idx",+ "columns": [+ {+ "expression": "project_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "task_project_scheduled_id_idx": {+ "name": "task_project_scheduled_id_idx",+ "columns": [+ {+ "expression": "project_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ },+ {+ "expression": "id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "where": "\"task\".\"start_date\" is not null or \"task\".\"due_date\" is not null",+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "task_dueDate_idx": {+ "name": "task_dueDate_idx",+ "columns": [+ {+ "expression": "due_date",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "task_assigneeId_idx": {+ "name": "task_assigneeId_idx",+ "columns": [+ {+ "expression": "assignee_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "task_columnId_idx": {+ "name": "task_columnId_idx",+ "columns": [+ {+ "expression": "column_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "task_project_id_project_id_fk": {+ "name": "task_project_id_project_id_fk",+ "tableFrom": "task",+ "tableTo": "project",+ "columnsFrom": [+ "project_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "task_assignee_id_user_id_fk": {+ "name": "task_assignee_id_user_id_fk",+ "tableFrom": "task",+ "tableTo": "user",+ "columnsFrom": [+ "assignee_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "set null",+ "onUpdate": "cascade"+ },+ "task_column_id_column_id_fk": {+ "name": "task_column_id_column_id_fk",+ "tableFrom": "task",+ "tableTo": "column",+ "columnsFrom": [+ "column_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "set null",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "task_project_number_unique": {+ "name": "task_project_number_unique",+ "nullsNotDistinct": false,+ "columns": [+ "project_id",+ "number"+ ]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.team": {+ "name": "team",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ }+ },+ "indexes": {+ "team_workspaceId_idx": {+ "name": "team_workspaceId_idx",+ "columns": [+ {+ "expression": "workspace_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "team_workspace_id_workspace_id_fk": {+ "name": "team_workspace_id_workspace_id_fk",+ "tableFrom": "team",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.team_member": {+ "name": "team_member",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "team_id": {+ "name": "team_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ }+ },+ "indexes": {+ "teamMember_teamId_idx": {+ "name": "teamMember_teamId_idx",+ "columns": [+ {+ "expression": "team_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "teamMember_userId_idx": {+ "name": "teamMember_userId_idx",+ "columns": [+ {+ "expression": "user_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "team_member_team_id_team_id_fk": {+ "name": "team_member_team_id_team_id_fk",+ "tableFrom": "team_member",+ "tableTo": "team",+ "columnsFrom": [+ "team_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "team_member_user_id_user_id_fk": {+ "name": "team_member_user_id_user_id_fk",+ "tableFrom": "team_member",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.time_entry": {+ "name": "time_entry",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "task_id": {+ "name": "task_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "start_time": {+ "name": "start_time",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ },+ "end_time": {+ "name": "end_time",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "duration": {+ "name": "duration",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "default": 0+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "time_entry_taskId_idx": {+ "name": "time_entry_taskId_idx",+ "columns": [+ {+ "expression": "task_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "time_entry_userId_idx": {+ "name": "time_entry_userId_idx",+ "columns": [+ {+ "expression": "user_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "time_entry_task_id_task_id_fk": {+ "name": "time_entry_task_id_task_id_fk",+ "tableFrom": "time_entry",+ "tableTo": "task",+ "columnsFrom": [+ "task_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "time_entry_user_id_user_id_fk": {+ "name": "time_entry_user_id_user_id_fk",+ "tableFrom": "time_entry",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "set null",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.trial_grant": {+ "name": "trial_grant",+ "schema": "",+ "columns": {+ "email_hash": {+ "name": "email_hash",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "trial_ends_at": {+ "name": "trial_ends_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.user": {+ "name": "user",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "email": {+ "name": "email",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "email_verified": {+ "name": "email_verified",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true+ },+ "image": {+ "name": "image",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "locale": {+ "name": "locale",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "is_anonymous": {+ "name": "is_anonymous",+ "type": "boolean",+ "primaryKey": false,+ "notNull": false,+ "default": false+ },+ "role": {+ "name": "role",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "banned": {+ "name": "banned",+ "type": "boolean",+ "primaryKey": false,+ "notNull": false,+ "default": false+ },+ "ban_reason": {+ "name": "ban_reason",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "ban_expires": {+ "name": "ban_expires",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "user_email_unique": {+ "name": "user_email_unique",+ "nullsNotDistinct": false,+ "columns": [+ "email"+ ]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.user_avatar": {+ "name": "user_avatar",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "mime_type": {+ "name": "mime_type",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "size": {+ "name": "size",+ "type": "integer",+ "primaryKey": false,+ "notNull": true+ },+ "data": {+ "name": "data",+ "type": "bytea",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "user_avatar_userId_idx": {+ "name": "user_avatar_userId_idx",+ "columns": [+ {+ "expression": "user_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "user_avatar_user_id_user_id_fk": {+ "name": "user_avatar_user_id_user_id_fk",+ "tableFrom": "user_avatar",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "user_avatar_user_id_unique": {+ "name": "user_avatar_user_id_unique",+ "nullsNotDistinct": false,+ "columns": [+ "user_id"+ ]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.user_notification_preference": {+ "name": "user_notification_preference",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "email_enabled": {+ "name": "email_enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": false+ },+ "ntfy_enabled": {+ "name": "ntfy_enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": false+ },+ "ntfy_server_url": {+ "name": "ntfy_server_url",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "ntfy_topic": {+ "name": "ntfy_topic",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "ntfy_token": {+ "name": "ntfy_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "gotify_enabled": {+ "name": "gotify_enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": false+ },+ "gotify_server_url": {+ "name": "gotify_server_url",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "gotify_token": {+ "name": "gotify_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "webhook_enabled": {+ "name": "webhook_enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": false+ },+ "webhook_url": {+ "name": "webhook_url",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "webhook_secret": {+ "name": "webhook_secret",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "task_assignment_enabled": {+ "name": "task_assignment_enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": true+ },+ "task_comment_enabled": {+ "name": "task_comment_enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": true+ },+ "task_status_change_enabled": {+ "name": "task_status_change_enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": true+ },+ "due_date_reminder_enabled": {+ "name": "due_date_reminder_enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": true+ },+ "due_date_reminder_lead_time_minutes": {+ "name": "due_date_reminder_lead_time_minutes",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "default": 1440+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {},+ "foreignKeys": {+ "user_notification_preference_user_id_user_id_fk": {+ "name": "user_notification_preference_user_id_user_id_fk",+ "tableFrom": "user_notification_preference",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "user_notification_preference_user_id_unique": {+ "name": "user_notification_preference_user_id_unique",+ "nullsNotDistinct": false,+ "columns": [+ "user_id"+ ]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.user_notification_workspace_project": {+ "name": "user_notification_workspace_project",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "workspace_rule_id": {+ "name": "workspace_rule_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "project_id": {+ "name": "project_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "user_notification_workspace_project_ruleId_idx": {+ "name": "user_notification_workspace_project_ruleId_idx",+ "columns": [+ {+ "expression": "workspace_rule_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "user_notification_workspace_project_projectId_idx": {+ "name": "user_notification_workspace_project_projectId_idx",+ "columns": [+ {+ "expression": "project_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "user_notification_workspace_project_workspaceId_projectId_idx": {+ "name": "user_notification_workspace_project_workspaceId_projectId_idx",+ "columns": [+ {+ "expression": "workspace_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ },+ {+ "expression": "project_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "unwp_workspaceId_workspaceRuleId_idx": {+ "name": "unwp_workspaceId_workspaceRuleId_idx",+ "columns": [+ {+ "expression": "workspace_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ },+ {+ "expression": "workspace_rule_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "user_notification_workspace_project_workspace_id_workspace_id_fk": {+ "name": "user_notification_workspace_project_workspace_id_workspace_id_fk",+ "tableFrom": "user_notification_workspace_project",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "user_notification_workspace_project_workspace_id_workspace_rule_id_user_notification_workspace_rule_workspace_id_id_fk": {+ "name": "user_notification_workspace_project_workspace_id_workspace_rule_id_user_notification_workspace_rule_workspace_id_id_fk",+ "tableFrom": "user_notification_workspace_project",+ "tableTo": "user_notification_workspace_rule",+ "columnsFrom": [+ "workspace_id",+ "workspace_rule_id"+ ],+ "columnsTo": [+ "workspace_id",+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "user_notification_workspace_project_workspace_id_project_id_project_workspace_id_id_fk": {+ "name": "user_notification_workspace_project_workspace_id_project_id_project_workspace_id_id_fk",+ "tableFrom": "user_notification_workspace_project",+ "tableTo": "project",+ "columnsFrom": [+ "workspace_id",+ "project_id"+ ],+ "columnsTo": [+ "workspace_id",+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "user_notification_workspace_project_rule_project_unique": {+ "name": "user_notification_workspace_project_rule_project_unique",+ "nullsNotDistinct": false,+ "columns": [+ "workspace_rule_id",+ "project_id"+ ]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.user_notification_workspace_rule": {+ "name": "user_notification_workspace_rule",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "is_active": {+ "name": "is_active",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": true+ },+ "email_enabled": {+ "name": "email_enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": false+ },+ "ntfy_enabled": {+ "name": "ntfy_enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": false+ },+ "gotify_enabled": {+ "name": "gotify_enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": false+ },+ "webhook_enabled": {+ "name": "webhook_enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": false+ },+ "project_mode": {+ "name": "project_mode",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "default": "'all'"+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "user_notification_workspace_rule_userId_idx": {+ "name": "user_notification_workspace_rule_userId_idx",+ "columns": [+ {+ "expression": "user_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "user_notification_workspace_rule_workspaceId_idx": {+ "name": "user_notification_workspace_rule_workspaceId_idx",+ "columns": [+ {+ "expression": "workspace_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "user_notification_workspace_rule_user_id_user_id_fk": {+ "name": "user_notification_workspace_rule_user_id_user_id_fk",+ "tableFrom": "user_notification_workspace_rule",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "user_notification_workspace_rule_workspace_id_workspace_id_fk": {+ "name": "user_notification_workspace_rule_workspace_id_workspace_id_fk",+ "tableFrom": "user_notification_workspace_rule",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "user_notification_workspace_rule_user_workspace_unique": {+ "name": "user_notification_workspace_rule_user_workspace_unique",+ "nullsNotDistinct": false,+ "columns": [+ "user_id",+ "workspace_id"+ ]+ },+ "user_notification_workspace_rule_workspace_id_id_unique": {+ "name": "user_notification_workspace_rule_workspace_id_id_unique",+ "nullsNotDistinct": false,+ "columns": [+ "workspace_id",+ "id"+ ]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.verification": {+ "name": "verification",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "identifier": {+ "name": "identifier",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "value": {+ "name": "value",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "expires_at": {+ "name": "expires_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "verification_identifier_idx": {+ "name": "verification_identifier_idx",+ "columns": [+ {+ "expression": "identifier",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.workflow_rule": {+ "name": "workflow_rule",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "project_id": {+ "name": "project_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "integration_type": {+ "name": "integration_type",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "event_type": {+ "name": "event_type",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "column_id": {+ "name": "column_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "workflow_rule_projectId_idx": {+ "name": "workflow_rule_projectId_idx",+ "columns": [+ {+ "expression": "project_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "workflow_rule_columnId_idx": {+ "name": "workflow_rule_columnId_idx",+ "columns": [+ {+ "expression": "column_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "workflow_rule_project_id_project_id_fk": {+ "name": "workflow_rule_project_id_project_id_fk",+ "tableFrom": "workflow_rule",+ "tableTo": "project",+ "columnsFrom": [+ "project_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "workflow_rule_column_id_column_id_fk": {+ "name": "workflow_rule_column_id_column_id_fk",+ "tableFrom": "workflow_rule",+ "tableTo": "column",+ "columnsFrom": [+ "column_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.workspace": {+ "name": "workspace",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "slug": {+ "name": "slug",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "logo": {+ "name": "logo",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "metadata": {+ "name": "metadata",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "workspace_slug_unique": {+ "name": "workspace_slug_unique",+ "nullsNotDistinct": false,+ "columns": [+ "slug"+ ]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.workspace_billing": {+ "name": "workspace_billing",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "founding_free": {+ "name": "founding_free",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": false+ },+ "trial_ends_at": {+ "name": "trial_ends_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "creem_customer_id": {+ "name": "creem_customer_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "creem_subscription_id": {+ "name": "creem_subscription_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "creem_product_id": {+ "name": "creem_product_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "plan": {+ "name": "plan",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "billing_interval": {+ "name": "billing_interval",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "status": {+ "name": "status",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "seats": {+ "name": "seats",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "default": 1+ },+ "current_period_end": {+ "name": "current_period_end",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "canceled_at": {+ "name": "canceled_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "workspace_billing_workspaceId_idx": {+ "name": "workspace_billing_workspaceId_idx",+ "columns": [+ {+ "expression": "workspace_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "workspace_billing_workspace_id_workspace_id_fk": {+ "name": "workspace_billing_workspace_id_workspace_id_fk",+ "tableFrom": "workspace_billing",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "workspace_billing_workspace_id_unique": {+ "name": "workspace_billing_workspace_id_unique",+ "nullsNotDistinct": false,+ "columns": [+ "workspace_id"+ ]+ },+ "workspace_billing_creem_subscription_id_unique": {+ "name": "workspace_billing_creem_subscription_id_unique",+ "nullsNotDistinct": false,+ "columns": [+ "creem_subscription_id"+ ]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.workspace_member_access": {+ "name": "workspace_member_access",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "project_access": {+ "name": "project_access",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "default": "'all'"+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "workspace_member_access_userId_idx": {+ "name": "workspace_member_access_userId_idx",+ "columns": [+ {+ "expression": "user_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "workspace_member_access_workspace_id_workspace_id_fk": {+ "name": "workspace_member_access_workspace_id_workspace_id_fk",+ "tableFrom": "workspace_member_access",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "workspace_member_access_user_id_user_id_fk": {+ "name": "workspace_member_access_user_id_user_id_fk",+ "tableFrom": "workspace_member_access",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "workspace_member_access_workspace_user_unique": {+ "name": "workspace_member_access_workspace_user_unique",+ "nullsNotDistinct": false,+ "columns": [+ "workspace_id",+ "user_id"+ ]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.workspace_member_project": {+ "name": "workspace_member_project",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "project_id": {+ "name": "project_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "(now() AT TIME ZONE 'utc')"+ }+ },+ "indexes": {+ "workspace_member_project_projectId_idx": {+ "name": "workspace_member_project_projectId_idx",+ "columns": [+ {+ "expression": "project_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "workspace_member_project_user_id_user_id_fk": {+ "name": "workspace_member_project_user_id_user_id_fk",+ "tableFrom": "workspace_member_project",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "workspace_member_project_workspace_id_project_id_project_workspace_id_id_fk": {+ "name": "workspace_member_project_workspace_id_project_id_project_workspace_id_id_fk",+ "tableFrom": "workspace_member_project",+ "tableTo": "project",+ "columnsFrom": [+ "workspace_id",+ "project_id"+ ],+ "columnsTo": [+ "workspace_id",+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "workspace_member_project_workspace_user_project_unique": {+ "name": "workspace_member_project_workspace_user_project_unique",+ "nullsNotDistinct": false,+ "columns": [+ "workspace_id",+ "user_id",+ "project_id"+ ]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.workspace_member": {+ "name": "workspace_member",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "role": {+ "name": "role",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "default": "'member'"+ },+ "joined_at": {+ "name": "joined_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ }+ },+ "indexes": {+ "workspace_member_workspaceId_idx": {+ "name": "workspace_member_workspaceId_idx",+ "columns": [+ {+ "expression": "workspace_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "workspace_member_userId_idx": {+ "name": "workspace_member_userId_idx",+ "columns": [+ {+ "expression": "user_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "workspace_member_workspace_id_workspace_id_fk": {+ "name": "workspace_member_workspace_id_workspace_id_fk",+ "tableFrom": "workspace_member",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "workspace_member_user_id_user_id_fk": {+ "name": "workspace_member_user_id_user_id_fk",+ "tableFrom": "workspace_member",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ }+ },+ "enums": {},+ "schemas": {},+ "sequences": {},+ "roles": {},+ "policies": {},+ "views": {},+ "_meta": {+ "columns": {},+ "schemas": {},+ "tables": {}+ }+}\ No newline at end of filediff --git a/apps/api/drizzle/meta/_journal.json b/apps/api/drizzle/meta/_journal.jsonindex 3c26a3118..a15494165 100644--- a/apps/api/drizzle/meta/_journal.json+++ b/apps/api/drizzle/meta/_journal.json@@ -435,6 +435,13 @@"when": 1791391236556,"tag": "0061_slim_yellowjacket","breakpoints": true+ },+ {+ "idx": 62,+ "version": "7",+ "when": 1791580417885,+ "tag": "0062_motionless_sister_grimm",+ "breakpoints": true}]}\ No newline at end of filediff --git a/apps/api/src/database/schema.ts b/apps/api/src/database/schema.tsindex 2a728d312..30fd02bc7 100644--- a/apps/api/src/database/schema.ts+++ b/apps/api/src/database/schema.ts@@ -15,6 +15,11 @@ import {} from "drizzle-orm/pg-core";import type { GitHubImportState } from "../github-integration/import-state";+// Timestamp columns without a time zone hold UTC (Drizzle reads and writes+// them as UTC). A bare now() default would be cast through the session time+// zone, storing shifted times on servers not running in UTC.+const utcNow = sql`(now() AT TIME ZONE 'utc')`;+const bytea = customType<{ data: Buffer; driverData: Buffer }>({dataType() {return "bytea";@@ -32,9 +37,11 @@ export const userTable = pgTable("user", {.notNull(),image: text("image"),locale: text("locale"),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => /* @__PURE__ */ new Date()).notNull(),isAnonymous: boolean("is_anonymous").default(false),@@ -50,7 +57,9 @@ export const sessionTable = pgTable(id: text("id").primaryKey(),expiresAt: timestamp("expires_at", { mode: "date" }).notNull(),token: text("token").notNull().unique(),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" }).$onUpdate(() => /* @__PURE__ */ new Date()).notNull(),@@ -88,7 +97,9 @@ export const accountTable = pgTable(}),scope: text("scope"),password: text("password"),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" }).$onUpdate(() => /* @__PURE__ */ new Date()).notNull(),@@ -112,9 +123,11 @@ export const userAvatarTable = pgTable(mimeType: text("mime_type").notNull(),size: integer("size").notNull(),data: bytea("data").notNull(),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => new Date()).notNull(),},@@ -130,9 +143,11 @@ export const verificationTable = pgTable(identifier: text("identifier").notNull(),value: text("value").notNull(),expiresAt: timestamp("expires_at", { mode: "date" }).notNull(),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => /* @__PURE__ */ new Date()).notNull(),},@@ -200,9 +215,11 @@ export const workspaceBillingTable = pgTable(seats: integer("seats").notNull().default(1),currentPeriodEnd: timestamp("current_period_end", { mode: "date" }),canceledAt: timestamp("canceled_at", { mode: "date" }),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => new Date()).notNull(),},@@ -212,14 +229,16 @@ export const workspaceBillingTable = pgTable(export const trialGrantTable = pgTable("trial_grant", {emailHash: text("email_hash").primaryKey(),trialEndsAt: timestamp("trial_ends_at", { mode: "date" }).notNull(),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),});export const billingEventTable = pgTable("billing_event", {id: text("id").primaryKey(),eventType: text("event_type").notNull(),processedAt: timestamp("processed_at", { mode: "date" })- .defaultNow()+ .default(utcNow).notNull(),});@@ -271,7 +290,9 @@ export const invitationTable = pgTable(teamId: text("team_id"),status: text("status").default("pending").notNull(),expiresAt: timestamp("expires_at").notNull(),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),inviterId: text("inviter_id").notNull().references(() => userTable.id, { onDelete: "cascade" }),@@ -302,9 +323,11 @@ export const workspaceRoleTable = pgTable(}),role: text("role").notNull(),permission: text("permission").notNull(),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => new Date()).notNull(),},@@ -330,7 +353,9 @@ export const projectTable = pgTable(icon: text("icon").default("Layout"),name: text("name").notNull(),description: text("description"),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),isPublic: boolean("is_public").default(false),archivedAt: timestamp("archived_at", { mode: "date" }),lastTaskNumber: integer("last_task_number").notNull().default(0),@@ -364,9 +389,11 @@ export const workspaceMemberAccessTable = pgTable(.notNull().references(() => userTable.id, { onDelete: "cascade" }),projectAccess: text("project_access").default("all").notNull(),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => new Date()).notNull(),},@@ -390,7 +417,9 @@ export const workspaceMemberProjectTable = pgTable(.notNull().references(() => userTable.id, { onDelete: "cascade" }),projectId: text("project_id").notNull(),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),},(table) => [foreignKey({@@ -426,9 +455,11 @@ export const columnTable = pgTable(icon: text("icon"),color: text("color"),isFinal: boolean("is_final").default(false).notNull(),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => new Date()).notNull(),},@@ -455,9 +486,11 @@ export const workflowRuleTable = pgTable(onDelete: "cascade",onUpdate: "cascade",}),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => new Date()).notNull(),},@@ -482,7 +515,9 @@ export const calendarFeedTable = pgTable(token: text("token").notNull().unique(),labelIds: jsonb("label_ids").$type<string[]>().notNull(),timeZone: text("time_zone").notNull().default("UTC"),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),},(table) => [index("calendar_feed_project_id_idx").on(table.projectId)],);@@ -515,9 +550,11 @@ export const taskTable = pgTable(priority: text("priority").default("low").notNull(),startDate: timestamp("start_date", { mode: "date" }),dueDate: timestamp("due_date", { mode: "date" }),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => new Date()).notNull(),},@@ -555,9 +592,11 @@ export const billingReminderSentTable = pgTable(}),reminderType: text("reminder_type").notNull(),trialEndsAt: timestamp("trial_ends_at", { mode: "date" }),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => new Date()).notNull(),},@@ -590,9 +629,11 @@ export const taskReminderSentTable = pgTable(onUpdate: "cascade",}),reminderType: text("reminder_type").notNull(),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => new Date()).notNull(),},@@ -625,9 +666,11 @@ export const timeEntryTable = pgTable(startTime: timestamp("start_time", { mode: "date" }).notNull(),endTime: timestamp("end_time", { mode: "date" }),duration: integer("duration").default(0),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => new Date()).notNull(),},@@ -650,9 +693,11 @@ export const activityTable = pgTable(onUpdate: "cascade",}),type: text("type").notNull(),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => new Date()).notNull(),userId: text("user_id").references(() => userTable.id, {@@ -714,7 +759,9 @@ export const assetTable = pgTable(onDelete: "set null",onUpdate: "cascade",}),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),},(table) => [index("asset_workspaceId_idx").on(table.workspaceId),@@ -738,9 +785,11 @@ export const labelTable = pgTable(.primaryKey(),name: text("name").notNull(),color: text("color").notNull(),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => new Date()).notNull(),deletionStartedAt: timestamp("deletion_started_at", { mode: "date" }),@@ -835,9 +884,11 @@ export const userNotificationPreferenceTable = pgTable().default(1440).notNull(),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => new Date()).notNull(),},@@ -867,9 +918,11 @@ export const userNotificationWorkspaceRuleTable = pgTable(gotifyEnabled: boolean("gotify_enabled").default(false).notNull(),webhookEnabled: boolean("webhook_enabled").default(false).notNull(),projectMode: text("project_mode").default("all").notNull(),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => new Date()).notNull(),},@@ -903,9 +956,11 @@ export const userNotificationWorkspaceProjectTable = pgTable(}),workspaceRuleId: text("workspace_rule_id").notNull(),projectId: text("project_id").notNull(),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => new Date()).notNull(),},@@ -946,6 +1001,8 @@ export const userNotificationWorkspaceProjectTable = pgTable(],);+// Legacy table: the GitHub plugin migration drops it at startup on existing+// installs, so SQL migrations must not touch it.export const githubIntegrationTable = pgTable("github_integration", {id: text("id").$defaultFn(() => createId())@@ -983,9 +1040,11 @@ export const integrationTable = pgTable(type: text("type").notNull(),config: text("config").notNull(),isActive: boolean("is_active").default(true),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => new Date()).notNull(),},@@ -1008,7 +1067,7 @@ export const githubImportTable = pgTable("github_import", {.$defaultFn(() => createId()),state: jsonb("state").$type<GitHubImportState>().notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).notNull().$onUpdate(() => new Date()),});@@ -1037,9 +1096,11 @@ export const externalLinkTable = pgTable(url: text("url").notNull(),title: text("title"),metadata: text("metadata"),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => new Date()).notNull(),},@@ -1075,9 +1136,11 @@ export const commentTable = pgTable(onUpdate: "cascade",}),content: text("content").notNull(),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => new Date()).notNull(),},@@ -1106,7 +1169,9 @@ export const taskRelationTable = pgTable(onUpdate: "cascade",}),relationType: text("relation_type").notNull(),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),},(table) => [index("task_relation_source_idx").on(table.sourceTaskId),@@ -1167,9 +1232,11 @@ export const deviceCodeTable = pgTable(onDelete: "cascade",onUpdate: "cascade",}),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => new Date()).notNull(),expiresAt: timestamp("expires_at", { mode: "date" }).notNull(),@@ -1196,9 +1263,11 @@ export const mcpOauthStateTable = pgTable(key: text("key").notNull(),payload: jsonb("payload").notNull(),expiresAt: timestamp("expires_at", { mode: "date" }).notNull(),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => new Date()).notNull(),},@@ -1323,9 +1392,11 @@ export const customFieldDefinitionTable = pgTable(defaultValue: text("default_value"),options: jsonb("options"),position: integer("position").default(0).notNull(),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => new Date()).notNull(),},@@ -1351,9 +1422,11 @@ export const customFieldValueTable = pgTable(onUpdate: "cascade",}),value: text("value"),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),updatedAt: timestamp("updated_at", { mode: "date" })- .defaultNow()+ .default(utcNow).$onUpdate(() => new Date()).notNull(),},@@ -1371,12 +1444,14 @@ export const customFieldValueTable = pgTable(export const storageCleanupTable = pgTable("storage_cleanup", {objectKey: text("object_key").primaryKey(),lastAttemptAt: timestamp("last_attempt_at", { mode: "date" }),- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ createdAt: timestamp("created_at", { mode: "date" })+ .default(utcNow)+ .notNull(),});export const dataMigrationTable = pgTable("data_migration", {id: text("id").primaryKey(),completedAt: timestamp("completed_at", { mode: "date" })- .defaultNow()+ .default(utcNow).notNull(),});diff --git a/apps/api/src/label/controllers/delete-label.ts b/apps/api/src/label/controllers/delete-label.tsindex 8256e89fc..67959128d 100644--- a/apps/api/src/label/controllers/delete-label.ts+++ b/apps/api/src/label/controllers/delete-label.ts@@ -92,7 +92,8 @@ async function deleteLabel(const [root] = await db.update(labelTable).set({- deletionStartedAt: sql`coalesce(${labelTable.deletionStartedAt}, clock_timestamp())`,+ // UTC like every timezone-less column, whatever the session time zone.+ deletionStartedAt: sql`coalesce(${labelTable.deletionStartedAt}, timezone('UTC', clock_timestamp()))`,}).where(eq(labelTable.id, id)).returning();diff --git a/apps/api/src/utils/migrate-notification-preferences-schema.ts b/apps/api/src/utils/migrate-notification-preferences-schema.tsindex 7718c0216..d7cbdbab3 100644--- a/apps/api/src/utils/migrate-notification-preferences-schema.ts+++ b/apps/api/src/utils/migrate-notification-preferences-schema.ts@@ -29,8 +29,8 @@ export async function migrateNotificationPreferencesSchema() {"task_status_change_enabled" boolean DEFAULT true NOT NULL,"due_date_reminder_enabled" boolean DEFAULT true NOT NULL,"due_date_reminder_lead_time_minutes" integer DEFAULT 1440 NOT NULL,- "created_at" timestamp DEFAULT now() NOT NULL,- "updated_at" timestamp DEFAULT now() NOT NULL+ "created_at" timestamp DEFAULT (now() AT TIME ZONE 'utc') NOT NULL,+ "updated_at" timestamp DEFAULT (now() AT TIME ZONE 'utc') NOT NULL);`);@@ -52,8 +52,8 @@ export async function migrateNotificationPreferencesSchema() {ADD COLUMN IF NOT EXISTS "task_status_change_enabled" boolean DEFAULT true NOT NULL,ADD COLUMN IF NOT EXISTS "due_date_reminder_enabled" boolean DEFAULT true NOT NULL,ADD COLUMN IF NOT EXISTS "due_date_reminder_lead_time_minutes" integer DEFAULT 1440 NOT NULL,- ADD COLUMN IF NOT EXISTS "created_at" timestamp DEFAULT now() NOT NULL,- ADD COLUMN IF NOT EXISTS "updated_at" timestamp DEFAULT now() NOT NULL;+ ADD COLUMN IF NOT EXISTS "created_at" timestamp DEFAULT (now() AT TIME ZONE 'utc') NOT NULL,+ ADD COLUMN IF NOT EXISTS "updated_at" timestamp DEFAULT (now() AT TIME ZONE 'utc') NOT NULL;`);await db.execute(sql`@@ -67,8 +67,8 @@ export async function migrateNotificationPreferencesSchema() {"gotify_enabled" boolean DEFAULT false NOT NULL,"webhook_enabled" boolean DEFAULT false NOT NULL,"project_mode" text DEFAULT 'all' NOT NULL,- "created_at" timestamp DEFAULT now() NOT NULL,- "updated_at" timestamp DEFAULT now() NOT NULL+ "created_at" timestamp DEFAULT (now() AT TIME ZONE 'utc') NOT NULL,+ "updated_at" timestamp DEFAULT (now() AT TIME ZONE 'utc') NOT NULL);`);@@ -80,8 +80,8 @@ export async function migrateNotificationPreferencesSchema() {ADD COLUMN IF NOT EXISTS "gotify_enabled" boolean DEFAULT false NOT NULL,ADD COLUMN IF NOT EXISTS "webhook_enabled" boolean DEFAULT false NOT NULL,ADD COLUMN IF NOT EXISTS "project_mode" text DEFAULT 'all' NOT NULL,- ADD COLUMN IF NOT EXISTS "created_at" timestamp DEFAULT now() NOT NULL,- ADD COLUMN IF NOT EXISTS "updated_at" timestamp DEFAULT now() NOT NULL;+ ADD COLUMN IF NOT EXISTS "created_at" timestamp DEFAULT (now() AT TIME ZONE 'utc') NOT NULL,+ ADD COLUMN IF NOT EXISTS "updated_at" timestamp DEFAULT (now() AT TIME ZONE 'utc') NOT NULL;`);await db.execute(sql`@@ -90,15 +90,15 @@ export async function migrateNotificationPreferencesSchema() {"workspace_id" text NOT NULL,"workspace_rule_id" text NOT NULL,"project_id" text NOT NULL,- "created_at" timestamp DEFAULT now() NOT NULL,- "updated_at" timestamp DEFAULT now() NOT NULL+ "created_at" timestamp DEFAULT (now() AT TIME ZONE 'utc') NOT NULL,+ "updated_at" timestamp DEFAULT (now() AT TIME ZONE 'utc') NOT NULL);`);await db.execute(sql`ALTER TABLE "user_notification_workspace_project"- ADD COLUMN IF NOT EXISTS "created_at" timestamp DEFAULT now() NOT NULL,- ADD COLUMN IF NOT EXISTS "updated_at" timestamp DEFAULT now() NOT NULL;+ ADD COLUMN IF NOT EXISTS "created_at" timestamp DEFAULT (now() AT TIME ZONE 'utc') NOT NULL,+ ADD COLUMN IF NOT EXISTS "updated_at" timestamp DEFAULT (now() AT TIME ZONE 'utc') NOT NULL;`);await db.execute(sql`diff --git a/apps/api/src/utils/require-workspace-permission.ts b/apps/api/src/utils/require-workspace-permission.tsindex 5387e008e..83ea95fe8 100644--- a/apps/api/src/utils/require-workspace-permission.ts+++ b/apps/api/src/utils/require-workspace-permission.ts@@ -90,6 +90,26 @@ export async function hasWorkspacePermission(return rolesAllow(roles, stored, permissions);}+// Same rules as `hasWorkspacePermission`, but resolves the caller's roles once+// so many checks (the UI's capability map) cost a single lookup.+export async function workspacePermissionChecker(+ c: Context,+): Promise<(permissions: PermissionMap) => boolean> {+ const workspaceId = c.get("workspaceId");+ if (!workspaceId) return () => false;++ const scope = apiKeyPermissions(c);+ const isAdmin = await isInstanceAdmin(c);+ const { roles, stored } = isAdmin+ ? { roles: [], stored: [] }+ : await memberRoles(c, workspaceId);++ return (permissions) => {+ if (scope && !satisfies(scope, permissions)) return false;+ return isAdmin || rolesAllow(roles, stored, permissions);+ };+}+async function memberRoles(c: Context,workspaceId: string,diff --git a/apps/api/src/workspace/controllers/get-my-capabilities.ts b/apps/api/src/workspace/controllers/get-my-capabilities.tsnew file mode 100644index 000000000..7511b31ee--- /dev/null+++ b/apps/api/src/workspace/controllers/get-my-capabilities.ts@@ -0,0 +1,24 @@+import {+ WORKSPACE_CAPABILITY_NAMES,+ type WorkspaceCapability,+ workspaceCapabilities,+} from "@kaneo/permissions";+import type { PermissionMap } from "../../utils/role-permissions";++function getMyCapabilities(+ allows: (permissions: PermissionMap) => boolean,+): Record<WorkspaceCapability, boolean> {+ const result = {} as Record<WorkspaceCapability, boolean>;+ for (const name of WORKSPACE_CAPABILITY_NAMES) {+ const permissions: PermissionMap = {};+ for (const [resource, actions] of Object.entries(+ workspaceCapabilities[name],+ )) {+ permissions[resource] = [...actions];+ }+ result[name] = allows(permissions);+ }+ return result;+}++export default getMyCapabilities;diff --git a/apps/api/src/workspace/index.ts b/apps/api/src/workspace/index.tsindex bd2ed504f..59076c023 100644--- a/apps/api/src/workspace/index.ts+++ b/apps/api/src/workspace/index.ts@@ -9,8 +9,10 @@ import { listWorkspaceProjectAccess } from "../project-access/list-workspace-proimport {requireApiKeyScope,requireWorkspacePermission,+ workspacePermissionChecker,} from "../utils/require-workspace-permission";import { workspaceAccess } from "../utils/workspace-access-middleware";+import getMyCapabilitiesCtrl from "./controllers/get-my-capabilities";import getMyProjectAccessCtrl from "./controllers/get-my-project-access";import getWorkspaceCtrl from "./controllers/get-workspace";import getWorkspaceMembersCtrl from "./controllers/get-workspace-members";@@ -19,6 +21,7 @@ import updateMemberProjectAccessCtrl from "./controllers/update-member-project-aimport {memberProjectAccessListSchema,memberProjectAccessSchema,+ workspaceCapabilitiesSchema,workspaceListSchema,workspaceMemberListSchema,workspaceSchema,@@ -122,6 +125,25 @@ const getMyProjectAccessRoute = createRoute({},});+const getMyCapabilitiesRoute = createRoute({+ method: "get",+ operationId: "getMyWorkspaceCapabilities",+ path: "/{workspaceId}/capabilities",+ tags: ["Workspaces"],+ summary: "Get my workspace capabilities",+ description:+ "Check every named workspace action for the caller in one request: which of them the caller's roles allow, narrowed by the API key's scope when one is used. Instance admins are allowed everything.",+ middleware: [workspaceAccess.fromParam("workspaceId")] as const,+ request: { params: workspaceIdParam },+ responses: {+ 200: jsonResponse(+ "The caller's capabilities in the workspace",+ workspaceCapabilitiesSchema,+ ),+ 404: errorResponse("Workspace not found"),+ },+});+const updateMemberProjectAccessRoute = createRoute({method: "put",operationId: "updateMemberProjectAccess",@@ -181,6 +203,9 @@ const workspace = apiRouter<BaseVariables & { workspaceId: string }>()200,),)+ .openapi(getMyCapabilitiesRoute, async (c) =>+ c.json(getMyCapabilitiesCtrl(await workspacePermissionChecker(c)), 200),+ ).openapi(getWorkspaceProjectAccessRoute, async (c) =>c.json(await listWorkspaceProjectAccess(c.get("workspaceId"), c.get("userId")),diff --git a/apps/api/src/workspace/response.ts b/apps/api/src/workspace/response.tsindex 5464095d3..5848e0b22 100644--- a/apps/api/src/workspace/response.ts+++ b/apps/api/src/workspace/response.ts@@ -1,3 +1,7 @@+import {+ WORKSPACE_CAPABILITY_NAMES,+ type WorkspaceCapability,+} from "@kaneo/permissions";import { PROJECT_ACCESS_MODES } from "../project-access/project-access-mode";import { responseTimestamp, z } from "../openapi";@@ -47,3 +51,14 @@ export const memberProjectAccessListSchema = zdescription:"Members limited to selected projects. Members not listed can access every project. Project IDs only include projects the caller can access.",});++const capabilityShape = Object.fromEntries(+ WORKSPACE_CAPABILITY_NAMES.map((name) => [name, z.boolean()]),+) as Record<WorkspaceCapability, z.ZodBoolean>;++export const workspaceCapabilitiesSchema = z+ .object(capabilityShape)+ .openapi("WorkspaceCapabilities", {+ description:+ "Whether the caller's roles (and API key scope, if any) allow each named action in the workspace. Mirrors the checks the API enforces.",+ });diff --git a/apps/docs/openapi.json b/apps/docs/openapi.jsonindex c19555281..7d0f4f7c0 100644--- a/apps/docs/openapi.json+++ b/apps/docs/openapi.json@@ -4453,6 +4453,90 @@"projectIds"]},+ "WorkspaceCapabilities": {+ "type": "object",+ "properties": {+ "manageProjects": {+ "type": "boolean"+ },+ "createProjects": {+ "type": "boolean"+ },+ "updateProjects": {+ "type": "boolean"+ },+ "shareProjects": {+ "type": "boolean"+ },+ "deleteProjects": {+ "type": "boolean"+ },+ "updateTasks": {+ "type": "boolean"+ },+ "createTasks": {+ "type": "boolean"+ },+ "deleteTasks": {+ "type": "boolean"+ },+ "assignTasks": {+ "type": "boolean"+ },+ "createLabels": {+ "type": "boolean"+ },+ "updateLabels": {+ "type": "boolean"+ },+ "deleteLabels": {+ "type": "boolean"+ },+ "manageWorkspace": {+ "type": "boolean"+ },+ "manageSettings": {+ "type": "boolean"+ },+ "deleteWorkspace": {+ "type": "boolean"+ },+ "inviteUsers": {+ "type": "boolean"+ },+ "manageTeam": {+ "type": "boolean"+ },+ "updateMembers": {+ "type": "boolean"+ },+ "removeMembers": {+ "type": "boolean"+ }+ },+ "required": [+ "manageProjects",+ "createProjects",+ "updateProjects",+ "shareProjects",+ "deleteProjects",+ "updateTasks",+ "createTasks",+ "deleteTasks",+ "assignTasks",+ "createLabels",+ "updateLabels",+ "deleteLabels",+ "manageWorkspace",+ "manageSettings",+ "deleteWorkspace",+ "inviteUsers",+ "manageTeam",+ "updateMembers",+ "removeMembers"+ ],+ "description": "Whether the caller's roles (and API key scope, if any) allow each named action in the workspace. Mirrors the checks the API enforces."+ },"CustomFieldDefinition": {"type": "object","properties": {@@ -21249,6 +21333,61 @@}}},+ "/workspace/{workspaceId}/capabilities": {+ "get": {+ "operationId": "getMyWorkspaceCapabilities",+ "tags": [+ "Workspaces"+ ],+ "summary": "Get my workspace capabilities",+ "description": "Check every named workspace action for the caller in one request: which of them the caller's roles allow, narrowed by the API key's scope when one is used. Instance admins are allowed everything.",+ "parameters": [+ {+ "schema": {+ "type": "string"+ },+ "required": true,+ "name": "workspaceId",+ "in": "path"+ }+ ],+ "responses": {+ "200": {+ "description": "The caller's capabilities in the workspace",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/WorkspaceCapabilities"+ }+ }+ }+ },+ "401": {+ "description": "Missing or invalid credentials",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ApiError"+ }+ }+ }+ },+ "404": {+ "description": "Workspace not found",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ApiError"+ }+ }+ }+ },+ "429": {+ "$ref": "#/components/responses/ApiKeyRateLimited"+ }+ }+ }+ },"/workspace/{workspaceId}/project-access": {"get": {"operationId": "getWorkspaceProjectAccess",diff --git a/apps/web/src/components/account/change-password-settings.tsx b/apps/web/src/components/account/change-password-settings.tsxindex 6be423020..0f8382c32 100644--- a/apps/web/src/components/account/change-password-settings.tsx+++ b/apps/web/src/components/account/change-password-settings.tsx@@ -46,7 +46,7 @@ function PasswordInput<T extends FieldValues>({<buttontype="button"onClick={() => setShow((prev) => !prev)}- className="absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground"+ className="touch-hitbox absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground"aria-label={show ? t("auth:forms.hidePassword") : t("auth:forms.showPassword")}diff --git a/apps/web/src/components/account/notification-preferences-settings.tsx b/apps/web/src/components/account/notification-preferences-settings.tsxindex 693d4e32b..ee0b017ab 100644--- a/apps/web/src/components/account/notification-preferences-settings.tsx+++ b/apps/web/src/components/account/notification-preferences-settings.tsx@@ -632,7 +632,7 @@ export function NotificationPreferencesSettings() {</div><div className="flex max-w-sm flex-col gap-1">- <Label htmlFor="due-date-reminder-lead-time">+ <Label htmlFor="due-date-reminder-lead-time" className="text-sm">{t("settings:notificationsPage.reminderLeadTimeLabel")}</Label><div className="flex gap-2">diff --git a/apps/web/src/components/app-sidebar.tsx b/apps/web/src/components/app-sidebar.tsxindex 34f027fe9..27d3a1006 100644--- a/apps/web/src/components/app-sidebar.tsx+++ b/apps/web/src/components/app-sidebar.tsx@@ -1,4 +1,6 @@+import { useLocation } from "@tanstack/react-router";import type * as React from "react";+import { useEffect } from "react";import { NavMain } from "@/components/nav-main";import { NavProjects } from "@/components/nav-projects";@@ -18,7 +20,8 @@ import { shortcuts } from "@/constants/shortcuts";import { useRegisterShortcuts } from "@/hooks/use-keyboard-shortcuts";export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {- const { toggleSidebar } = useSidebar();+ const { setOpenMobile, toggleSidebar } = useSidebar();+ const pathname = useLocation({ select: (location) => location.pathname });useRegisterShortcuts({modifierShortcuts: {@@ -28,6 +31,12 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {},});+ // Navigation that doesn't start from a sidebar link (creating a project,+ // the command palette) must still dismiss the mobile drawer.+ useEffect(() => {+ if (pathname) setOpenMobile(false);+ }, [pathname, setOpenMobile]);+return (<Sidebarcollapsible="offcanvas"diff --git a/apps/web/src/components/auth/sign-in-form.tsx b/apps/web/src/components/auth/sign-in-form.tsxindex 2b50a8219..15e60ddfc 100644--- a/apps/web/src/components/auth/sign-in-form.tsx+++ b/apps/web/src/components/auth/sign-in-form.tsx@@ -122,7 +122,7 @@ export function SignInForm({<buttontype="button"onClick={() => setShowPassword(!showPassword)}- className="absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground"+ className="touch-hitbox absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground"aria-label={showPassword? t("auth:forms.hidePassword")diff --git a/apps/web/src/components/auth/sign-up-form.tsx b/apps/web/src/components/auth/sign-up-form.tsxindex ee6a3c53b..894c05256 100644--- a/apps/web/src/components/auth/sign-up-form.tsx+++ b/apps/web/src/components/auth/sign-up-form.tsx@@ -181,7 +181,7 @@ export function SignUpForm({<buttontype="button"onClick={() => setShowPassword(!showPassword)}- className="absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground"+ className="touch-hitbox absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground"aria-label={showPassword? t("auth:forms.hidePassword")diff --git a/apps/web/src/components/backlog-list-view/backlog-section.tsx b/apps/web/src/components/backlog-list-view/backlog-section.tsxindex 253089d78..289658118 100644--- a/apps/web/src/components/backlog-list-view/backlog-section.tsx+++ b/apps/web/src/components/backlog-list-view/backlog-section.tsx@@ -51,7 +51,7 @@ const BacklogSection = memo(function BacklogSection({type="button"onClick={() => onToggle(sectionId)}aria-expanded={isExpanded}- className="flex items-center gap-2 text-sm font-medium text-foreground hover:text-foreground transition-colors"+ className="touch-hitbox relative flex items-center gap-2 text-sm font-medium text-foreground hover:text-foreground transition-colors"><ChevronRightclassName={cn(@@ -79,8 +79,9 @@ const BacklogSection = memo(function BacklogSection({<buttontype="button"onClick={onAddTask}- className="p-1 hover:bg-accent rounded text-muted-foreground hover:text-foreground transition-colors"+ className="touch-hitbox relative p-1 hover:bg-accent rounded text-muted-foreground hover:text-foreground transition-colors"title={t("tasks:backlog.addTask")}+ aria-label={t("tasks:backlog.addTask")}><Plus className="w-3 h-3" /></button>diff --git a/apps/web/src/components/calendar/calendar-toolbar.tsx b/apps/web/src/components/calendar/calendar-toolbar.tsxindex bf13b3594..eb62d99bf 100644--- a/apps/web/src/components/calendar/calendar-toolbar.tsx+++ b/apps/web/src/components/calendar/calendar-toolbar.tsx@@ -23,11 +23,12 @@ export default function CalendarToolbar({<div className="border-b border-border/80 px-3 py-3 sm:px-4"><div className="flex items-center justify-between gap-3"><div className="flex min-w-0 items-center gap-2">- <h1 className="truncate text-sm font-semibold text-foreground">+ {/* The project switcher already names the view on phones. */}+ <h1 className="sr-only truncate text-sm font-semibold text-foreground sm:not-sr-only">{t("tasks:calendar.title")}</h1><span- className="truncate text-sm text-muted-foreground"+ className="truncate text-sm font-medium text-foreground sm:font-normal sm:text-muted-foreground"data-testid="calendar-month-label">{formatDate(visibleMonth, { month: "long", year: "numeric" })}diff --git a/apps/web/src/components/calendar/day-overflow-popover.tsx b/apps/web/src/components/calendar/day-overflow-popover.tsxindex 73a68b9d2..bc9451f97 100644--- a/apps/web/src/components/calendar/day-overflow-popover.tsx+++ b/apps/web/src/components/calendar/day-overflow-popover.tsx@@ -42,7 +42,7 @@ export default function DayOverflowPopover({<Popover onOpenChange={setOpen} open={open}><PopoverTriggeraria-label={t("tasks:calendar.dayTasksAriaLabel", { date: dayLabel })}- className="w-full truncate rounded-sm px-1.5 pb-1 text-left text-[10px] leading-tight text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"+ className="touch-hitbox relative w-full truncate rounded-sm px-1.5 pb-1 text-left text-[10px] leading-tight text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring">{t("tasks:calendar.moreTasks", { count: hiddenCount })}</PopoverTrigger>diff --git a/apps/web/src/components/calendar/month-agenda-model.test.ts b/apps/web/src/components/calendar/month-agenda-model.test.tsnew file mode 100644index 000000000..7a0601463--- /dev/null+++ b/apps/web/src/components/calendar/month-agenda-model.test.ts@@ -0,0 +1,36 @@+import { describe, expect, it } from "vite-plus/test";+import { buildMonthAgenda } from "./month-agenda-model";++const task = (id: string, start: string, end: string) => ({+ id,+ scheduleStart: new Date(start),+ scheduleEnd: new Date(end),+});++describe("buildMonthAgenda", () => {+ it("lists only days of the month that have tasks, in order", () => {+ const agenda = buildMonthAgenda(new Date(2026, 9, 1), [+ task("b", "2026-10-12T00:00:00", "2026-10-12T00:00:00"),+ task("a", "2026-10-03T00:00:00", "2026-10-03T00:00:00"),+ ]);++ expect(agenda.map((entry) => entry.day.getDate())).toEqual([3, 12]);+ expect(agenda[0]?.tasks.map((t) => t.id)).toEqual(["a"]);+ });++ it("repeats a multi-day task on every day it spans", () => {+ const agenda = buildMonthAgenda(new Date(2026, 9, 1), [+ task("span", "2026-10-07T00:00:00", "2026-10-09T00:00:00"),+ ]);++ expect(agenda.map((entry) => entry.day.getDate())).toEqual([7, 8, 9]);+ });++ it("clips tasks that run past the month edges", () => {+ const agenda = buildMonthAgenda(new Date(2026, 9, 1), [+ task("edge", "2026-09-29T00:00:00", "2026-10-02T00:00:00"),+ ]);++ expect(agenda.map((entry) => entry.day.getDate())).toEqual([1, 2]);+ });+});diff --git a/apps/web/src/components/calendar/month-agenda-model.ts b/apps/web/src/components/calendar/month-agenda-model.tsnew file mode 100644index 000000000..8a282bd44--- /dev/null+++ b/apps/web/src/components/calendar/month-agenda-model.ts@@ -0,0 +1,40 @@+import {+ eachDayOfInterval,+ endOfMonth,+ isAfter,+ isBefore,+ startOfDay,+ startOfMonth,+} from "date-fns";+import type { PackableTask } from "./month-grid-model";++export type AgendaDay<TTask extends PackableTask> = {+ day: Date;+ tasks: TTask[];+};++/**+ * Days of `visibleMonth` that have at least one task scheduled on them, in+ * order. A multi-day task appears under every day it spans, like a schedule+ * view, so each day reads on its own.+ */+export function buildMonthAgenda<TTask extends PackableTask>(+ visibleMonth: Date,+ tasks: TTask[],+): Array<AgendaDay<TTask>> {+ const days = eachDayOfInterval({+ start: startOfMonth(visibleMonth),+ end: endOfMonth(visibleMonth),+ });++ return days+ .map((day) => ({+ day,+ tasks: tasks.filter(+ (task) =>+ !isAfter(startOfDay(task.scheduleStart), day) &&+ !isBefore(startOfDay(task.scheduleEnd), day),+ ),+ }))+ .filter((entry) => entry.tasks.length > 0);+}diff --git a/apps/web/src/components/calendar/month-agenda.tsx b/apps/web/src/components/calendar/month-agenda.tsxnew file mode 100644index 000000000..7391f7ad1--- /dev/null+++ b/apps/web/src/components/calendar/month-agenda.tsx@@ -0,0 +1,118 @@+import { isBefore, isToday, startOfToday } from "date-fns";+import { type JSX, useLayoutEffect, useMemo, useRef } from "react";+import { useTranslation } from "react-i18next";+import { cn } from "@/lib/cn";+import { formatDate, formatDateShort } from "@/lib/format";+import {+ type CalendarTask,+ getCalendarTaskStatusClass,+} from "./calendar-task-bar";+import { buildMonthAgenda } from "./month-agenda-model";++type MonthAgendaProps = {+ tasks: CalendarTask[];+ visibleMonth: Date;+ projectSlug?: string;+ onOpenTask: (taskId: string) => void;+};++// Phone layout for the calendar: a seven-column month grid leaves bars a few+// characters wide, so small screens get a day-by-day list instead.+export default function MonthAgenda({+ tasks,+ visibleMonth,+ projectSlug,+ onOpenTask,+}: MonthAgendaProps): JSX.Element {+ const { t } = useTranslation();+ const agenda = useMemo(+ () => buildMonthAgenda(visibleMonth, tasks),+ [visibleMonth, tasks],+ );+ // Open at today (or the next scheduled day) rather than the 1st.+ const today = startOfToday();+ const anchorIndex = agenda.findIndex(({ day }) => !isBefore(day, today));+ const listRef = useRef<HTMLOListElement>(null);+ const anchorRef = useRef<HTMLLIElement>(null);+ // Re-anchor only when the month changes, not on every task edit.+ useLayoutEffect(() => {+ const list = listRef.current;+ const anchor = anchorRef.current;+ if (!list) return;+ list.scrollTop = anchor ? anchor.offsetTop : 0;+ }, [visibleMonth]);++ if (agenda.length === 0) {+ return (+ <div className="flex flex-1 items-center justify-center px-6 py-12">+ <p className="text-sm text-muted-foreground">+ {t("tasks:calendar.noTasksThisMonth")}+ </p>+ </div>+ );+ }++ return (+ <ol ref={listRef} className="relative min-h-0 flex-1 overflow-y-auto">+ {agenda.map(({ day, tasks: dayTasks }, index) => {+ const isCurrentDay = isToday(day);+ return (+ <li+ key={day.toISOString()}+ ref={index === anchorIndex ? anchorRef : undefined}+ className="border-b border-border/70"+ >+ <h3+ className={cn(+ "sticky top-0 z-10 flex items-baseline gap-2 bg-background/95 px-4 pt-3 pb-1.5 text-xs font-medium text-muted-foreground backdrop-blur",+ isCurrentDay && "text-foreground",+ )}+ >+ <span className="text-sm font-semibold tabular-nums">+ {formatDate(day, { day: "numeric" })}+ </span>+ <span>+ {isCurrentDay+ ? t("tasks:calendar.today")+ : formatDate(day, { weekday: "long" })}+ </span>+ </h3>+ <ul className="flex flex-col gap-1.5 px-3 pb-3">+ {dayTasks.map((task) => {+ const taskKey =+ projectSlug && task.number != null+ ? `${projectSlug}-${task.number}`+ : undefined;+ const range = `${formatDateShort(task.scheduleStart)} – ${formatDateShort(task.scheduleEnd)}`;+ return (+ <li key={task.id}>+ <button+ type="button"+ onClick={() => onOpenTask(task.id)}+ aria-label={t("tasks:calendar.taskAriaLabel", {+ title: task.title,+ range,+ })}+ data-task-status={task.status}+ className={cn(+ "flex min-h-11 w-full flex-col justify-center gap-0.5 rounded-md border px-3 py-2 text-left transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",+ getCalendarTaskStatusClass(task.status),+ )}+ >+ <span className="text-sm font-medium text-foreground">+ {task.title}+ </span>+ <span className="text-xs text-muted-foreground">+ {taskKey ? `${taskKey} · ${range}` : range}+ </span>+ </button>+ </li>+ );+ })}+ </ul>+ </li>+ );+ })}+ </ol>+ );+}diff --git a/apps/web/src/components/common/header/mobile-project-nav.tsx b/apps/web/src/components/common/header/mobile-project-nav.tsxindex 8c0f13d0d..7509b0877 100644--- a/apps/web/src/components/common/header/mobile-project-nav.tsx+++ b/apps/web/src/components/common/header/mobile-project-nav.tsx@@ -1,11 +1,14 @@+import type { LucideIcon } from "lucide-react";import {CalendarDays,CalendarRange,Check,- Menu,+ ChevronsUpDown,Plus,SquareKanban,+ SquircleDashed,} from "lucide-react";+import { useState } from "react";import { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import {@@ -17,10 +20,13 @@ import icons from "@/constants/project-icons";import useGetProjects from "@/hooks/queries/project/use-get-projects";import { cn } from "@/lib/cn";+type ProjectView = "backlog" | "board" | "calendar" | "gantt";+type MobileProjectNavProps = {workspaceId: string;projectId: string;- activeView: "backlog" | "board" | "calendar" | "gantt";+ projectName?: string;+ activeView: ProjectView;onSelectBoard: () => void;onSelectBacklog: () => void;onSelectCalendar: () => void;@@ -32,6 +38,7 @@ type MobileProjectNavProps = {export default function MobileProjectNav({workspaceId,projectId,+ projectName,activeView,onSelectBoard,onSelectBacklog,@@ -41,85 +48,97 @@ export default function MobileProjectNav({onAddProject,}: MobileProjectNavProps) {const { t } = useTranslation();+ const [open, setOpen] = useState(false);const { data: projects = [] } = useGetProjects({ workspaceId });+ const currentProject = projects?.find((project) => project.id === projectId);+ const CurrentIcon =+ icons[currentProject?.icon as keyof typeof icons] || icons.Layout;++ const views: {+ id: ProjectView;+ label: string;+ icon: LucideIcon;+ onSelect: () => void;+ }[] = [+ {+ id: "backlog",+ label: t("tasks:view.backlog"),+ icon: SquircleDashed,+ onSelect: onSelectBacklog,+ },+ {+ id: "board",+ label: t("tasks:title"),+ icon: SquareKanban,+ onSelect: onSelectBoard,+ },+ {+ id: "calendar",+ label: t("tasks:calendar.title"),+ icon: CalendarRange,+ onSelect: onSelectCalendar,+ },+ {+ id: "gantt",+ label: t("tasks:view.gantt"),+ icon: CalendarDays,+ onSelect: onSelectGantt,+ },+ ];++ const select = (action: () => void) => () => {+ setOpen(false);+ action();+ };return (- <Popover>+ <Popover open={open} onOpenChange={setOpen}><PopoverTriggerrender={<Buttonvariant="ghost"- size="icon-xs"- className="size-7 border border-transparent"+ size="sm"+ aria-label={t("navigation:projectList.switcherLabel")}+ className="h-8 min-w-0 max-w-full gap-1.5 px-2"/>}>- <Menu className="size-4" />+ <CurrentIcon className="size-4 shrink-0" />+ <span className="truncate font-medium text-sm">+ {projectName ?? currentProject?.name}+ </span>+ <ChevronsUpDown className="size-3.5 shrink-0 text-muted-foreground" /></PopoverTrigger><PopoverContent align="start" className="w-72 p-2"><div className="space-y-3"><div className="space-y-1"><p className="px-1 text-[11px] font-medium tracking-wide text-muted-foreground uppercase">- View+ {t("tasks:view.heading")}</p>- <div className="grid grid-cols-4 gap-1">- <button- type="button"- onClick={onSelectBacklog}- className={cn(- "flex w-full items-center justify-center gap-1 whitespace-nowrap rounded-md border px-2 py-1.5 text-xs font-medium transition-colors",- activeView === "backlog"- ? "border-border bg-secondary text-foreground"- : "border-transparent text-muted-foreground hover:bg-accent",- )}- >- Backlog- </button>- <button- type="button"- onClick={onSelectBoard}- className={cn(- "flex w-full items-center justify-center gap-1 whitespace-nowrap rounded-md border px-2 py-1.5 text-xs font-medium transition-colors",- activeView === "board"- ? "border-border bg-secondary text-foreground"- : "border-transparent text-muted-foreground hover:bg-accent",- )}- >- <SquareKanban className="size-3.5" />- Board- </button>- <button- type="button"- onClick={onSelectCalendar}- className={cn(- "flex w-full items-center justify-center gap-1 whitespace-nowrap rounded-md border px-2 py-1.5 text-xs font-medium transition-colors",- activeView === "calendar"- ? "border-border bg-secondary text-foreground"- : "border-transparent text-muted-foreground hover:bg-accent",- )}- >- <CalendarRange className="size-3.5" />- {t("tasks:calendar.title")}- </button>- <button- type="button"- onClick={onSelectGantt}- className={cn(- "flex w-full items-center justify-center gap-1 whitespace-nowrap rounded-md border px-2 py-1.5 text-xs font-medium transition-colors",- activeView === "gantt"- ? "border-border bg-secondary text-foreground"- : "border-transparent text-muted-foreground hover:bg-accent",- )}- >- <CalendarDays className="size-3.5" />- Gantt- </button>+ <div className="grid grid-cols-2 gap-1">+ {views.map(({ id, label, icon: Icon, onSelect }) => (+ <button+ key={id}+ type="button"+ onClick={select(onSelect)}+ aria-pressed={activeView === id}+ className={cn(+ "flex h-10 w-full items-center gap-2 rounded-md border px-2.5 text-sm font-medium transition-colors",+ activeView === id+ ? "border-border bg-secondary text-foreground"+ : "border-transparent text-muted-foreground hover:bg-accent",+ )}+ >+ <Icon className="size-4 shrink-0" />+ <span className="truncate">{label}</span>+ </button>+ ))}</div></div><div className="space-y-1"><p className="px-1 text-[11px] font-medium tracking-wide text-muted-foreground uppercase">- Projects+ {t("navigation:sidebar.projects")}</p><div className="max-h-56 space-y-0.5 overflow-y-auto">{(projects ?? []).map((project) => {@@ -131,17 +150,17 @@ export default function MobileProjectNav({<buttonkey={project.id}type="button"- onClick={() => onSelectProject(project.id)}+ onClick={select(() => onSelectProject(project.id))}className={cn(- "flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm transition-colors",+ "flex h-10 w-full items-center gap-2 rounded-md px-2.5 text-left text-sm transition-colors",isCurrentProject? "bg-accent text-foreground": "text-muted-foreground hover:bg-accent hover:text-foreground",)}>- <Icon className="size-3.5" />+ <Icon className="size-4 shrink-0" /><span className="flex-1 truncate">{project.name}</span>- {isCurrentProject && <Check className="size-3.5" />}+ {isCurrentProject && <Check className="size-4" />}</button>);})}@@ -150,11 +169,11 @@ export default function MobileProjectNav({<buttontype="button"- onClick={onAddProject}- className="flex w-full items-center gap-2 rounded-md border border-border px-2 py-1.5 text-left text-sm text-foreground transition-colors hover:bg-accent"+ onClick={select(onAddProject)}+ className="flex h-10 w-full items-center gap-2 rounded-md border border-border px-2.5 text-left text-sm text-foreground transition-colors hover:bg-accent">- <Plus className="size-3.5" />- Add project+ <Plus className="size-4" />+ {t("navigation:projectList.addProject")}</button></div></PopoverContent>diff --git a/apps/web/src/components/common/project-layout.tsx b/apps/web/src/components/common/project-layout.tsxindex 6a61456f5..f214debf4 100644--- a/apps/web/src/components/common/project-layout.tsx+++ b/apps/web/src/components/common/project-layout.tsx@@ -131,7 +131,7 @@ export default function ProjectLayout({</TooltipTrigger><TooltipContent><p className="flex items-center gap-2 text-[10px]">- Toggle sidebar+ {t("navigation:settingsLayout.toggleSidebar")}<KbdSequencekeys={[shortcuts.sidebar.prefix,@@ -157,10 +157,11 @@ export default function ProjectLayout({/></div>- <div className="md:hidden">+ <div className="min-w-0 md:hidden"><MobileProjectNavworkspaceId={workspaceId}projectId={projectId}+ projectName={project?.name}activeView={resolvedView}onSelectBacklog={handleNavigateToBacklog}onSelectBoard={handleNavigateToBoard}@@ -183,7 +184,7 @@ export default function ProjectLayout({)}><SquircleDashed className="size-3.5" />- Backlog+ {t("tasks:view.backlog")}</Button><Buttonvariant={resolvedView === "board" ? "secondary" : "ghost"}@@ -219,7 +220,7 @@ export default function ProjectLayout({)}><CalendarDays className="size-3.5" />- Gantt+ {t("tasks:view.gantt")}</Button></div>)}diff --git a/apps/web/src/components/common/workspace-layout.tsx b/apps/web/src/components/common/workspace-layout.tsxindex db0e9d827..a7998e694 100644--- a/apps/web/src/components/common/workspace-layout.tsx+++ b/apps/web/src/components/common/workspace-layout.tsx@@ -1,4 +1,5 @@import type { ReactNode } from "react";+import { useTranslation } from "react-i18next";import Layout from "@/components/common/layout";import {Breadcrumb,@@ -33,13 +34,14 @@ export default function WorkspaceLayout({children,className,}: WorkspaceLayoutProps) {+ const { t } = useTranslation();const { data: workspace } = useActiveWorkspace();return (<Layout><Layout.Header>- <div className="flex items-center justify-between w-full">- <div className="flex items-center gap-1 w-full">+ <div className="flex w-full items-center justify-between gap-2">+ <div className="flex min-w-0 flex-1 items-center gap-1"><TooltipProvider><Tooltip><TooltipTrigger asChild>@@ -47,7 +49,7 @@ export default function WorkspaceLayout({</TooltipTrigger><TooltipContent><p className="flex items-center gap-2 text-[10px]">- Toggle sidebar+ {t("navigation:settingsLayout.toggleSidebar")}<KbdSequencekeys={[shortcuts.sidebar.prefix,@@ -59,25 +61,30 @@ export default function WorkspaceLayout({</Tooltip></TooltipProvider><div className="mx-1.5 h-4 w-px shrink-0 bg-border/80" />- <Breadcrumb className="flex items-center gap-1 text-xs w-full">- <BreadcrumbList>- <BreadcrumbItem>- <BreadcrumbLink href="/">- <span className="text-xs font-normal text-card-foreground">- {workspace?.name}- </span>- </BreadcrumbLink>- </BreadcrumbItem>- <BreadcrumbSeparator />- <BreadcrumbItem>- <span className="text-xs font-normal text-card-foreground">+ <Breadcrumb className="flex min-w-0 items-center gap-1 text-xs">+ <BreadcrumbList className="min-w-0 flex-nowrap">+ {workspace?.name && (+ <>+ {/* The page title alone identifies the page on phones. */}+ <BreadcrumbItem className="hidden min-w-0 sm:inline-flex">+ <BreadcrumbLink href="/" className="min-w-0 truncate">+ <span className="text-xs font-normal text-card-foreground">+ {workspace.name}+ </span>+ </BreadcrumbLink>+ </BreadcrumbItem>+ <BreadcrumbSeparator className="hidden sm:block" />+ </>+ )}+ <BreadcrumbItem className="min-w-0">+ <span className="truncate text-xs font-normal text-card-foreground">{title}</span></BreadcrumbItem></BreadcrumbList></Breadcrumb></div>- <div className={`${cn("flex items-center gap-1.5", className)}`}>+ <div className={cn("flex shrink-0 items-center gap-1.5", className)}>{headerActions}</div></div>diff --git a/apps/web/src/components/external-links/external-links-accordion.tsx b/apps/web/src/components/external-links/external-links-accordion.tsxindex 928acd2d5..928e5793e 100644--- a/apps/web/src/components/external-links/external-links-accordion.tsx+++ b/apps/web/src/components/external-links/external-links-accordion.tsx@@ -199,12 +199,13 @@ export function ExternalLinksAccordion({<Buttontype="button"variant="ghost"- size="sm"- className="gap-1 h-8"+ size="xs"+ className="text-muted-foreground"+ aria-label={t("settings:externalLinks.addResource")}+ title={t("settings:externalLinks.addResource")}onClick={() => setIsDialogOpen(true)}>- <Plus className="size-4" />- {t("settings:externalLinks.addResource")}+ <Plus className="size-3.5" /></Button>)}</div>diff --git a/apps/web/src/components/gantt/gantt-task-bar.tsx b/apps/web/src/components/gantt/gantt-task-bar.tsxindex dc5e03fd0..6ffb3b02c 100644--- a/apps/web/src/components/gantt/gantt-task-bar.tsx+++ b/apps/web/src/components/gantt/gantt-task-bar.tsx@@ -8,6 +8,11 @@ import type Task from "@/types/task";const CLICK_MOVE_THRESHOLD_PX = 4;const MOBILE_MOVE_THRESHOLD_PX = 14;+const MIN_INLINE_LABEL_PX = 120;+// Below this width a phone bar can't fit two 24px resize handles plus a+// usable move/tap area, so it's left as one target; dates stay editable from+// the task sheet.+const MIN_TOUCH_RESIZABLE_PX = 120;type ScheduledTask = Task & {scheduleStart: Date;@@ -290,6 +295,13 @@ export function GanttTaskBar({return null;}+ // Short bars on phones leave no room for the title inside them, so it's+ // drawn just after the bar instead (when the timeline has room for it).+ const barWidthPx = (lineEnd - lineStart) * pxPerDay;+ const labelOutside =+ isMobile && barWidthPx < MIN_INLINE_LABEL_PX && lineEnd <= trackCount;+ const showResizeHandles = !isMobile || barWidthPx >= MIN_TOUCH_RESIZABLE_PX;+return (<divclassName="pointer-events-none absolute inset-0 z-[1] grid items-center"@@ -301,17 +313,19 @@ export function GanttTaskBar({style={{ gridColumn: `${lineStart} / ${lineEnd}` }}className="group pointer-events-auto relative mx-1 flex min-h-[44px] min-w-0 items-stretch overflow-hidden rounded-md border border-primary/25 bg-background text-left text-sm font-medium leading-none text-foreground shadow-sm transition-colors hover:border-primary/40 sm:h-11 sm:min-h-0">- <button- type="button"- aria-label={t("tasks:gantt.resizeStart")}- disabled={!startIsVisible}- onPointerDown={handleResizeLeftPointerDown}- className={cn(- "relative z-20 shrink-0 cursor-ew-resize touch-none border-r border-primary/15 bg-primary/8 hover:bg-primary/18",- "min-h-[44px] min-w-[44px] sm:min-h-0 sm:min-w-0 sm:w-2",- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",- )}- />+ {showResizeHandles && (+ <button+ type="button"+ aria-label={t("tasks:gantt.resizeStart")}+ disabled={!startIsVisible}+ onPointerDown={handleResizeLeftPointerDown}+ className={cn(+ "relative z-20 shrink-0 cursor-ew-resize touch-none border-r border-primary/15 bg-primary/8 hover:bg-primary/18",+ "min-h-[44px] w-6 sm:min-h-0 sm:w-2",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",+ )}+ />+ )}<buttontype="button"aria-label={t("tasks:gantt.taskAriaLabel", { title: task.title })}@@ -325,20 +339,38 @@ export function GanttTaskBar({}}><div className="absolute inset-0 z-0 bg-primary/12 transition-colors group-hover:bg-primary/18" />- <span className="relative z-10 block truncate">{task.title}</span>+ <span+ className={cn(+ "relative z-10 block truncate",+ labelOutside && "sr-only",+ )}+ >+ {task.title}+ </span></button>- <button- type="button"- aria-label={t("tasks:gantt.resizeDue")}- disabled={!endIsVisible}- onPointerDown={handleResizeRightPointerDown}- className={cn(- "relative z-20 shrink-0 cursor-ew-resize touch-none border-l border-primary/15 bg-primary/8 hover:bg-primary/18",- "min-h-[44px] min-w-[44px] sm:min-h-0 sm:min-w-0 sm:w-2",- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",- )}- />+ {showResizeHandles && (+ <button+ type="button"+ aria-label={t("tasks:gantt.resizeDue")}+ disabled={!endIsVisible}+ onPointerDown={handleResizeRightPointerDown}+ className={cn(+ "relative z-20 shrink-0 cursor-ew-resize touch-none border-l border-primary/15 bg-primary/8 hover:bg-primary/18",+ "min-h-[44px] w-6 sm:min-h-0 sm:w-2",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",+ )}+ />+ )}</div>+ {labelOutside && (+ <span+ aria-hidden="true"+ style={{ gridColumn: `${lineEnd} / ${trackCount + 1}` }}+ className="min-w-0 truncate pl-1 text-xs font-medium text-foreground/80"+ >+ {task.title}+ </span>+ )}</div>);}diff --git a/apps/web/src/components/home/activity-feed-item.tsx b/apps/web/src/components/home/activity-feed-item.tsxindex 0c77708eb..a56e8139f 100644--- a/apps/web/src/components/home/activity-feed-item.tsx+++ b/apps/web/src/components/home/activity-feed-item.tsx@@ -38,7 +38,7 @@ export function ActivityFeedItem({{describeActivity(activity, t)}</p>{activity.type === "comment" && activity.excerpt && (- <p className="line-clamp-3 rounded-lg bg-muted/70 px-2.5 py-2 text-[13px] text-foreground/85 leading-[18px]">+ <p className="line-clamp-3 wrap-break-word rounded-lg bg-muted/70 px-2.5 py-2 text-[13px] text-foreground/85 leading-[18px]">{activity.excerpt}</p>)}diff --git a/apps/web/src/components/home/week-strip.tsx b/apps/web/src/components/home/week-strip.tsxindex 29038b2cf..7eca25e54 100644--- a/apps/web/src/components/home/week-strip.tsx+++ b/apps/web/src/components/home/week-strip.tsx@@ -1,5 +1,5 @@import { Link } from "@tanstack/react-router";-import { useMemo } from "react";+import { useLayoutEffect, useMemo, useRef } from "react";import { useTranslation } from "react-i18next";import type { AssignedTask } from "@/fetchers/task/get-assigned-tasks";import { useLocalDay } from "@/hooks/use-local-day";@@ -18,13 +18,29 @@ export function WeekStrip({ tasks, workspaceId }: WeekStripProps) {const { t } = useTranslation();const day = useLocalDay();const week = useMemo(() => buildWeek(tasks, new Date(day)), [tasks, day]);+ const scrollerRef = useRef<HTMLDivElement>(null);+ const todayRef = useRef<HTMLLIElement>(null);++ // On narrow screens the strip scrolls; open it centred on today rather than+ // on the oldest past day.+ useLayoutEffect(() => {+ const scroller = scrollerRef.current;+ const today = todayRef.current;+ if (!scroller || !today) return;+ scroller.scrollLeft =+ today.offsetLeft - (scroller.clientWidth - today.offsetWidth) / 2;+ }, [day]);return (- <div className="overflow-x-auto rounded-xl border border-border bg-card">+ <div+ ref={scrollerRef}+ className="relative overflow-x-auto rounded-xl border border-border bg-card"+ ><ol className="flex min-w-[46rem] divide-x divide-border/70">{week.map((day) => (<likey={day.date.toISOString()}+ ref={day.isToday ? todayRef : undefined}className={cn("flex min-h-28 min-w-0 flex-1 flex-col gap-2.5 px-3 py-3",day.isToday && "bg-muted/50",diff --git a/apps/web/src/components/kanban-board/index.tsx b/apps/web/src/components/kanban-board/index.tsxindex 89a41da05..fbc3a21e8 100644--- a/apps/web/src/components/kanban-board/index.tsx+++ b/apps/web/src/components/kanban-board/index.tsx@@ -279,7 +279,7 @@ function KanbanBoard({{[0, 1, 2, 3].map((i) => (<divkey={`kanban-column-skeleton-${i}`}- className="h-full min-w-80 w-full flex-1 rounded-xl border border-border/70 bg-card"+ className="h-full min-w-[min(20rem,calc(100vw-4.5rem))] w-full flex-1 rounded-xl border border-border/70 bg-card"><div className="px-4 py-3 flex items-center justify-between"><div className="w-24 h-5 bg-muted/50 rounded animate-pulse" />@@ -327,14 +327,24 @@ function KanbanBoard({"bg-linear-to-b from-muted/20 to-background": !background,})}>- <div className="min-h-0 flex-1 overflow-x-auto [-webkit-overflow-scrolling:touch]">+ <div+ className={cn(+ "min-h-0 flex-1 scroll-px-4 overflow-x-auto [-webkit-overflow-scrolling:touch]",+ // Snap whole columns into view on phones; off while dragging so it+ // doesn't fight dnd-kit's auto-scroll.+ activeId === null && "snap-x snap-mandatory sm:snap-none",+ )}+ ><div className="flex h-full min-w-max gap-4 px-4 py-4 md:px-5">{(dragPreview.preview ?? project).columns.map((column) => (<divkey={column.id}- className={cn("h-full max-w-96 min-w-80 shrink-0 flex-1", {- "h-fit": !!background,- })}+ className={cn(+ "h-full max-w-96 min-w-[min(20rem,calc(100vw-4.5rem))] shrink-0 flex-1 snap-start",+ {+ "h-fit": !!background,+ },+ )}><Columncolumn={column}diff --git a/apps/web/src/components/list-view/index.tsx b/apps/web/src/components/list-view/index.tsxindex 0ae99d528..17c15dcc8 100644--- a/apps/web/src/components/list-view/index.tsx+++ b/apps/web/src/components/list-view/index.tsx@@ -317,7 +317,8 @@ function ListView({<buttontype="button"onClick={() => toggleSection(column.id)}- className="flex items-center gap-2 text-sm font-medium text-foreground hover:text-foreground transition-colors"+ aria-expanded={Boolean(expandedSections[column.id])}+ className="touch-hitbox relative flex items-center gap-2 text-sm font-medium text-foreground hover:text-foreground transition-colors"><ChevronRightclassName={cn(@@ -336,15 +337,16 @@ function ListView({</div></button>- <div className="flex items-center gap-1">+ <div className="flex items-center gap-1 pointer-coarse:gap-6"><buttontype="button"onClick={() => {setIsTaskModalOpen(true);setActiveColumn(column.id);}}- className="p-1 hover:bg-accent rounded text-muted-foreground hover:text-foreground transition-colors"+ className="touch-hitbox relative p-1 hover:bg-accent rounded text-muted-foreground hover:text-foreground transition-colors"title={t("tasks:listView.addTask")}+ aria-label={t("tasks:listView.addTask")}><Plus className="w-3 h-3" /></button>@@ -354,8 +356,9 @@ function ListView({type="button"disabled={disableCollectionActions}onClick={() => handleArchiveClick(column)}- className="p-1 hover:bg-accent rounded text-muted-foreground hover:text-foreground transition-colors"+ className="touch-hitbox relative p-1 hover:bg-accent rounded text-muted-foreground hover:text-foreground transition-colors"title={t("tasks:listView.archiveAllTooltip")}+ aria-label={t("tasks:listView.archiveAllTooltip")}><Archive className="w-3 h-3" /></button>diff --git a/apps/web/src/components/my-work/assigned-task-row.tsx b/apps/web/src/components/my-work/assigned-task-row.tsxindex 0092b1727..d419c670b 100644--- a/apps/web/src/components/my-work/assigned-task-row.tsx+++ b/apps/web/src/components/my-work/assigned-task-row.tsx@@ -21,7 +21,7 @@ export function AssignedTaskRow({<Linkto="/dashboard/workspace/$workspaceId/project/$projectId/task/$taskId"params={{ workspaceId, projectId: task.projectId, taskId: task.id }}- className="flex h-11 items-center gap-3 border-border/50 border-b px-1 outline-none transition-colors hover:bg-accent/50 focus-visible:bg-accent/50"+ className="flex h-11 items-center gap-2.5 border-border/50 border-b px-1 outline-none transition-colors hover:bg-accent/50 focus-visible:bg-accent/50"><span className="flex w-4 shrink-0 justify-center [&_svg]:size-3.5">{getPriorityIcon(task.priority)}@@ -32,7 +32,7 @@ export function AssignedTaskRow({>{getColumnIcon(task.status, false, task.statusIcon)}</span>- <span className="w-16 shrink-0 truncate font-medium text-muted-foreground text-xs">+ <span className="hidden w-16 shrink-0 truncate font-medium text-muted-foreground text-xs sm:block">{task.number == null? task.projectSlug: `${task.projectSlug}-${task.number}`}@@ -62,7 +62,7 @@ export function AssignedTaskRow({</span><DueDateTextdueDate={task.dueDate}- className="w-20 shrink-0 text-right"+ className="shrink-0 text-right sm:w-20"/></Link>);diff --git a/apps/web/src/components/onboarding/onboarding-flow.tsx b/apps/web/src/components/onboarding/onboarding-flow.tsxindex d66029ec2..718b37349 100644--- a/apps/web/src/components/onboarding/onboarding-flow.tsx+++ b/apps/web/src/components/onboarding/onboarding-flow.tsx@@ -372,7 +372,7 @@ export function OnboardingFlow() {return (<><PageTitle title={t("auth:onboarding.workspacePageTitle")} />- <div className="min-h-screen w-full bg-background flex flex-col items-center justify-center p-4">+ <div className="min-h-svh w-full bg-background flex flex-col items-center justify-center p-4">{/* The role refresh is a network round-trip that every visit makes,so without this the screen is blank for the length of it. It sitsoutside the AnimatePresence deliberately: as a child of it, itsdiff --git a/apps/web/src/components/profile-setup/profile-setup-flow.tsx b/apps/web/src/components/profile-setup/profile-setup-flow.tsxindex c94bd0520..b78182a3b 100644--- a/apps/web/src/components/profile-setup/profile-setup-flow.tsx+++ b/apps/web/src/components/profile-setup/profile-setup-flow.tsx@@ -181,7 +181,7 @@ export function ProfileSetupFlow() {return (<><PageTitle title={t("auth:profileSetup.pageTitle")} />- <div className="min-h-screen w-full bg-background flex flex-col items-center justify-center p-4">+ <div className="min-h-svh w-full bg-background flex flex-col items-center justify-center p-4"><AnimatePresence mode="wait">{step === "profile" && renderProfileStep()}{step === "success" && renderSuccessStep()}diff --git a/apps/web/src/components/project/column-editor.tsx b/apps/web/src/components/project/column-editor.tsxindex 3d41e3ec4..109678837 100644--- a/apps/web/src/components/project/column-editor.tsx+++ b/apps/web/src/components/project/column-editor.tsx@@ -215,7 +215,7 @@ export default function ColumnEditor({ projectId }: ColumnEditorProps) {onDragStart={(e) => handleDragStart(e, index)}onDragOver={(e) => handleDragOver(e, index)}onDragEnd={handleDragEnd}- className="flex items-center gap-2 p-2 border border-border rounded-md bg-sidebar hover:bg-sidebar-accent/50 transition-colors"+ className="flex flex-wrap items-center gap-2 p-2 border border-border rounded-md bg-sidebar hover:bg-sidebar-accent/50 transition-colors"><GripVertical className="w-4 h-4 text-muted-foreground cursor-grab shrink-0" /><Popover@@ -246,7 +246,7 @@ export default function ColumnEditor({ projectId }: ColumnEditorProps) {placeholder={t("settings:columnEditor.searchIconsPlaceholder",)}- className="h-8 text-xs"+ className="h-8 text-base sm:text-xs"/><div className="max-h-[280px] overflow-y-auto pr-1"><div className="grid grid-cols-6 gap-1.5">@@ -282,7 +282,10 @@ export default function ColumnEditor({ projectId }: ColumnEditorProps) {</Popover><InputdefaultValue={col.name}- className="h-8 text-sm flex-1"+ aria-label={t("settings:columnEditor.renameAria", {+ name: col.name,+ })}+ className="h-8 min-w-0 flex-1 basis-40 text-base sm:text-sm"disabled={!canEdit}onBlur={(e) => {if (e.target.value !== col.name) {@@ -296,7 +299,7 @@ export default function ColumnEditor({ projectId }: ColumnEditorProps) {}}}/>- <div className="flex items-center gap-1.5 shrink-0">+ <div className="ml-auto flex items-center gap-1.5 shrink-0"><divclassName="flex items-center gap-2"title={t("settings:columnEditor.doneColumnTooltip")}@@ -333,6 +336,9 @@ export default function ColumnEditor({ projectId }: ColumnEditorProps) {variant="ghost"size="sm"className="h-7 w-7 p-0 text-muted-foreground hover:text-destructive"+ aria-label={t("settings:columnEditor.deleteAria", {+ name: col.name,+ })}onClick={() => handleDelete(col.id)}><Trash2 className="w-3.5 h-3.5" />@@ -372,7 +378,7 @@ export default function ColumnEditor({ projectId }: ColumnEditorProps) {placeholder={t("settings:columnEditor.searchIconsPlaceholder",)}- className="h-8 text-xs"+ className="h-8 text-base sm:text-xs"/><div className="max-h-[280px] overflow-y-auto pr-1"><div className="grid grid-cols-6 gap-1.5">@@ -409,7 +415,7 @@ export default function ColumnEditor({ projectId }: ColumnEditorProps) {placeholder={t("settings:columnEditor.newColumnPlaceholder")}value={newColumnName}onChange={(e) => setNewColumnName(e.target.value)}- className="h-8 text-sm flex-1"+ className="h-8 text-base sm:text-sm flex-1"onKeyDown={(e) => {if (e.key === "Enter") handleCreate();}}diff --git a/apps/web/src/components/project/custom-field-editor.tsx b/apps/web/src/components/project/custom-field-editor.tsxindex 1de97dc1b..6e0327c0d 100644--- a/apps/web/src/components/project/custom-field-editor.tsx+++ b/apps/web/src/components/project/custom-field-editor.tsx@@ -617,7 +617,7 @@ export default function CustomFieldEditor({value={optionsText}onChange={(e) => setOptionsText(e.target.value)}placeholder={t("settings:customFields.optionsPlaceholder")}- className="h-8 text-sm w-48 flex-[2_0_0]"+ className="h-8 text-base sm:text-sm w-48 flex-[2_0_0]"/>)}@@ -913,7 +913,7 @@ export default function CustomFieldEditor({type="number"onChange={(e) => setDefaultValue(e.target.value)}placeholder={t("settings:customFields.defaultValuePlaceholder")}- className="h-8 text-sm w-48 flex-[2_0_0]"+ className="h-8 text-base sm:text-sm w-48 flex-[2_0_0]"/>) : (type !== "date" && (@@ -921,7 +921,7 @@ export default function CustomFieldEditor({value={defaultValue}onChange={(e) => setDefaultValue(e.target.value)}placeholder={t("settings:customFields.defaultValuePlaceholder")}- className="h-8 text-sm w-48 flex-[2_0_0]"+ className="h-8 text-base sm:text-sm w-48 flex-[2_0_0]"/>))}diff --git a/apps/web/src/components/public-project/error-view.tsx b/apps/web/src/components/public-project/error-view.tsxindex 05fcdff38..5a6c08b74 100644--- a/apps/web/src/components/public-project/error-view.tsx+++ b/apps/web/src/components/public-project/error-view.tsx@@ -5,8 +5,8 @@ import { KaneoBranding } from "./kaneo-branding";export function ErrorView() {const { t } = useTranslation();return (- <div className="min-h-screen bg-background flex flex-col w-full">- <div className="flex-1 flex items-center justify-center">+ <div className="min-h-svh bg-background flex flex-col w-full">+ <div className="flex-1 flex items-center justify-center px-6"><div className="text-center space-y-6"><div className="mx-auto flex h-20 w-20 items-center justify-center rounded-full bg-destructive/12"><ExternalLink className="h-10 w-10 text-destructive-foreground" />diff --git a/apps/web/src/components/public-project/loading-skeleton.tsx b/apps/web/src/components/public-project/loading-skeleton.tsxindex 9e26d1fc5..c2ead22a4 100644--- a/apps/web/src/components/public-project/loading-skeleton.tsx+++ b/apps/web/src/components/public-project/loading-skeleton.tsx@@ -1,6 +1,6 @@export function LoadingSkeleton() {return (- <div className="min-h-screen bg-background flex flex-col w-full">+ <div className="min-h-svh bg-background flex flex-col w-full"><div className="flex-1 flex items-center justify-center"><div className="container mx-auto px-4 py-8"><div className="animate-pulse space-y-8 max-w-6xl mx-auto">diff --git a/apps/web/src/components/shared/modals/create-project-modal.tsx b/apps/web/src/components/shared/modals/create-project-modal.tsxindex 5aece88ed..f2c77be9f 100644--- a/apps/web/src/components/shared/modals/create-project-modal.tsx+++ b/apps/web/src/components/shared/modals/create-project-modal.tsx@@ -150,7 +150,7 @@ function CreateProjectModal({ open, onClose }: CreateProjectModalProps) {value={iconSearch}onChange={(e) => setIconSearch(e.target.value)}placeholder={t("common:modals.createProject.searchIcons")}- className="h-8 text-xs"+ className="h-8 text-base sm:text-xs"/><div className="max-h-[280px] overflow-y-auto pr-1"><div className="grid grid-cols-6 gap-1.5">@@ -207,7 +207,7 @@ function CreateProjectModal({ open, onClose }: CreateProjectModalProps) {onChange={(e) => setSlug(e.target.value)}placeholder="PRO"maxLength={8}- className="w-20 h-8 text-center font-semibold text-sm bg-background border-border rounded-lg transition-colors duration-150"+ className="w-20 h-8 text-center font-semibold text-base sm:text-sm bg-background border-border rounded-lg transition-colors duration-150"required/></div>diff --git a/apps/web/src/components/shared/modals/create-task-modal.tsx b/apps/web/src/components/shared/modals/create-task-modal.tsxindex c12f96e64..a37f3d6ab 100644--- a/apps/web/src/components/shared/modals/create-task-modal.tsx+++ b/apps/web/src/components/shared/modals/create-task-modal.tsx@@ -94,6 +94,8 @@ import { getInitials } from "@/lib/get-initials";import { resolveLabelColor } from "@/lib/label-color";import { getPriorityIcon } from "@/lib/priority";import { toast } from "@/lib/toast";+import { useAutoGrowTextarea } from "@/hooks/use-auto-grow-textarea";+import { stripLineBreaks } from "@/lib/strip-line-breaks";import useProjectStore from "@/store/project";import type Task from "@/types/task";import { getInitialTaskColumn } from "./initial-task-column";@@ -248,6 +250,7 @@ function CreateTaskModalContent({const canCreateLabelCapability = canCreateLabels();const [title, setTitle] = useState("");+ const titleRef = useAutoGrowTextarea(title);const [description, setDescription] = useState("");const [priority, setPriority] = useState<Priority>("no-priority");const [assigneeId, setAssigneeId] = useState("");@@ -780,7 +783,7 @@ function CreateTaskModalContent({value={value}onChange={(e) => handleCustomFieldChange(field.id, e.target.value)}required={field.required}- className="h-9 w-full text-sm bg-background"+ className="h-9 w-full text-base sm:text-sm bg-background"/>);@@ -792,7 +795,7 @@ function CreateTaskModalContent({onChange={(e) => handleCustomFieldChange(field.id, e.target.value)}placeholder={field.defaultValue || ""}required={field.required}- className="h-9 w-full text-sm bg-background"+ className="h-9 w-full text-base sm:text-sm bg-background"/>);@@ -970,7 +973,7 @@ function CreateTaskModalContent({onChange={(e) => handleCustomFieldChange(field.id, e.target.value)}placeholder={field.defaultValue || ""}required={field.required}- className="h-9 w-full text-sm bg-background"+ className="h-9 w-full text-base sm:text-sm bg-background"/>);}@@ -1012,13 +1015,22 @@ function CreateTaskModalContent({className="flex flex-col flex-1 min-h-0 space-y-6"><div className="flex-1 min-h-0 overflow-y-auto space-y-6 px-6">- <Input- unstyled+ <textarea+ ref={titleRef}+ rows={1}value={title}- onChange={(e) => setTitle(e.target.value)}+ onChange={(e) => setTitle(stripLineBreaks(e.target.value))}+ onKeyDown={(e) => {+ // Single-line title: Enter submits like the input it replaced.+ if (e.key === "Enter" && !e.nativeEvent.isComposing) {+ e.preventDefault();+ e.currentTarget.form?.requestSubmit();+ }+ }}autoFocusplaceholder={t("common:modals.createTask.taskTitlePlaceholder")}- className="w-full [&_[data-slot=input]]:h-auto [&_[data-slot=input]]:px-0 [&_[data-slot=input]]:py-3 [&_[data-slot=input]]:text-2xl [&_[data-slot=input]]:leading-tight [&_[data-slot=input]]:font-semibold [&_[data-slot=input]]:tracking-tight [&_[data-slot=input]]:text-foreground [&_[data-slot=input]]:placeholder:text-muted-foreground [&_[data-slot=input]]:outline-none"+ aria-label={t("common:modals.createTask.taskTitlePlaceholder")}+ className="block w-full resize-none overflow-hidden border-0 bg-transparent px-0 py-3 font-semibold text-2xl text-foreground leading-tight tracking-tight outline-none placeholder:text-muted-foreground"required/>@@ -1408,7 +1420,7 @@ function CreateTaskModalContent({placeholder={t("common:modals.createTask.searchLabels",)}- className="w-full bg-transparent border-none text-foreground text-xs focus:outline-none placeholder:text-muted-foreground"+ className="w-full bg-transparent border-none text-foreground text-base focus:outline-none placeholder:text-muted-foreground sm:text-xs"/></div>diff --git a/apps/web/src/components/task/task-details-content.tsx b/apps/web/src/components/task/task-details-content.tsxindex a74cc78ec..88468086f 100644--- a/apps/web/src/components/task/task-details-content.tsx+++ b/apps/web/src/components/task/task-details-content.tsx@@ -51,7 +51,6 @@ import useGetActivitiesByTaskId from "@/hooks/queries/activity/use-get-activitieimport useGetCustomFieldValuesByTask from "@/hooks/queries/custom-field/use-get-custom-field-values-by-task";import useGetCustomFieldsByProject from "@/hooks/queries/custom-field/use-get-custom-fields-by-project";import useExternalLinks from "@/hooks/queries/external-link/use-external-links";-import useGetProject from "@/hooks/queries/project/use-get-project";import useGetTask from "@/hooks/queries/task/use-get-task";import useGetTaskRelations from "@/hooks/queries/task-relation/use-get-task-relations";import { useWorkspacePermission } from "@/hooks/use-workspace-permission";@@ -116,7 +115,6 @@ export default function TaskDetailsContent({const { t } = useTranslation();const navigate = useNavigate();const { data: task } = useGetTask(taskId ?? "");- const { data: project } = useGetProject({ id: projectId, workspaceId });const { data: activities = [] } = useGetActivitiesByTaskId(taskId ?? "");const { data: externalLinks = [], isLoading: isLoadingExternalLinks } =useExternalLinks(taskId ?? "");@@ -237,10 +235,6 @@ export default function TaskDetailsContent({</button>)}- <p className="text-xs font-semibold text-foreground/70">- {project?.slug}-{task?.number}- </p>-<TaskTitle taskId={taskId} /><TaskDescription taskId={taskId} /></div>diff --git a/apps/web/src/components/task/task-details-sheet.tsx b/apps/web/src/components/task/task-details-sheet.tsxindex 41750bf1b..195fedf28 100644--- a/apps/web/src/components/task/task-details-sheet.tsx+++ b/apps/web/src/components/task/task-details-sheet.tsx@@ -1,6 +1,6 @@import { useNavigate } from "@tanstack/react-router";import { Maximize2, X } from "lucide-react";-import { useCallback, useEffect, useState } from "react";+import { useCallback, useEffect, useRef, useState } from "react";import { useTranslation } from "react-i18next";import { AlertDialogCreateHandle } from "@/components/ui/alert-dialog";import { Button } from "@/components/ui/button";@@ -53,6 +53,8 @@ export default function TaskDetailsSheet({}}, [taskId]);+ const closeButtonRef = useRef<HTMLButtonElement>(null);+const handleOpenFullPage = useCallback(() => {if (!currentTaskId) return;navigate({@@ -70,6 +72,9 @@ export default function TaskDetailsSheet({<SheetContentside="right"className="w-full max-w-full sm:max-w-lg md:max-w-2xl lg:max-w-4xl p-0 gap-0 [&>button]:hidden"+ // Focusing the first control would pop the "open in full page"+ // tooltip over the actions every time the sheet opens on touch.+ initialFocus={closeButtonRef}><div className="flex items-center justify-between px-4 py-2.5 border-b border-border bg-background shrink-0"><div className="flex items-center gap-2">@@ -85,6 +90,7 @@ export default function TaskDetailsSheet({variant="ghost"size="sm"onClick={handleOpenFullPage}+ aria-label={t("tasks:detail.openInFullPage")}className="text-foreground"><Maximize2 className="size-4" />@@ -96,9 +102,11 @@ export default function TaskDetailsSheet({</Tooltip></TooltipProvider><Button+ ref={closeButtonRef}variant="ghost"size="sm"onClick={onClose}+ aria-label={t("common:actions.close")}className="text-foreground"><X className="size-4" />@@ -115,20 +123,22 @@ export default function TaskDetailsSheet({/>)}<div- className="flex flex-col flex-1 min-h-0 overflow-hidden"+ // Phones scroll properties and content together so the property+ // block doesn't pin a quarter of the screen.+ className="flex flex-col flex-1 min-h-0 overflow-y-auto sm:overflow-hidden"key={currentTaskId}><TaskPropertiesSidebartaskId={currentTaskId}projectId={projectId}workspaceId={workspaceId}- className="w-full bg-sidebar border-b border-border flex flex-col gap-0 overflow-y-auto shrink-0"+ className="w-full bg-sidebar border-b border-border flex flex-col gap-0 shrink-0 sm:overflow-y-auto"compact={true}deleteHandle={deleteHandle}shortcutsEnabled={Boolean(taskId)}/>- <div className="flex-1 overflow-y-auto min-h-0">+ <div className="sm:flex-1 sm:overflow-y-auto sm:min-h-0"><div className="px-4 py-4"><TaskDetailsContenttaskId={currentTaskId}diff --git a/apps/web/src/components/task/task-properties-sidebar.tsx b/apps/web/src/components/task/task-properties-sidebar.tsxindex 275c8deaa..5d9770658 100644--- a/apps/web/src/components/task/task-properties-sidebar.tsx+++ b/apps/web/src/components/task/task-properties-sidebar.tsx@@ -648,6 +648,7 @@ export default function TaskPropertiesSidebar({<Buttonvariant="ghost"size="sm"+ aria-label={t("tasks:popover.labels.editLabels")}className="h-5 w-5 p-0 rounded-full"><Plus className="h-3 w-3" />diff --git a/apps/web/src/components/task/task-title.tsx b/apps/web/src/components/task/task-title.tsxindex 735c48161..daf6205af 100644--- a/apps/web/src/components/task/task-title.tsx+++ b/apps/web/src/components/task/task-title.tsx@@ -5,8 +5,10 @@ import { useTranslation } from "react-i18next";import { Form, FormField } from "@/components/ui/form";import { useUpdateTaskTitle } from "@/hooks/mutations/task/use-update-task-title";import useGetTask from "@/hooks/queries/task/use-get-task";+import { useAutoGrowTextarea } from "@/hooks/use-auto-grow-textarea";import { useWorkspacePermission } from "@/hooks/use-workspace-permission";import debounce from "@/lib/debounce";+import { stripLineBreaks } from "@/lib/strip-line-breaks";type TaskTitleProps = {taskId: string;@@ -66,6 +68,9 @@ export default function TaskTitle({ taskId }: TaskTitleProps) {[],);+ const title = form.watch("title");+ const textareaRef = useAutoGrowTextarea(title);+const handleTitleChange = useCallback((value: string) => {if (!isInitializedRef.current) return;@@ -81,15 +86,27 @@ export default function TaskTitle({ taskId }: TaskTitleProps) {control={form.control}name="title"render={({ field }) => (- <input+ <textarea{...field}- type="text"+ ref={(element) => {+ field.ref(element);+ textareaRef.current = element;+ }}+ rows={1}placeholder={t("tasks:detail.titlePlaceholder")}readOnly={!canEdit}- className="block h-auto w-full appearance-none border-0 bg-transparent p-0 font-heading text-[2rem] leading-[1.15] font-semibold tracking-[-0.02em] text-foreground outline-none placeholder:text-foreground/45"+ className="block h-auto w-full resize-none appearance-none overflow-hidden border-0 bg-transparent p-0 font-heading text-2xl leading-[1.15] font-semibold tracking-[-0.02em] text-foreground outline-none placeholder:text-foreground/45 sm:text-[2rem]"+ onKeyDown={(e) => {+ // Titles are single-line; Enter commits instead of adding a break.+ if (e.key === "Enter" && !e.nativeEvent.isComposing) {+ e.preventDefault();+ e.currentTarget.blur();+ }+ }}onChange={(e) => {- field.onChange(e);- handleTitleChange(e.target.value);+ const value = stripLineBreaks(e.target.value);+ field.onChange(value);+ handleTitleChange(value);}}/>)}diff --git a/apps/web/src/components/team/members-table.tsx b/apps/web/src/components/team/members-table.tsxindex eaab908fd..db1b4c769 100644--- a/apps/web/src/components/team/members-table.tsx+++ b/apps/web/src/components/team/members-table.tsx@@ -271,9 +271,11 @@ function MembersTable({ workspaceId, invitations, users }: Props) {{getInitials(member.user.name)}</AvatarFallback></Avatar>- <div className="min-w-0">+ {/* Capped on phones so the email truncates and the role column+ peeks in, hinting that the table scrolls sideways. */}+ <div className="min-w-0 max-w-[55vw] sm:max-w-none"><div className="flex items-center gap-2">- <span className="text-sm font-medium">+ <span className="truncate text-sm font-medium">{member.user.name}</span>{isSelf ? (diff --git a/apps/web/src/components/ui/card.tsx b/apps/web/src/components/ui/card.tsxindex f24947f51..e48239e6c 100644--- a/apps/web/src/components/ui/card.tsx+++ b/apps/web/src/components/ui/card.tsx@@ -120,7 +120,7 @@ function CardHeader({}: useRender.ComponentProps<"div">) {const defaultProps = {className: cn(- "grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 p-6 in-[[data-slot=card]:has(>[data-slot=card-panel])]:pb-4 has-data-[slot=card-action]:grid-cols-[1fr_auto]",+ "grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 p-6 in-[[data-slot=card]:has(>[data-slot=card-panel])]:pb-4 sm:has-data-[slot=card-action]:grid-cols-[1fr_auto]",className,),"data-slot": "card-header",@@ -174,7 +174,8 @@ function CardAction({}: useRender.ComponentProps<"div">) {const defaultProps = {className: cn(- "col-start-2 row-span-2 row-start-1 self-start justify-self-end inline-flex",+ // Stacks under the title on phones so the description keeps its width.+ "mt-2 inline-flex self-start justify-self-start sm:col-start-2 sm:row-span-2 sm:row-start-1 sm:mt-0 sm:justify-self-end",className,),"data-slot": "card-action",diff --git a/apps/web/src/components/ui/error-fallback.tsx b/apps/web/src/components/ui/error-fallback.tsxindex 5c3e7ea1b..09ff01613 100644--- a/apps/web/src/components/ui/error-fallback.tsx+++ b/apps/web/src/components/ui/error-fallback.tsx@@ -7,6 +7,6 @@ type ErrorFallbackProps = {export function ErrorFallback({ error, resetError }: ErrorFallbackProps) {return (- <ErrorDisplay error={error} onRetry={resetError} className="min-h-screen" />+ <ErrorDisplay error={error} onRetry={resetError} className="min-h-svh" />);}diff --git a/apps/web/src/components/ui/sidebar.tsx b/apps/web/src/components/ui/sidebar.tsxindex da5f8f930..425303ee4 100644--- a/apps/web/src/components/ui/sidebar.tsx+++ b/apps/web/src/components/ui/sidebar.tsx@@ -453,7 +453,7 @@ function SidebarGroupAction({className: cn("absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-lg p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg:not([class*='size-'])]:size-4 [&>svg]:shrink-0",// Increases the hit area of the button on mobile.- "after:-inset-2 after:absolute md:after:hidden",+ "after:-inset-3 after:absolute md:after:hidden","group-data-[collapsible=icon]:hidden",className,),@@ -590,7 +590,7 @@ function SidebarMenuAction({className: cn("absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-lg p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg:not([class*='size-'])]:size-4 [&>svg]:shrink-0",// Increases the hit area of the button on mobile.- "after:-inset-2 after:absolute md:after:hidden",+ "after:-inset-3 after:absolute md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5",diff --git a/apps/web/src/fetchers/workspace/get-my-capabilities.ts b/apps/web/src/fetchers/workspace/get-my-capabilities.tsnew file mode 100644index 000000000..f0929aaf2--- /dev/null+++ b/apps/web/src/fetchers/workspace/get-my-capabilities.ts@@ -0,0 +1,16 @@+import { client } from "@kaneo/libs";+import { HttpError } from "@/lib/http-error";++async function getMyCapabilities(workspaceId: string) {+ const response = await client.workspace[":workspaceId"].capabilities.$get({+ param: { workspaceId },+ });++ if (!response.ok) {+ throw await HttpError.fromResponse(response);+ }++ return response.json();+}++export default getMyCapabilities;diff --git a/apps/web/src/hooks/use-auto-grow-textarea.ts b/apps/web/src/hooks/use-auto-grow-textarea.tsnew file mode 100644index 000000000..ed05343d4--- /dev/null+++ b/apps/web/src/hooks/use-auto-grow-textarea.ts@@ -0,0 +1,29 @@+import { useLayoutEffect, useRef } from "react";++// Grows a one-row textarea to fit its content so long titles wrap instead of+// scrolling sideways out of view, which on phones hid most of the title.+export function useAutoGrowTextarea(value: string) {+ const ref = useRef<HTMLTextAreaElement | null>(null);++ useLayoutEffect(() => {+ const textarea = ref.current;+ if (!textarea) return;+ const fit = () => {+ textarea.style.height = "auto";+ textarea.style.height = `${textarea.scrollHeight}px`;+ };+ fit();+ if (typeof ResizeObserver === "undefined") return;+ // Re-fit when the width changes (rotation, resizing a sheet).+ let width = textarea.clientWidth;+ const observer = new ResizeObserver(() => {+ if (textarea.clientWidth === width) return;+ width = textarea.clientWidth;+ fit();+ });+ observer.observe(textarea);+ return () => observer.disconnect();+ }, [value]);++ return ref;+}diff --git a/apps/web/src/hooks/use-workspace-permission.test.tsx b/apps/web/src/hooks/use-workspace-permission.test.tsxindex 235e52d4f..ab1ede432 100644--- a/apps/web/src/hooks/use-workspace-permission.test.tsx+++ b/apps/web/src/hooks/use-workspace-permission.test.tsx@@ -1,13 +1,19 @@import { QueryClient, QueryClientProvider } from "@tanstack/react-query";import { renderHook, waitFor } from "@testing-library/react";import type { ReactNode } from "react";+import { workspaceCapabilities } from "@kaneo/permissions";import { beforeEach, describe, expect, it, vi } from "vite-plus/test";import { useWorkspacePermission } from "./use-workspace-permission";-const { hasPermission } = vi.hoisted(() => ({+const { getMyCapabilities, hasPermission } = vi.hoisted(() => ({+ getMyCapabilities: vi.fn(),hasPermission: vi.fn(),}));+vi.mock("@/fetchers/workspace/get-my-capabilities", () => ({+ default: getMyCapabilities,+}));+vi.mock("@/hooks/queries/workspace/use-active-workspace", () => ({default: () => ({ data: { id: "workspace-1" } }),}));@@ -36,6 +42,7 @@ function createWrapper() {describe("useWorkspacePermission", () => {beforeEach(() => {+ getMyCapabilities.mockReset();hasPermission.mockReset();});@@ -45,14 +52,17 @@ describe("useWorkspacePermission", () => {label: new Set(["create", "read", "update"]),} as Record<string, Set<string>>;- hasPermission.mockImplementation(- async ({ permissions }: { permissions: Record<string, string[]> }) => ({- data: {- success: Object.entries(permissions).every(([resource, actions]) =>+ getMyCapabilities.mockResolvedValue(+ Object.fromEntries(+ Object.entries(workspaceCapabilities).map(([name, permissions]) => [+ name,+ Object.entries(+ permissions as Record<string, readonly string[]>,+ ).every(([resource, actions]) =>actions.every((action) => granted[resource]?.has(action)),),- },- }),+ ]),+ ),);const { result } = renderHook(() => useWorkspacePermission(), {@@ -70,4 +80,35 @@ describe("useWorkspacePermission", () => {expect(result.current.canUpdateLabels()).toBe(true);expect(result.current.canDeleteLabels()).toBe(false);});++ it("loads every capability in a single request", async () => {+ getMyCapabilities.mockResolvedValue({});++ const { result } = renderHook(() => useWorkspacePermission(), {+ wrapper: createWrapper(),+ });++ await waitFor(() => {+ expect(result.current.isCheckingPermissions).toBe(false);+ });++ expect(getMyCapabilities).toHaveBeenCalledTimes(1);+ expect(getMyCapabilities).toHaveBeenCalledWith("workspace-1");+ expect(hasPermission).not.toHaveBeenCalled();+ });++ it("stops checking and denies everything when the request fails", async () => {+ getMyCapabilities.mockRejectedValue(new Error("Too many requests"));++ const { result } = renderHook(() => useWorkspacePermission(), {+ wrapper: createWrapper(),+ });++ await waitFor(() => {+ expect(result.current.isCheckingPermissions).toBe(false);+ });++ expect(result.current.canCreateTasks()).toBe(false);+ expect(result.current.canManageWorkspace()).toBe(false);+ });});diff --git a/apps/web/src/hooks/use-workspace-permission.ts b/apps/web/src/hooks/use-workspace-permission.tsindex 1b8ab20d7..99aa6df45 100644--- a/apps/web/src/hooks/use-workspace-permission.ts+++ b/apps/web/src/hooks/use-workspace-permission.ts@@ -1,46 +1,26 @@+import {+ WORKSPACE_CAPABILITY_NAMES,+ type WorkspaceCapability,+} from "@kaneo/permissions";import { useQuery } from "@tanstack/react-query";import { useMemo } from "react";+import getMyCapabilities from "@/fetchers/workspace/get-my-capabilities";import useActiveWorkspace from "@/hooks/queries/workspace/use-active-workspace";import { useGetActiveWorkspaceUser } from "@/hooks/queries/workspace-users/use-active-workspace-user";import { authClient } from "@/lib/auth-client";export type PermissionLevel = "owner" | "admin" | "member";-// Capabilities are named permission bundles checked against the SERVER via-// better-auth's `/organization/has-permission` endpoint. Going through the-// server is what makes custom workspace roles work in the UI: the local-// `checkRolePermission` only knows about the four static roles compiled-// into the auth client, so it would silently return false for any custom-// role that grants the permission.-const CAPABILITIES = {- manageProjects: { project: ["create", "update", "delete"] },- createProjects: { project: ["create"] },- updateProjects: { project: ["update"] },- shareProjects: { project: ["share"] },- deleteProjects: { project: ["delete"] },- updateTasks: { task: ["update"] },- createTasks: { task: ["create"] },- deleteTasks: { task: ["delete"] },- assignTasks: { task: ["assign"] },- createLabels: { label: ["create"] },- updateLabels: { label: ["update"] },- deleteLabels: { label: ["delete"] },- manageWorkspace: { workspace: ["update", "manage_settings"] },- manageSettings: { workspace: ["manage_settings"] },- deleteWorkspace: { workspace: ["delete"] },- inviteUsers: { invitation: ["create"] },- manageTeam: { member: ["update", "delete"] },- updateMembers: { member: ["update"] },- removeMembers: { member: ["delete"] },-} as const satisfies Record<string, Record<string, string[]>>;--type Capability = keyof typeof CAPABILITIES;--type CapabilityMap = Record<Capability, boolean>;+// Capabilities are named permission bundles (see `workspaceCapabilities` in+// @kaneo/permissions). The server evaluates all of them in one request with+// the same rules it enforces, so custom workspace roles work in the UI: the+// local `checkRolePermission` only knows the static roles compiled into the+// auth client.+type CapabilityMap = Record<WorkspaceCapability, boolean>;function emptyCapabilityMap(): CapabilityMap {const out = {} as CapabilityMap;- for (const key of Object.keys(CAPABILITIES) as Capability[]) {+ for (const key of WORKSPACE_CAPABILITY_NAMES) {out[key] = false;}return out;@@ -52,42 +32,20 @@ export function useWorkspacePermission() {const workspaceId = activeWorkspace?.id;const role = activeMember?.role as string | undefined;- // One query that fans out to all capability checks in parallel and caches- // the resulting map by (workspaceId, role). Refetches when either changes,- // e.g., when the admin edits the role's permissions in the Roles UI and- // we invalidate this key.+ // Cached by (workspaceId, role). Refetches when either changes, e.g., when+ // the admin edits the role's permissions in the Roles UI and we invalidate+ // this key.const {data: capabilities,isLoading,+ isError,isFetching,} = useQuery({queryKey: ["workspace-capabilities", workspaceId, role],enabled: Boolean(workspaceId && role),staleTime: 5 * 60 * 1000,- queryFn: async (): Promise<CapabilityMap> => {- const entries = Object.entries(CAPABILITIES) as Array<- [Capability, Record<string, string[]>]- >;- const results = await Promise.all(- entries.map(async ([key, permissions]) => {- try {- const res = await authClient.organization.hasPermission({- organizationId: workspaceId,- permissions,- });- return [key, res.data?.success === true] as const;- } catch (error) {- console.error(`hasPermission check failed for ${key}:`, error);- return [key, false] as const;- }- }),- );- const map = emptyCapabilityMap();- for (const [key, value] of results) {- map[key] = value;- }- return map;- },+ queryFn: (): Promise<CapabilityMap> =>+ getMyCapabilities(workspaceId as string),});const can: CapabilityMap = capabilities ?? emptyCapabilityMap();@@ -139,9 +97,11 @@ export function useWorkspacePermission() {isAdmin: role === "owner" || role === "admin",// True while the first capability fetch is in flight. Useful for hiding// action UI during the initial render instead of flashing it on then- // off when the server check resolves.+ // off when the server check resolves. A failed check settles to+ // "nothing allowed" instead of loading forever.isCheckingPermissions:- Boolean(workspaceId && role) && (isLoading || !capabilities),+ Boolean(workspaceId && role) &&+ (isLoading || (!capabilities && !isError)),isRefetchingPermissions: isFetching,};}diff --git a/apps/web/src/index.css b/apps/web/src/index.cssindex bef178e52..5ef1ad1bd 100644--- a/apps/web/src/index.css+++ b/apps/web/src/index.css@@ -13,6 +13,23 @@ input:-webkit-autofill:active {@custom-variant dark (&:is(.dark *));+/* Gives small icon-only controls a 44px touch target on touch screens without+ changing their visual size (same idea as Button's pointer-coarse ::after).+ The element must be positioned (`relative` or `absolute`). */+@utility touch-hitbox {+ @media (pointer: coarse) {+ &::after {+ content: "";+ position: absolute;+ top: 50%;+ left: 50%;+ width: max(100%, 2.75rem);+ height: max(100%, 2.75rem);+ transform: translate(-50%, -50%);+ }+ }+}+/* Reduced motion: keep opacity feedback, drop movement (scale/translate) andcontainer morphs. Tailwind v4 scale/translate utilities use the standaloneCSS properties, so forcing them here neutralizes entrance/exit movement@@ -388,6 +405,15 @@ input:-webkit-autofill:active {outline: none;}+ /* iOS Safari zooms the page into any focused field under 16px; keep the+ editors at 16px on phone widths so focusing them doesn't zoom. */+ @media (max-width: 639.98px) {+ .kaneo-tiptap-content .ProseMirror[contenteditable="true"],+ .kaneo-comment-editor-content .ProseMirror[contenteditable="true"] {+ font-size: 1rem;+ }+ }+.kaneo-tiptap-slash-menu {position: fixed;z-index: 50;diff --git a/apps/web/src/lib/strip-line-breaks.test.ts b/apps/web/src/lib/strip-line-breaks.test.tsnew file mode 100644index 000000000..38acc3dd5--- /dev/null+++ b/apps/web/src/lib/strip-line-breaks.test.ts@@ -0,0 +1,14 @@+import { describe, expect, it } from "vite-plus/test";+import { stripLineBreaks } from "./strip-line-breaks";++describe("stripLineBreaks", () => {+ it("joins lines with a single space", () => {+ expect(stripLineBreaks("Fix the\n drawer\r\non phones")).toBe(+ "Fix the drawer on phones",+ );+ });++ it("leaves single-line titles untouched", () => {+ expect(stripLineBreaks(" Keep spacing ")).toBe(" Keep spacing ");+ });+});diff --git a/apps/web/src/lib/strip-line-breaks.ts b/apps/web/src/lib/strip-line-breaks.tsnew file mode 100644index 000000000..58f9b3df4--- /dev/null+++ b/apps/web/src/lib/strip-line-breaks.ts@@ -0,0 +1,4 @@+// Titles stay single-line text even when edited in a wrapping textarea.+export function stripLineBreaks(value: string) {+ return value.replace(/\s*[\r\n]+\s*/g, " ");+}diff --git a/apps/web/src/main.tsx b/apps/web/src/main.tsxindex 758d73c4f..fb664cefc 100644--- a/apps/web/src/main.tsx+++ b/apps/web/src/main.tsx@@ -70,7 +70,7 @@ function RootCrashFallback({const { t } = useTranslation();return (- <div className="flex min-h-screen items-center justify-center bg-background p-6">+ <div className="flex min-h-svh items-center justify-center bg-background p-6"><div className="max-w-md text-center"><h1 className="text-2xl font-semibold text-foreground">{t("common:error.title")}diff --git a/apps/web/src/routes/_layout/_authenticated.tsx b/apps/web/src/routes/_layout/_authenticated.tsxindex 13c621348..abaf50e9f 100644--- a/apps/web/src/routes/_layout/_authenticated.tsx+++ b/apps/web/src/routes/_layout/_authenticated.tsx@@ -10,8 +10,14 @@ export const Route = createFileRoute("/_layout/_authenticated")({let session = null;let sessionError = false;try {- const { data } = await authClient.getSession();+ // better-auth reports failures (429, 5xx, network) in `error` rather+ // than throwing; a missing session is `data: null` with no error.+ const { data, error } = await authClient.getSession();session = data;+ if (error) {+ sessionError = true;+ if (import.meta.env.DEV) console.warn("getSession failed", error);+ }} catch (error) {sessionError = true;if (import.meta.env.DEV) console.warn("getSession failed", error);diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/projects/$projectId/general.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/projects/$projectId/general.tsxindex a7b2329af..830ba8bb8 100644--- a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/projects/$projectId/general.tsx+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/projects/$projectId/general.tsx@@ -578,7 +578,7 @@ function RouteComponent() {placeholder={t("settings:projectGeneral.searchIconsPlaceholder",)}- className="h-8 text-xs"+ className="h-8 text-base sm:text-xs"/><div className="max-h-[280px] overflow-y-auto pr-1"><div className="grid grid-cols-6 gap-1.5">diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/labels.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/labels.tsxindex 554983415..d9607194a 100644--- a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/labels.tsx+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/labels.tsx@@ -34,7 +34,6 @@ import {EmptyDescription,EmptyHeader,EmptyMedia,- EmptyTitle,} from "@/components/ui/empty";import { Input } from "@/components/ui/input";import { Label } from "@/components/ui/label";@@ -262,13 +261,12 @@ function RouteComponent() {<EmptyMedia><Tag className="size-8 text-muted-foreground" /></EmptyMedia>- <EmptyTitle>+ <EmptyDescription>{t("settings:workspaceLabels.empty", {defaultValue:"No labels yet. Create your first label to get started.",})}- </EmptyTitle>- <EmptyDescription />+ </EmptyDescription></EmptyHeader></Empty>) : (diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/roles.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/roles.tsxindex c6e3eb4e3..13e270593 100644--- a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/roles.tsx+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/roles.tsx@@ -432,7 +432,7 @@ function RouteComponent() {)}</div></div>- <p className="text-xs font-normal text-muted-foreground shrink-0">+ <p className="hidden text-xs font-normal text-muted-foreground shrink-0 sm:block">{t("settings:workspaceRoles.permissionCount", {count: permissionCount(role.permission),})}diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/index.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/index.tsxindex 73eba71d9..c3be6bc40 100644--- a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/index.tsx+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/index.tsx@@ -47,7 +47,7 @@ function RouteComponent() {<WorkspaceLayout title={t("workspace:home.pageTitle")}><div className="h-full overflow-y-auto"><TrialExpiredCallout workspaceId={workspaceId} className="m-4" />- <div className="mx-auto flex w-full max-w-5xl flex-col gap-9 px-6 py-10 lg:px-10">+ <div className="mx-auto flex w-full max-w-5xl flex-col gap-9 px-4 py-6 sm:px-6 sm:py-10 lg:px-10"><header className="flex items-end justify-between gap-4"><div className="flex flex-col gap-1.5"><p className="font-medium text-[13px] text-muted-foreground">@@ -83,7 +83,7 @@ function RouteComponent() {</p>)}- <div className="grid gap-10 lg:grid-cols-[minmax(0,1fr)_20rem]">+ <div className="grid grid-cols-1 gap-10 lg:grid-cols-[minmax(0,1fr)_20rem]"><div className="flex min-w-0 flex-col gap-9"><UpNexttasks={assigned?.tasks}diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/backlog.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/backlog.tsxindex e0ba02788..d0d778292 100644--- a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/backlog.tsx+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/backlog.tsx@@ -632,19 +632,16 @@ function RouteComponent() {);})}- <SortControl sort={sort} onSortChange={setSort} />-<DropdownMenu><DropdownMenuTriggerrender={- <Button- variant="outline"- size="sm"- className="h-7 gap-2 px-2.5 text-xs font-medium text-foreground"+ <button+ type="button"+ className="inline-flex h-7 items-center gap-1.5 rounded-md border border-border bg-background px-2.5 text-foreground text-xs font-medium outline-none ring-0 hover:bg-accent/60"/>}>- <Filter className="h-3.5 w-3.5" />+ <Filter className="h-3 w-3" />{t("tasks:backlog.filter")}</DropdownMenuTrigger><DropdownMenuContent className="w-80" align="start">@@ -884,6 +881,8 @@ function RouteComponent() {)}</DropdownMenuContent></DropdownMenu>++ <SortControl sort={sort} onSortChange={setSort} /></div></div></div>diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/calendar.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/calendar.tsxindex 0910daaf7..56a3d5d05 100644--- a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/calendar.tsx+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/calendar.tsx@@ -3,6 +3,7 @@ import { addMonths, startOfMonth, subMonths } from "date-fns";import { useCallback, useMemo, useState } from "react";import { useTranslation } from "react-i18next";import CalendarToolbar from "@/components/calendar/calendar-toolbar";+import MonthAgenda from "@/components/calendar/month-agenda";import MonthGrid from "@/components/calendar/month-grid";import { buildMonthWeeks } from "@/components/calendar/month-grid-model";import ProjectLayout from "@/components/common/project-layout";@@ -29,9 +30,9 @@ export const Route = createFileRoute(});// Lanes are capped so a busy week cannot push a row taller than the viewport;-// anything past the cap surfaces as a per-day overflow hint.+// anything past the cap surfaces as a per-day overflow hint. Phones use the+// agenda list instead of the grid.const MAX_LANES_DESKTOP = 3;-const MAX_LANES_MOBILE = 2;function RouteComponent() {const { t } = useTranslation();@@ -151,14 +152,25 @@ function RouteComponent() {</div>) : null}- <MonthGrid- weeks={weeks}- tasks={scheduledTasks}- visibleMonth={visibleMonth}- maxLanes={isMobile ? MAX_LANES_MOBILE : MAX_LANES_DESKTOP}- projectSlug={project?.slug}- onOpenTask={handleOpenTask}- />+ {isMobile ? (+ scheduledTasks.length > 0 && (+ <MonthAgenda+ tasks={scheduledTasks}+ visibleMonth={visibleMonth}+ projectSlug={project?.slug}+ onOpenTask={handleOpenTask}+ />+ )+ ) : (+ <MonthGrid+ weeks={weeks}+ tasks={scheduledTasks}+ visibleMonth={visibleMonth}+ maxLanes={MAX_LANES_DESKTOP}+ projectSlug={project?.slug}+ onOpenTask={handleOpenTask}+ />+ )}<TaskDetailsSheettaskId={taskId}diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/gantt.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/gantt.tsxindex b69af8e9d..24f7e347e 100644--- a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/gantt.tsx+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/gantt.tsx@@ -236,91 +236,95 @@ function RouteComponent() {/><div className="flex h-full min-h-0 flex-col bg-background"><div className="border-b border-border/80 px-3 py-3 sm:px-4">- <div className="flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between">- <div className="space-y-1">- <h1 className="text-sm font-semibold text-foreground">- {t("tasks:gantt.title")}- </h1>- </div>+ <div className="flex flex-col gap-2 sm:gap-3 lg:flex-row lg:items-center lg:justify-between">+ <h1 className="sr-only text-sm font-semibold text-foreground sm:not-sr-only">+ {t("tasks:gantt.title")}+ </h1>- <div className="relative w-full max-w-sm">+ <div className="relative w-full lg:max-w-sm"><Search className="pointer-events-none absolute top-1/2 left-2.5 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground" /><Inputvalue={searchQuery}onChange={(event) => setSearchQuery(event.target.value)}placeholder={t("tasks:gantt.searchPlaceholder")}- className="h-9 min-h-11 touch-manipulation sm:h-8 sm:min-h-0 [&_[data-slot=input]]:pl-8 [&_[data-slot=input]]:text-xs"+ className="h-9 touch-manipulation sm:h-8 [&_[data-slot=input]]:pl-8 [&_[data-slot=input]]:text-base sm:[&_[data-slot=input]]:text-xs"/></div>- {timeline && (- <div className="flex flex-wrap items-center gap-2">- <Button- variant="outline"- size="icon-sm"- aria-label={t("tasks:gantt.previousPeriod")}- disabled={!timeline.hasPrevious}- onClick={() =>- showDate(addDays(timeline.rangeStart, -GANTT_WINDOW_DAYS))- }- >- <ChevronLeft className="size-4" />- </Button>- <input- type="date"- aria-label={t("tasks:gantt.periodStart")}- className="h-9 rounded-md border border-border bg-background px-2 text-sm"- min={format(timeline.minimumStart, "yyyy-MM-dd")}- max={format(timeline.maximumStart, "yyyy-MM-dd")}- value={format(timeline.rangeStart, "yyyy-MM-dd")}- onChange={(event) => {- const date = parseTaskDate(event.target.value);- if (date) showDate(date);- }}- />- <span className="text-xs text-muted-foreground">- – {format(timeline.rangeEnd, "MMM d, yyyy")}- </span>- <Button- variant="outline"- size="icon-sm"- aria-label={t("tasks:gantt.nextPeriod")}- disabled={!timeline.hasNext}- onClick={() =>- showDate(addDays(timeline.rangeStart, GANTT_WINDOW_DAYS))- }- >- <ChevronRight className="size-4" />- </Button>- </div>- )}-- <Button- variant="outline"- size="xs"- className="min-h-11 touch-manipulation sm:min-h-0"- onClick={() => scrollToToday()}- disabled={!todayInRange || scheduledTasks.length === 0}- >- <Calendar className="size-3.5" />- {t("tasks:gantt.jumpToToday")}- </Button>-- <Button- variant="outline"- size="xs"- className="min-h-11 touch-manipulation sm:hidden"- onClick={() => setIsTaskRailOpen((current) => !current)}- >- {showTaskRail ? (- <ChevronLeft className="size-3.5" />- ) : (- <ChevronRight className="size-3.5" />+ <div className="flex flex-wrap items-center gap-2">+ {timeline && (+ <>+ <Button+ variant="outline"+ size="icon-sm"+ aria-label={t("tasks:gantt.previousPeriod")}+ disabled={!timeline.hasPrevious}+ onClick={() =>+ showDate(addDays(timeline.rangeStart, -GANTT_WINDOW_DAYS))+ }+ >+ <ChevronLeft className="size-4" />+ </Button>+ <input+ type="date"+ aria-label={t("tasks:gantt.periodStart")}+ className="h-9 min-w-0 rounded-md border border-border bg-background px-2 text-base sm:h-8 sm:text-sm"+ min={format(timeline.minimumStart, "yyyy-MM-dd")}+ max={format(timeline.maximumStart, "yyyy-MM-dd")}+ value={format(timeline.rangeStart, "yyyy-MM-dd")}+ onChange={(event) => {+ const date = parseTaskDate(event.target.value);+ if (date) showDate(date);+ }}+ />+ <span className="hidden text-xs text-muted-foreground sm:inline">+ – {format(timeline.rangeEnd, "MMM d, yyyy")}+ </span>+ <Button+ variant="outline"+ size="icon-sm"+ aria-label={t("tasks:gantt.nextPeriod")}+ disabled={!timeline.hasNext}+ onClick={() =>+ showDate(addDays(timeline.rangeStart, GANTT_WINDOW_DAYS))+ }+ >+ <ChevronRight className="size-4" />+ </Button>+ </>)}- {showTaskRail- ? t("tasks:gantt.hideTasks")- : t("tasks:gantt.showTasks")}- </Button>++ <Button+ variant="outline"+ size="xs"+ className="h-9 touch-manipulation sm:h-auto"+ aria-label={t("tasks:gantt.jumpToToday")}+ onClick={() => scrollToToday()}+ disabled={!todayInRange || scheduledTasks.length === 0}+ >+ <Calendar className="size-3.5" />+ <span className="hidden sm:inline">+ {t("tasks:gantt.jumpToToday")}+ </span>+ </Button>++ <Button+ variant="outline"+ size="xs"+ className="h-9 touch-manipulation sm:hidden"+ aria-pressed={showTaskRail}+ onClick={() => setIsTaskRailOpen((current) => !current)}+ >+ {showTaskRail ? (+ <ChevronLeft className="size-3.5" />+ ) : (+ <ChevronRight className="size-3.5" />+ )}+ {showTaskRail+ ? t("tasks:gantt.hideTasks")+ : t("tasks:gantt.showTasks")}+ </Button>+ </div></div></div>diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/search.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/search.tsxindex a0745534c..ffba1b836 100644--- a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/search.tsx+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/search.tsx@@ -70,15 +70,21 @@ function SearchComponent() {<WorkspaceLayouttitle={t("workspace:search.pageTitle")}headerActions={- <Link to="/dashboard/workspace/$workspaceId" params={{ workspaceId }}>- <Button variant="ghost" size="sm" className="gap-2">+ <Link+ to="/dashboard/workspace/$workspaceId"+ params={{ workspaceId }}+ aria-label={t("workspace:search.backToDashboard")}+ >+ <Button variant="ghost" size="sm" className="gap-2" tabIndex={-1}><ArrowLeft className="w-4 h-4" />- {t("workspace:search.backToDashboard")}+ <span className="hidden sm:inline">+ {t("workspace:search.backToDashboard")}+ </span></Button></Link>}>- <div className="space-y-6">+ <div className="mx-auto w-full max-w-3xl space-y-6 p-4 sm:p-6"><div><div className="relative"><Search className="absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground w-4 h-4" />@@ -86,7 +92,7 @@ function SearchComponent() {placeholder={t("workspace:search.placeholder")}value={searchInput}onChange={(e) => handleInputChange(e.target.value)}- className="pl-10 h-12 text-lg"+ className="h-12 text-base sm:text-lg [&_[data-slot=input]]:pl-10"autoFocus/>{showLoading && (@@ -132,7 +138,7 @@ function SearchComponent() {});}}}- className="w-full flex items-center gap-3 px-4 py-3 rounded-lg border border-border bg-background hover:bg-accent/60 transition-colors text-left"+ className="w-full flex items-center gap-2.5 px-3 py-3 sm:gap-3 sm:px-4 rounded-lg border border-border bg-background hover:bg-accent/60 transition-colors text-left"><div className="flex-shrink-0 first:[&_svg]:h-4 first:[&_svg]:w-4">{getPriorityIcon(result.priority ?? "")}@@ -151,7 +157,7 @@ function SearchComponent() {</div>{result.projectName && (- <span className="text-xs text-muted-foreground flex-shrink-0">+ <span className="hidden text-xs text-muted-foreground flex-shrink-0 sm:inline">{result.projectName}</span>)}diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/create.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/create.tsxindex bfbb82fd5..1626f5023 100644--- a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/create.tsx+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/create.tsx@@ -64,7 +64,7 @@ function RouteComponent() {return (<><PageTitle title={t("workspace:create.pageTitle")} />- <div className="min-h-screen w-full bg-background flex items-center justify-center p-4 overflow-y-auto">+ <div className="min-h-svh w-full bg-background flex items-center justify-center p-4 overflow-y-auto"><div className="w-full max-w-md"><Card className="shadow-sm"><CardContent className="p-8">diff --git a/apps/web/src/routes/_layout/_authenticated/invitations.tsx b/apps/web/src/routes/_layout/_authenticated/invitations.tsxindex 4a3dfec71..4a871aafe 100644--- a/apps/web/src/routes/_layout/_authenticated/invitations.tsx+++ b/apps/web/src/routes/_layout/_authenticated/invitations.tsx@@ -152,7 +152,7 @@ function InvitationsPage() {return (<><PageTitle title={t("invitations:pageTitle")} />- <div className="flex w-full min-h-screen items-center justify-center p-6 bg-background">+ <div className="flex w-full min-h-svh items-center justify-center p-6 bg-background"><div className="w-full max-w-2xl space-y-8"><div className="space-y-3 text-center"><h1 className="text-3xl font-semibold">diff --git a/apps/web/src/routes/public-project.$projectId.tsx b/apps/web/src/routes/public-project.$projectId.tsxindex db9c9a1a0..b7c89ea9e 100644--- a/apps/web/src/routes/public-project.$projectId.tsx+++ b/apps/web/src/routes/public-project.$projectId.tsx@@ -78,7 +78,7 @@ function RouteComponent() {return (<><PageTitle title={t("publicProject:pageTitle")} />- <div className="min-h-screen bg-background flex flex-col w-full">+ <div className="min-h-svh bg-background flex flex-col w-full"><header className="border-b border-border sticky top-0 z-10 bg-background"><div className="px-6 py-2.5"><div className="flex items-center justify-between gap-4">diff --git a/apps/web/src/routes/test-error.tsx b/apps/web/src/routes/test-error.tsxindex cf8ea5c5c..2e98b11a7 100644--- a/apps/web/src/routes/test-error.tsx+++ b/apps/web/src/routes/test-error.tsx@@ -7,7 +7,7 @@ export const Route = createFileRoute("/test-error")({function TestErrorComponent() {return (- <div className="min-h-screen bg-background">+ <div className="min-h-svh bg-background"><ErrorTest /></div>);diff --git a/i18n/az-AZ.json b/i18n/az-AZ.jsonindex 29006f0ab..bec2d5d97 100644--- a/i18n/az-AZ.json+++ b/i18n/az-AZ.json@@ -1099,7 +1099,9 @@"on": "Aktiv","off": "Sönülü","newColumnPlaceholder": "Yeni sütunun adı...",- "add": "Əlavə et"+ "add": "Əlavə et",+ "deleteAria": "{{name}} sütununu sil",+ "renameAria": "{{name}} sütununun adını dəyiş"},"githubIntegration": {"validation": {@@ -2066,7 +2068,8 @@"deleteConfirmTitle": "Layihə silinsin?","deleteConfirmDescription": "Bu, layihəni və bütün məlumatlarını həmişəlik siləcək. Bu əməliyyatı geri qaytara bilməzsiniz.","deletedToast": "Layihə silindi",- "deleteProject": "Layihəni sil"+ "deleteProject": "Layihəni sil",+ "switcherLabel": "Layihəni və ya görünüşü dəyiş"},"search": {"inputPlaceholder": "Tapşırıqları, layihələri və şərhləri axtar...",@@ -2352,7 +2355,10 @@"boardSearchPlaceholder": "Tapşırıqları axtar...","view": {"board": "Lövhə",- "list": "Siyahı"+ "list": "Siyahı",+ "backlog": "Gözləyən tapşırıqlar",+ "gantt": "Qant",+ "heading": "Görünüş"},"common": {"selectTask": "Tapşırıq seç",@@ -2582,7 +2588,8 @@"terracotta": "Bişmiş gil rəngi","rose": "Çəhrayı","crimson": "Tünd qırmızı"- }+ },+ "editLabels": "Etiketləri redaktə et"}},"backlog": {@@ -2661,7 +2668,8 @@"moreTasks": "Daha +{{count}}","loadError": "Tapşırıqları yükləmək alınmadı.","dayTasksAriaLabel": "{{date}} tarixi üçün bütün tapşırıqları göstər",- "taskAriaLabel": "{{title}}, {{range}}: tapşırığı aç"+ "taskAriaLabel": "{{title}}, {{range}}: tapşırığı aç",+ "noTasksThisMonth": "Bu ay heç nə planlaşdırılmayıb"},"gantt": {"pageTitle": "{{name}} – Qant diaqramı",diff --git a/i18n/de-DE.json b/i18n/de-DE.jsonindex 3d2e19f5f..c4413fb9b 100644--- a/i18n/de-DE.json+++ b/i18n/de-DE.json@@ -944,7 +944,9 @@"on": "Ein","off": "Aus","newColumnPlaceholder": "Neuer Spaltenname...",- "add": "Hinzufügen"+ "add": "Hinzufügen",+ "deleteAria": "Spalte {{name}} löschen",+ "renameAria": "Spalte {{name}} umbenennen"},"githubIntegration": {"validation": {@@ -2066,7 +2068,8 @@"deleteConfirmTitle": "Projekt löschen?","deleteConfirmDescription": "Dadurch wird das Projekt und alle zugehörigen Daten dauerhaft entfernt. Diese Aktion kann nicht rückgängig gemacht werden.","deletedToast": "Projekt gelöscht",- "deleteProject": "Projekt löschen"+ "deleteProject": "Projekt löschen",+ "switcherLabel": "Projekt oder Ansicht wechseln"},"search": {"inputPlaceholder": "Aufgaben, Projekte, Kommentare suchen...",@@ -2352,7 +2355,10 @@"boardSearchPlaceholder": "Tickets suchen...","view": {"board": "Board",- "list": "Liste"+ "list": "Liste",+ "backlog": "Backlog",+ "gantt": "Gantt",+ "heading": "Ansicht"},"common": {"selectTask": "Aufgabe auswählen",@@ -2582,7 +2588,8 @@"terracotta": "Terrakotta","rose": "Rosa","crimson": "Karmesinrot"- }+ },+ "editLabels": "Labels bearbeiten"}},"backlog": {@@ -2787,7 +2794,8 @@"taskAriaLabel": "{{title}}, {{range}}: Aufgabe öffnen","title": "Kalender","today": "Heute",- "loadError": "Aufgaben konnten nicht geladen werden."+ "loadError": "Aufgaben konnten nicht geladen werden.",+ "noTasksThisMonth": "Diesen Monat ist nichts geplant"},"descriptionSearchLoading": "Vollständige Beschreibungen werden durchsucht…","descriptionSearchError": "Die Suche in Beschreibungen ist fehlgeschlagen. Ergebnisse sind möglicherweise unvollständig.",diff --git a/i18n/el-GR.json b/i18n/el-GR.jsonindex 366f65262..8e785cac3 100644--- a/i18n/el-GR.json+++ b/i18n/el-GR.json@@ -864,7 +864,9 @@"on": "Ενεργό","off": "Ανενεργό","newColumnPlaceholder": "Όνομα νέας στήλης...",- "add": "Προσθήκη"+ "add": "Προσθήκη",+ "deleteAria": "Διαγραφή στήλης {{name}}",+ "renameAria": "Μετονομασία στήλης {{name}}"},"githubIntegration": {"validation": {@@ -2066,7 +2068,8 @@"deleteConfirmTitle": "Διαγραφή έργου;","deleteConfirmDescription": "Αυτό θα αφαιρέσει οριστικά το έργο και όλα τα δεδομένα του. Δεν μπορείτε να αναιρέσετε αυτήν την ενέργεια.","deletedToast": "Το έργο διαγράφηκε",- "deleteProject": "Διαγραφή έργου"+ "deleteProject": "Διαγραφή έργου",+ "switcherLabel": "Αλλαγή έργου ή προβολής"},"search": {"inputPlaceholder": "Αναζήτηση εργασιών, έργων, σχολίων...",@@ -2352,7 +2355,10 @@"boardSearchPlaceholder": "Αναζήτηση αιτημάτων...","view": {"board": "Πίνακας",- "list": "Λίστα"+ "list": "Λίστα",+ "backlog": "Backlog",+ "gantt": "Gantt",+ "heading": "Προβολή"},"common": {"selectTask": "Επιλέξτε εργασία",@@ -2582,7 +2588,8 @@"terracotta": "Τερακότα","rose": "Ροζ","crimson": "Βυσσινί"- }+ },+ "editLabels": "Επεξεργασία ετικετών"}},"backlog": {@@ -2787,7 +2794,8 @@"taskAriaLabel": "{{title}}, {{range}}: άνοιγμα εργασίας","title": "Ημερολόγιο","today": "Σήμερα",- "loadError": "Αποτυχία φόρτωσης εργασιών."+ "loadError": "Αποτυχία φόρτωσης εργασιών.",+ "noTasksThisMonth": "Τίποτα προγραμματισμένο αυτόν τον μήνα"},"descriptionSearchLoading": "Searching full descriptions…","descriptionSearchError": "Description search failed. Results may be incomplete.",diff --git a/i18n/en-US.json b/i18n/en-US.jsonindex ce88165b9..975de5db4 100644--- a/i18n/en-US.json+++ b/i18n/en-US.json@@ -1327,7 +1327,9 @@"on": "On","off": "Off","newColumnPlaceholder": "New column name...",- "add": "Add"+ "add": "Add",+ "deleteAria": "Delete {{name}} column",+ "renameAria": "Rename {{name}} column"},"customFields": {"namePlaceholder": "Field name",@@ -2066,7 +2068,8 @@"deleteConfirmTitle": "Delete Project?","deleteConfirmDescription": "This will permanently remove the project and all its data. You can't undo this action.","deletedToast": "Project deleted",- "deleteProject": "Delete Project"+ "deleteProject": "Delete Project",+ "switcherLabel": "Switch project or view"},"search": {"inputPlaceholder": "Search tasks, projects, comments...",@@ -2353,7 +2356,10 @@"boardSearchPlaceholder": "Search tickets...","view": {"board": "Board",- "list": "List"+ "list": "List",+ "backlog": "Backlog",+ "gantt": "Gantt",+ "heading": "View"},"common": {"selectTask": "Select task",@@ -2583,7 +2589,8 @@"terracotta": "Terracotta","rose": "Rose","crimson": "Crimson"- }+ },+ "editLabels": "Edit labels"}},"backlog": {@@ -2662,7 +2669,8 @@"moreTasks": "+{{count}} more","loadError": "Failed to load tasks.","dayTasksAriaLabel": "Show all tasks for {{date}}",- "taskAriaLabel": "{{title}}, {{range}}: open task"+ "taskAriaLabel": "{{title}}, {{range}}: open task",+ "noTasksThisMonth": "Nothing scheduled this month"},"gantt": {"pageTitle": "{{name}} – Gantt",diff --git a/i18n/es-ES.json b/i18n/es-ES.jsonindex 2bd6bff37..2f32eaa90 100644--- a/i18n/es-ES.json+++ b/i18n/es-ES.json@@ -761,7 +761,9 @@"on": "Activado","off": "Desactivado","newColumnPlaceholder": "Nombre de la nueva columna...",- "add": "Añadir"+ "add": "Añadir",+ "deleteAria": "Borrar la columna {{name}}",+ "renameAria": "Renombrar la columna {{name}}"},"githubIntegration": {"validation": {@@ -2077,7 +2079,8 @@"deleteConfirmDescription": "Esto eliminará permanentemente el proyecto y todos sus datos. Esta acción no se puede deshacer.","deletedToast": "Proyecto eliminado","deleteProject": "Eliminar proyecto",- "projectSettings": "Ajustes del proyecto"+ "projectSettings": "Ajustes del proyecto",+ "switcherLabel": "Cambiar de proyecto o vista"},"search": {"inputPlaceholder": "Busca tareas, proyectos, comentarios...",@@ -2367,7 +2370,10 @@"boardSearchPlaceholder": "Buscar tickets...","view": {"board": "Tablero",- "list": "Lista"+ "list": "Lista",+ "backlog": "Backlog",+ "gantt": "Gantt",+ "heading": "Vista"},"common": {"selectTask": "Seleccionar tarea",@@ -2586,7 +2592,8 @@"terracotta": "Terracota","rose": "Rosa","crimson": "Carmesí"- }+ },+ "editLabels": "Editar etiquetas"}},"backlog": {@@ -2803,7 +2810,8 @@"taskAriaLabel": "{{title}}, {{range}}: abrir tarea","title": "Calendario","today": "Hoy",- "loadError": "No se pudieron cargar las tareas."+ "loadError": "No se pudieron cargar las tareas.",+ "noTasksThisMonth": "No hay nada planificado este mes"},"descriptionSearchLoading": "Searching full descriptions…","descriptionSearchError": "Description search failed. Results may be incomplete.",diff --git a/i18n/fr-FR.json b/i18n/fr-FR.jsonindex 6e6bfed93..100bbdac8 100644--- a/i18n/fr-FR.json+++ b/i18n/fr-FR.json@@ -865,7 +865,9 @@"on": "On","off": "Off","newColumnPlaceholder": "Nouveau nom de colonne...",- "add": "Ajouter"+ "add": "Ajouter",+ "deleteAria": "Supprimer la colonne {{name}}",+ "renameAria": "Renommer la colonne {{name}}"},"githubIntegration": {"validation": {@@ -2077,7 +2079,8 @@"deleteConfirmTitle": "Supprimer le projet?","deleteConfirmDescription": "Cela supprimera définitivement le projet et toutes ses données. Vous ne pouvez pas annuler cette action.","deletedToast": "Projet supprimé",- "deleteProject": "Supprimer le projet"+ "deleteProject": "Supprimer le projet",+ "switcherLabel": "Changer de projet ou de vue"},"search": {"inputPlaceholder": "Rechercher des tâches, projets, commentaires...",@@ -2367,7 +2370,10 @@"boardSearchPlaceholder": "Rechercher des tickets...","view": {"board": "Tableau",- "list": "Liste"+ "list": "Liste",+ "backlog": "Backlog",+ "gantt": "Gantt",+ "heading": "Vue"},"common": {"selectTask": "Sélectionner une tâche",@@ -2597,7 +2603,8 @@"terracotta": "Terre cuite","rose": "Rose","crimson": "Cramoisi"- }+ },+ "editLabels": "Modifier les labels"}},"backlog": {@@ -2803,7 +2810,8 @@"taskAriaLabel": "{{title}}, {{range}} : ouvrir la tâche","title": "Calendrier","today": "Aujourd’hui",- "loadError": "Échec du chargement des tâches."+ "loadError": "Échec du chargement des tâches.",+ "noTasksThisMonth": "Rien de planifié ce mois-ci"},"descriptionSearchLoading": "Searching full descriptions…","descriptionSearchError": "Description search failed. Results may be incomplete.",diff --git a/i18n/hi-IN.json b/i18n/hi-IN.jsonindex 1bd43ab20..2548e74de 100644--- a/i18n/hi-IN.json+++ b/i18n/hi-IN.json@@ -1099,7 +1099,9 @@"on": "चालू","off": "बंद","newColumnPlaceholder": "नया कॉलम नाम...",- "add": "जोड़ें"+ "add": "जोड़ें",+ "deleteAria": "{{name}} कॉलम हटाएँ",+ "renameAria": "{{name}} कॉलम का नाम बदलें"},"githubIntegration": {"validation": {@@ -2066,7 +2068,8 @@"deleteConfirmTitle": "प्रोजेक्ट हटाएँ?","deleteConfirmDescription": "यह प्रोजेक्ट और इसका सभी डेटा स्थायी रूप से हटा दिया जाएगा। यह कार्रवाई पूर्ववत नहीं की जा सकती।","deletedToast": "प्रोजेक्ट हटाया गया",- "deleteProject": "प्रोजेक्ट हटाएँ"+ "deleteProject": "प्रोजेक्ट हटाएँ",+ "switcherLabel": "प्रोजेक्ट या व्यू बदलें"},"search": {"inputPlaceholder": "कार्य, प्रोजेक्ट, टिप्पणियाँ खोजें...",@@ -2352,7 +2355,10 @@"boardSearchPlaceholder": "टिकट खोजें...","view": {"board": "बोर्ड",- "list": "सूची"+ "list": "सूची",+ "backlog": "बैकलॉग",+ "gantt": "गैंट",+ "heading": "व्यू"},"common": {"selectTask": "कार्य चुनें",@@ -2582,7 +2588,8 @@"terracotta": "टेराकोटा","rose": "गुलाब","crimson": "किरमिज़ी"- }+ },+ "editLabels": "लेबल संपादित करें"}},"backlog": {@@ -2787,7 +2794,8 @@"taskAriaLabel": "{{title}}, {{range}}: कार्य खोलें","title": "कैलेंडर","today": "आज",- "loadError": "कार्य लोड नहीं हो सके।"+ "loadError": "कार्य लोड नहीं हो सके।",+ "noTasksThisMonth": "इस महीने कुछ भी शेड्यूल नहीं है"},"descriptionSearchLoading": "Searching full descriptions…","descriptionSearchError": "Description search failed. Results may be incomplete.",diff --git a/i18n/id-ID.json b/i18n/id-ID.jsonindex 262110da9..7523768f9 100644--- a/i18n/id-ID.json+++ b/i18n/id-ID.json@@ -863,7 +863,9 @@"on": "Aktif","off": "Nonaktif","newColumnPlaceholder": "Nama kolom baru...",- "add": "Tambah"+ "add": "Tambah",+ "deleteAria": "Hapus kolom {{name}}",+ "renameAria": "Ganti nama kolom {{name}}"},"githubIntegration": {"validation": {@@ -2055,7 +2057,8 @@"deleteConfirmTitle": "Hapus Proyek?","deleteConfirmDescription": "Ini akan menghapus proyek dan semua datanya secara permanen. Anda tidak dapat membatalkan tindakan ini.","deletedToast": "Proyek dihapus",- "deleteProject": "Hapus Proyek"+ "deleteProject": "Hapus Proyek",+ "switcherLabel": "Ganti proyek atau tampilan"},"search": {"inputPlaceholder": "Cari tugas, proyek, komentar...",@@ -2337,7 +2340,10 @@"boardSearchPlaceholder": "Cari tiket...","view": {"board": "Papan",- "list": "Daftar"+ "list": "Daftar",+ "backlog": "Backlog",+ "gantt": "Gantt",+ "heading": "Tampilan"},"common": {"selectTask": "Pilih tugas",@@ -2567,7 +2573,8 @@"terracotta": "Terracotta","rose": "Rose","crimson": "Crimson"- }+ },+ "editLabels": "Edit label"}},"backlog": {@@ -2771,7 +2778,8 @@"taskAriaLabel": "{{title}}, {{range}}: buka tugas","title": "Kalender","today": "Hari ini",- "loadError": "Gagal memuat tugas."+ "loadError": "Gagal memuat tugas.",+ "noTasksThisMonth": "Tidak ada yang terjadwal bulan ini"},"descriptionSearchLoading": "Searching full descriptions…","descriptionSearchError": "Description search failed. Results may be incomplete.",diff --git a/i18n/it-IT.json b/i18n/it-IT.jsonindex d4551379c..4e93c9338 100644--- a/i18n/it-IT.json+++ b/i18n/it-IT.json@@ -1101,7 +1101,9 @@"on": "Attivo","off": "Disattivo","newColumnPlaceholder": "Nuovo nome colonna...",- "add": "Aggiungi"+ "add": "Aggiungi",+ "deleteAria": "Elimina la colonna {{name}}",+ "renameAria": "Rinomina la colonna {{name}}"},"githubIntegration": {"validation": {@@ -2077,7 +2079,8 @@"deleteConfirmTitle": "Eliminare il Progetto?","deleteConfirmDescription": "Questo rimuoverà permanentemente il progetto e tutti i suoi dati. Non puoi annullare questa azione.","deletedToast": "Progetto eliminato",- "deleteProject": "Elimina Progetto"+ "deleteProject": "Elimina Progetto",+ "switcherLabel": "Cambia progetto o vista"},"search": {"inputPlaceholder": "Cerca attività, progetti, commenti...",@@ -2367,7 +2370,10 @@"boardSearchPlaceholder": "Cerca ticket...","view": {"board": "Board",- "list": "Elenco"+ "list": "Elenco",+ "backlog": "Backlog",+ "gantt": "Gantt",+ "heading": "Vista"},"common": {"selectTask": "Seleziona attività",@@ -2597,7 +2603,8 @@"terracotta": "Terracotta","rose": "Rosa","crimson": "Cremisi"- }+ },+ "editLabels": "Modifica etichette"}},"backlog": {@@ -2803,7 +2810,8 @@"taskAriaLabel": "{{title}}, {{range}}: apri attività","title": "Calendario","today": "Oggi",- "loadError": "Impossibile caricare le attività."+ "loadError": "Impossibile caricare le attività.",+ "noTasksThisMonth": "Niente in programma questo mese"},"descriptionSearchLoading": "Searching full descriptions…","descriptionSearchError": "Description search failed. Results may be incomplete.",diff --git a/i18n/ja-JP.json b/i18n/ja-JP.jsonindex ffc384bdd..f4a01de5b 100644--- a/i18n/ja-JP.json+++ b/i18n/ja-JP.json@@ -1097,7 +1097,9 @@"on": "オン","off": "オフ","newColumnPlaceholder": "新しいカラム名...",- "add": "追加"+ "add": "追加",+ "deleteAria": "{{name}} 列を削除",+ "renameAria": "{{name}} 列の名前を変更"},"githubIntegration": {"validation": {@@ -2055,7 +2057,8 @@"deleteConfirmTitle": "プロジェクトを削除しますか?","deleteConfirmDescription": "これにより、プロジェクトとそのすべてのデータが完全に削除されます。この操作は取り消せません。","deletedToast": "プロジェクトを削除しました",- "deleteProject": "プロジェクトを削除"+ "deleteProject": "プロジェクトを削除",+ "switcherLabel": "プロジェクトまたはビューを切り替え"},"search": {"inputPlaceholder": "タスク、プロジェクト、コメントを検索...",@@ -2337,7 +2340,10 @@"boardSearchPlaceholder": "チケットを検索...","view": {"board": "ボード",- "list": "リスト"+ "list": "リスト",+ "backlog": "バックログ",+ "gantt": "ガント",+ "heading": "ビュー"},"common": {"selectTask": "タスクを選択",@@ -2567,7 +2573,8 @@"terracotta": "テラコッタ","rose": "ローズ","crimson": "クリムゾン"- }+ },+ "editLabels": "ラベルを編集"}},"backlog": {@@ -2646,7 +2653,8 @@"moreTasks": "+{{count}} 件","loadError": "タスクの読み込みに失敗しました。","dayTasksAriaLabel": "{{date}}のすべてのタスクを表示",- "taskAriaLabel": "{{title}}、{{range}}: タスクを開く"+ "taskAriaLabel": "{{title}}、{{range}}: タスクを開く",+ "noTasksThisMonth": "今月の予定はありません"},"gantt": {"pageTitle": "{{name}} – ガントチャート",diff --git a/i18n/ko-KR.json b/i18n/ko-KR.jsonindex 32a02c4d7..96c9115b6 100644--- a/i18n/ko-KR.json+++ b/i18n/ko-KR.json@@ -863,7 +863,9 @@"on": "켜짐","off": "꺼짐","newColumnPlaceholder": "새 컬럼 이름...",- "add": "추가"+ "add": "추가",+ "deleteAria": "{{name}} 열 삭제",+ "renameAria": "{{name}} 열 이름 변경"},"githubIntegration": {"validation": {@@ -2055,7 +2057,8 @@"deleteConfirmTitle": "프로젝트를 삭제하시겠습니까?","deleteConfirmDescription": "프로젝트와 모든 데이터가 영구적으로 제거됩니다. 이 작업은 취소할 수 없습니다.","deletedToast": "프로젝트가 삭제되었습니다",- "deleteProject": "프로젝트 삭제"+ "deleteProject": "프로젝트 삭제",+ "switcherLabel": "프로젝트 또는 보기 전환"},"search": {"inputPlaceholder": "작업, 프로젝트, 댓글 검색...",@@ -2337,7 +2340,10 @@"boardSearchPlaceholder": "티켓 검색...","view": {"board": "보드",- "list": "목록"+ "list": "목록",+ "backlog": "백로그",+ "gantt": "간트",+ "heading": "보기"},"common": {"selectTask": "작업 선택",@@ -2567,7 +2573,8 @@"terracotta": "테라코타","rose": "로즈","crimson": "크림슨"- }+ },+ "editLabels": "라벨 편집"}},"backlog": {@@ -2646,7 +2653,8 @@"moreTasks": "+{{count}}개","loadError": "작업을 불러오지 못했습니다.","dayTasksAriaLabel": "{{date}}의 모든 작업 보기",- "taskAriaLabel": "{{title}}, {{range}}: 작업 열기"+ "taskAriaLabel": "{{title}}, {{range}}: 작업 열기",+ "noTasksThisMonth": "이번 달 예정된 항목이 없습니다"},"gantt": {"pageTitle": "{{name}} – 간트",diff --git a/i18n/mk-MK.json b/i18n/mk-MK.jsonindex f316fe018..1b2e70d91 100644--- a/i18n/mk-MK.json+++ b/i18n/mk-MK.json@@ -864,7 +864,9 @@"on": "Вклучено","off": "Исклучено","newColumnPlaceholder": "Име на нова колона...",- "add": "Додади"+ "add": "Додади",+ "deleteAria": "Избриши ја колоната {{name}}",+ "renameAria": "Преименувај ја колоната {{name}}"},"githubIntegration": {"validation": {@@ -2066,7 +2068,8 @@"deleteConfirmTitle": "Избриши проект?","deleteConfirmDescription": "Ова трајно ќе го отстрани проектот и сите негови податоци. Не можеш да ја вратиш оваа акција.","deletedToast": "Проектот е избришан",- "deleteProject": "Избриши проект"+ "deleteProject": "Избриши проект",+ "switcherLabel": "Промени проект или приказ"},"search": {"inputPlaceholder": "Пребарај задачи, проекти, коментари...",@@ -2352,7 +2355,10 @@"boardSearchPlaceholder": "Пребарај тикети...","view": {"board": "Табла",- "list": "Листа"+ "list": "Листа",+ "backlog": "Заостанати",+ "gantt": "Gantt",+ "heading": "Приказ"},"common": {"selectTask": "Избери задача",@@ -2582,7 +2588,8 @@"terracotta": "Теракота","rose": "Роза","crimson": "Гримизна"- }+ },+ "editLabels": "Уреди етикети"}},"backlog": {@@ -2787,7 +2794,8 @@"taskAriaLabel": "{{title}}, {{range}}: отвори задача","title": "Календар","today": "Денес",- "loadError": "Неуспешно вчитување на задачите."+ "loadError": "Неуспешно вчитување на задачите.",+ "noTasksThisMonth": "Ништо не е закажано овој месец"},"descriptionSearchLoading": "Searching full descriptions…","descriptionSearchError": "Description search failed. Results may be incomplete.",diff --git a/i18n/nl-NL.json b/i18n/nl-NL.jsonindex ecbd2bd27..c4a0fd99f 100644--- a/i18n/nl-NL.json+++ b/i18n/nl-NL.json@@ -760,7 +760,9 @@"on": "Aan","off": "Uit","newColumnPlaceholder": "Nieuwe kolomnaam...",- "add": "Toevoegen"+ "add": "Toevoegen",+ "deleteAria": "Kolom {{name}} verwijderen",+ "renameAria": "Kolom {{name}} hernoemen"},"githubIntegration": {"validation": {@@ -2066,7 +2068,8 @@"deleteConfirmTitle": "Project verwijderen?","deleteConfirmDescription": "Dit zal het project en alle data permanent verwijderen. Dit kan niet ongedaan worden gemaakt.","deletedToast": "Project verwijderd",- "deleteProject": "Project verwijderen"+ "deleteProject": "Project verwijderen",+ "switcherLabel": "Project of weergave wisselen"},"search": {"inputPlaceholder": "Zoek taken, projecten, reacties...",@@ -2352,7 +2355,10 @@"boardSearchPlaceholder": "Tickets zoeken...","view": {"board": "Bord",- "list": "Lijst"+ "list": "Lijst",+ "backlog": "Backlog",+ "gantt": "Gantt",+ "heading": "Weergave"},"common": {"selectTask": "Selecteer taak",@@ -2571,7 +2577,8 @@"terracotta": "Terracotta","rose": "Roos","crimson": "Karmozijn"- }+ },+ "editLabels": "Labels bewerken"}},"backlog": {@@ -2787,7 +2794,8 @@"taskAriaLabel": "{{title}}, {{range}}: taak openen","title": "Kalender","today": "Vandaag",- "loadError": "Taken konden niet worden geladen."+ "loadError": "Taken konden niet worden geladen.",+ "noTasksThisMonth": "Niets gepland deze maand"},"descriptionSearchLoading": "Searching full descriptions…","descriptionSearchError": "Description search failed. Results may be incomplete.",diff --git a/i18n/pl-PL.json b/i18n/pl-PL.jsonindex d55845e1f..f3fc75f9b 100644--- a/i18n/pl-PL.json+++ b/i18n/pl-PL.json@@ -466,7 +466,8 @@"deleteConfirmTitle": "Usunąć projekt?","deleteConfirmDescription": "Spowoduje to trwałe usunięcie projektu i wszystkich jego danych. Nie można tego cofnąć.","deletedToast": "Projekt usunięty",- "deleteProject": "Usuń projekt"+ "deleteProject": "Usuń projekt",+ "switcherLabel": "Przełącz projekt lub widok"},"search": {"inputPlaceholder": "Szukaj zadań, projektów i komentarzy...",@@ -1094,7 +1095,9 @@"toastIconUpdated": "Zaktualizowano ikonę kolumny","toastRenamed": "Zmieniono nazwę kolumny","toastRenameError": "Nie udało się zmienić nazwy kolumny",- "toastUpdateError": "Nie udało się zaktualizować kolumny"+ "toastUpdateError": "Nie udało się zaktualizować kolumny",+ "deleteAria": "Usuń kolumnę {{name}}",+ "renameAria": "Zmień nazwę kolumny {{name}}"},"developer": "Deweloper","developerPage": {@@ -2906,7 +2909,8 @@"moreTasks": "+{{count}} więcej","loadError": "Nie udało się załadować zadań.","dayTasksAriaLabel": "Pokaż wszystkie zadania z dnia {{date}}",- "taskAriaLabel": "{{title}}, {{range}}: otwórz zadanie"+ "taskAriaLabel": "{{title}}, {{range}}: otwórz zadanie",+ "noTasksThisMonth": "Nic nie zaplanowano w tym miesiącu"},"gantt": {"hideTasks": "Ukryj zadania",@@ -2983,7 +2987,8 @@"empty": "Nie znaleziono etykiet","removeSuccess": "Usunięto etykietę","searchPlaceholder": "Szukaj etykiet...",- "updateError": "Nie udało się zaktualizować etykiety"+ "updateError": "Nie udało się zaktualizować etykiety",+ "editLabels": "Edytuj etykiety"},"priority": {"updateError": "Nie udało się zaktualizować priorytetu zadania"@@ -3089,7 +3094,10 @@},"view": {"board": "Tablica",- "list": "Lista"+ "list": "Lista",+ "backlog": "Backlog",+ "gantt": "Gantt",+ "heading": "Widok"},"descriptionSearchLoading": "Searching full descriptions…","descriptionSearchError": "Description search failed. Results may be incomplete.",diff --git a/i18n/pt-BR.json b/i18n/pt-BR.jsonindex 777b02971..f1e477681 100644--- a/i18n/pt-BR.json+++ b/i18n/pt-BR.json@@ -1101,7 +1101,9 @@"on": "Ativado","off": "Desativado","newColumnPlaceholder": "Nome da nova coluna...",- "add": "Adicionar"+ "add": "Adicionar",+ "deleteAria": "Excluir a coluna {{name}}",+ "renameAria": "Renomear a coluna {{name}}"},"githubIntegration": {"validation": {@@ -2077,7 +2079,8 @@"deleteConfirmTitle": "Excluir projeto?","deleteConfirmDescription": "Isso removerá permanentemente o projeto e todos os seus dados. Você não pode desfazer esta ação.","deletedToast": "Projeto excluído",- "deleteProject": "Excluir projeto"+ "deleteProject": "Excluir projeto",+ "switcherLabel": "Trocar de projeto ou visualização"},"search": {"inputPlaceholder": "Buscar tarefas, projetos, comentários...",@@ -2367,7 +2370,10 @@"boardSearchPlaceholder": "Buscar tickets...","view": {"board": "Quadro",- "list": "Lista"+ "list": "Lista",+ "backlog": "Backlog",+ "gantt": "Gantt",+ "heading": "Visualização"},"common": {"selectTask": "Selecionar tarefa",@@ -2597,7 +2603,8 @@"terracotta": "Terracota","rose": "Rosa","crimson": "Carmesim"- }+ },+ "editLabels": "Editar etiquetas"}},"backlog": {@@ -2803,7 +2810,8 @@"taskAriaLabel": "{{title}}, {{range}}: abrir tarefa","title": "Calendário","today": "Hoje",- "loadError": "Falha ao carregar as tarefas."+ "loadError": "Falha ao carregar as tarefas.",+ "noTasksThisMonth": "Nada agendado neste mês"},"descriptionSearchLoading": "Searching full descriptions…","descriptionSearchError": "Description search failed. Results may be incomplete.",diff --git a/i18n/ru-RU.json b/i18n/ru-RU.jsonindex da6f5f3aa..32f9e9f57 100644--- a/i18n/ru-RU.json+++ b/i18n/ru-RU.json@@ -866,7 +866,9 @@"on": "Вкл","off": "Выкл","newColumnPlaceholder": "Название новой колонки...",- "add": "Добавить"+ "add": "Добавить",+ "deleteAria": "Удалить столбец {{name}}",+ "renameAria": "Переименовать столбец {{name}}"},"githubIntegration": {"validation": {@@ -2096,7 +2098,8 @@"deleteConfirmTitle": "Удалить проект?","deleteConfirmDescription": "Проект и все его данные будут безвозвратно удалены. Это действие нельзя отменить.","deletedToast": "Проект удалён",- "deleteProject": "Удалить проект"+ "deleteProject": "Удалить проект",+ "switcherLabel": "Сменить проект или вид"},"search": {"inputPlaceholder": "Поиск задач, проектов, комментариев...",@@ -2390,7 +2393,10 @@"boardSearchPlaceholder": "Поиск задач...","view": {"board": "Доска",- "list": "Список"+ "list": "Список",+ "backlog": "Бэклог",+ "gantt": "Гант",+ "heading": "Вид"},"common": {"selectTask": "Выбрать задачу",@@ -2620,7 +2626,8 @@"terracotta": "Терракота","rose": "Роза","crimson": "Малиновый"- }+ },+ "editLabels": "Изменить метки"}},"backlog": {@@ -2875,7 +2882,8 @@"taskAriaLabel": "{{title}}, {{range}}: открыть задачу","title": "Календарь","today": "Сегодня",- "loadError": "Не удалось загрузить задачи."+ "loadError": "Не удалось загрузить задачи.",+ "noTasksThisMonth": "В этом месяце ничего не запланировано"},"descriptionSearchLoading": "Searching full descriptions…","descriptionSearchError": "Description search failed. Results may be incomplete.",diff --git a/i18n/tr-TR.json b/i18n/tr-TR.jsonindex 7b4cd4a5f..736433af3 100644--- a/i18n/tr-TR.json+++ b/i18n/tr-TR.json@@ -864,7 +864,9 @@"on": "Açık","off": "Kapalı","newColumnPlaceholder": "Yeni sütun adı...",- "add": "Ekle"+ "add": "Ekle",+ "deleteAria": "{{name}} sütununu sil",+ "renameAria": "{{name}} sütununu yeniden adlandır"},"githubIntegration": {"validation": {@@ -2066,7 +2068,8 @@"deleteConfirmTitle": "Proje Silinsin mi?","deleteConfirmDescription": "Bu, projeyi ve tüm verilerini kalıcı olarak kaldıracak. Bu işlemi geri alamazsınız.","deletedToast": "Proje silindi",- "deleteProject": "Projeyi Sil"+ "deleteProject": "Projeyi Sil",+ "switcherLabel": "Proje veya görünüm değiştir"},"search": {"inputPlaceholder": "Talep, proje, yorum ara...",@@ -2352,7 +2355,10 @@"boardSearchPlaceholder": "Talep ara...","view": {"board": "Pano",- "list": "Liste"+ "list": "Liste",+ "backlog": "Backlog",+ "gantt": "Gantt",+ "heading": "Görünüm"},"common": {"selectTask": "Talep seç",@@ -2582,7 +2588,8 @@"terracotta": "Terakota","rose": "Gül Kurusu","crimson": "Koyu Kırmızı"- }+ },+ "editLabels": "Etiketleri düzenle"}},"backlog": {@@ -2787,7 +2794,8 @@"taskAriaLabel": "{{title}}, {{range}}: talebi aç","title": "Takvim","today": "Bugün",- "loadError": "Talepler yüklenemedi."+ "loadError": "Talepler yüklenemedi.",+ "noTasksThisMonth": "Bu ay planlanmış bir şey yok"},"descriptionSearchLoading": "Searching full descriptions…","descriptionSearchError": "Description search failed. Results may be incomplete.",diff --git a/i18n/uk-UA.json b/i18n/uk-UA.jsonindex c58832ce2..f59fc7b7a 100644--- a/i18n/uk-UA.json+++ b/i18n/uk-UA.json@@ -866,7 +866,9 @@"on": "Увімк.","off": "Вимк.","newColumnPlaceholder": "Назва нової колонки...",- "add": "Додати"+ "add": "Додати",+ "deleteAria": "Видалити стовпець {{name}}",+ "renameAria": "Перейменувати стовпець {{name}}"},"githubIntegration": {"validation": {@@ -2088,7 +2090,8 @@"deleteConfirmTitle": "Видалити проєкт?","deleteConfirmDescription": "Це назавжди видалить проєкт та всі його дані. Цю дію неможливо скасувати.","deletedToast": "Проєкт видалено",- "deleteProject": "Видалити проєкт"+ "deleteProject": "Видалити проєкт",+ "switcherLabel": "Змінити проєкт або вигляд"},"search": {"inputPlaceholder": "Пошук завдань, проєктів, коментарів...",@@ -2382,7 +2385,10 @@"boardSearchPlaceholder": "Пошук тікетів...","view": {"board": "Дошка",- "list": "Список"+ "list": "Список",+ "backlog": "Беклог",+ "gantt": "Ґант",+ "heading": "Вигляд"},"common": {"selectTask": "Обрати завдання",@@ -2612,7 +2618,8 @@"terracotta": "Теракота","rose": "Троянда","crimson": "Багряний"- }+ },+ "editLabels": "Редагувати мітки"}},"backlog": {@@ -2819,7 +2826,8 @@"taskAriaLabel": "{{title}}, {{range}}: відкрити завдання","title": "Календар","today": "Сьогодні",- "loadError": "Не вдалося завантажити завдання."+ "loadError": "Не вдалося завантажити завдання.",+ "noTasksThisMonth": "Цього місяця нічого не заплановано"},"descriptionSearchLoading": "Searching full descriptions…","descriptionSearchError": "Description search failed. Results may be incomplete.",diff --git a/i18n/vi-VN.json b/i18n/vi-VN.jsonindex f2fdf2d8e..1b45bfe60 100644--- a/i18n/vi-VN.json+++ b/i18n/vi-VN.json@@ -1097,7 +1097,9 @@"on": "Bật","off": "Tắt","newColumnPlaceholder": "Tên cột mới...",- "add": "Thêm"+ "add": "Thêm",+ "deleteAria": "Xóa cột {{name}}",+ "renameAria": "Đổi tên cột {{name}}"},"githubIntegration": {"validation": {@@ -2055,7 +2057,8 @@"deleteConfirmTitle": "Xóa dự án?","deleteConfirmDescription": "Thao tác này sẽ xóa vĩnh viễn dự án và toàn bộ dữ liệu của nó. Bạn không thể hoàn tác hành động này.","deletedToast": "Đã xóa dự án",- "deleteProject": "Xóa dự án"+ "deleteProject": "Xóa dự án",+ "switcherLabel": "Chuyển dự án hoặc chế độ xem"},"search": {"inputPlaceholder": "Tìm công việc, dự án, bình luận...",@@ -2337,7 +2340,10 @@"boardSearchPlaceholder": "Tìm phiếu...","view": {"board": "Bảng",- "list": "Danh sách"+ "list": "Danh sách",+ "backlog": "Backlog",+ "gantt": "Gantt",+ "heading": "Chế độ xem"},"common": {"selectTask": "Chọn công việc",@@ -2567,7 +2573,8 @@"terracotta": "Đất nung","rose": "Hồng","crimson": "Đỏ thẫm"- }+ },+ "editLabels": "Chỉnh sửa nhãn"}},"backlog": {@@ -2771,7 +2778,8 @@"taskAriaLabel": "{{title}}, {{range}}: mở công việc","title": "Lịch","today": "Hôm nay",- "loadError": "Không thể tải công việc."+ "loadError": "Không thể tải công việc.",+ "noTasksThisMonth": "Không có gì được lên lịch trong tháng này"},"descriptionSearchLoading": "Searching full descriptions…","descriptionSearchError": "Description search failed. Results may be incomplete.",diff --git a/i18n/zh-CN.json b/i18n/zh-CN.jsonindex 1b4424dc7..c81ea74aa 100644--- a/i18n/zh-CN.json+++ b/i18n/zh-CN.json@@ -1097,7 +1097,9 @@"on": "开","off": "关","newColumnPlaceholder": "新列名称…",- "add": "添加"+ "add": "添加",+ "deleteAria": "删除 {{name}} 列",+ "renameAria": "重命名 {{name}} 列"},"githubIntegration": {"validation": {@@ -2055,7 +2057,8 @@"deleteConfirmTitle": "删除项目?","deleteConfirmDescription": "这将永久删除项目及其所有数据,此操作不可撤销。","deletedToast": "项目已删除",- "deleteProject": "删除项目"+ "deleteProject": "删除项目",+ "switcherLabel": "切换项目或视图"},"search": {"inputPlaceholder": "搜索任务、项目、评论…",@@ -2337,7 +2340,10 @@"boardSearchPlaceholder": "搜索工单…","view": {"board": "看板",- "list": "列表"+ "list": "列表",+ "backlog": "待办",+ "gantt": "甘特图",+ "heading": "视图"},"common": {"selectTask": "选择任务",@@ -2567,7 +2573,8 @@"terracotta": "赤陶","rose": "玫红","crimson": "深红"- }+ },+ "editLabels": "编辑标签"}},"backlog": {@@ -2646,7 +2653,8 @@"moreTasks": "+{{count}} 项","loadError": "任务加载失败。","dayTasksAriaLabel": "查看 {{date}} 的全部任务",- "taskAriaLabel": "{{title}},{{range}}:打开任务"+ "taskAriaLabel": "{{title}},{{range}}:打开任务",+ "noTasksThisMonth": "本月没有安排"},"gantt": {"pageTitle": "{{name}} – 甘特图",diff --git a/i18n/zh-TW.json b/i18n/zh-TW.jsonindex 0c42c79bb..d69cf60bf 100644--- a/i18n/zh-TW.json+++ b/i18n/zh-TW.json@@ -1096,7 +1096,9 @@"on": "開","off": "關","newColumnPlaceholder": "新欄位名稱…",- "add": "新增"+ "add": "新增",+ "deleteAria": "刪除 {{name}} 欄",+ "renameAria": "重新命名 {{name}} 欄"},"githubIntegration": {"validation": {@@ -2055,7 +2057,8 @@"deleteConfirmTitle": "要刪除專案嗎?","deleteConfirmDescription": "這會永久移除專案及其所有資料,此操作無法復原。","deletedToast": "專案已刪除",- "deleteProject": "刪除專案"+ "deleteProject": "刪除專案",+ "switcherLabel": "切換專案或檢視"},"search": {"inputPlaceholder": "搜尋任務、專案、留言...",@@ -2337,7 +2340,10 @@"boardSearchPlaceholder": "搜尋任務…","view": {"board": "看板",- "list": "清單"+ "list": "清單",+ "backlog": "待辦",+ "gantt": "甘特圖",+ "heading": "檢視"},"common": {"selectTask": "選取任務",@@ -2567,7 +2573,8 @@"terracotta": "赤陶","rose": "玫瑰紅","crimson": "深紅"- }+ },+ "editLabels": "編輯標籤"}},"backlog": {@@ -2646,7 +2653,8 @@"moreTasks": "+{{count}} 項","loadError": "載入任務失敗。","dayTasksAriaLabel": "查看 {{date}} 的所有任務",- "taskAriaLabel": "{{title}},{{range}}:開啟任務"+ "taskAriaLabel": "{{title}},{{range}}:開啟任務",+ "noTasksThisMonth": "本月沒有排程"},"gantt": {"pageTitle": "{{name}} - 甘特圖",diff --git a/packages/permissions/src/capabilities.test.ts b/packages/permissions/src/capabilities.test.tsnew file mode 100644index 000000000..04131eb2c--- /dev/null+++ b/packages/permissions/src/capabilities.test.ts@@ -0,0 +1,19 @@+import { describe, expect, it } from "vite-plus/test";+import { workspaceCapabilities } from "./capabilities";+import { statement } from "./index";++describe("workspaceCapabilities", () => {+ it("only names resources and actions from the permission statement", () => {+ const known = statement as Record<string, readonly string[]>;+ for (const [name, permissions] of Object.entries(workspaceCapabilities)) {+ for (const [resource, actions] of Object.entries(permissions)) {+ expect(known[resource], `${name} → ${resource}`).toBeDefined();+ for (const action of actions) {+ expect(known[resource], `${name} → ${resource}:${action}`).toContain(+ action,+ );+ }+ }+ }+ });+});diff --git a/packages/permissions/src/capabilities.ts b/packages/permissions/src/capabilities.tsnew file mode 100644index 000000000..bb233f67e--- /dev/null+++ b/packages/permissions/src/capabilities.ts@@ -0,0 +1,30 @@+// Named permission bundles the web app gates UI on. The API evaluates them all+// in one request (GET /workspace/{id}/capabilities) with the same rules it+// enforces, so custom workspace roles behave the same in the UI and the API.+export const workspaceCapabilities = {+ manageProjects: { project: ["create", "update", "delete"] },+ createProjects: { project: ["create"] },+ updateProjects: { project: ["update"] },+ shareProjects: { project: ["share"] },+ deleteProjects: { project: ["delete"] },+ updateTasks: { task: ["update"] },+ createTasks: { task: ["create"] },+ deleteTasks: { task: ["delete"] },+ assignTasks: { task: ["assign"] },+ createLabels: { label: ["create"] },+ updateLabels: { label: ["update"] },+ deleteLabels: { label: ["delete"] },+ manageWorkspace: { workspace: ["update", "manage_settings"] },+ manageSettings: { workspace: ["manage_settings"] },+ deleteWorkspace: { workspace: ["delete"] },+ inviteUsers: { invitation: ["create"] },+ manageTeam: { member: ["update", "delete"] },+ updateMembers: { member: ["update"] },+ removeMembers: { member: ["delete"] },+} as const satisfies Record<string, Record<string, readonly string[]>>;++export type WorkspaceCapability = keyof typeof workspaceCapabilities;++export const WORKSPACE_CAPABILITY_NAMES = Object.keys(+ workspaceCapabilities,+) as WorkspaceCapability[];diff --git a/packages/permissions/src/index.ts b/packages/permissions/src/index.tsindex 5f1c61340..c589a047b 100644--- a/packages/permissions/src/index.ts+++ b/packages/permissions/src/index.ts@@ -82,3 +82,9 @@ export const defaultRolePayloads: Record<member: toMutablePayload(member.statements),admin: toMutablePayload(admin.statements),};++export {+ WORKSPACE_CAPABILITY_NAMES,+ type WorkspaceCapability,+ workspaceCapabilities,+} from "./capabilities.js";diff --git a/packages/permissions/vite.config.ts b/packages/permissions/vite.config.tsindex b88b19770..caec6606d 100644--- a/packages/permissions/vite.config.ts+++ b/packages/permissions/vite.config.ts@@ -11,6 +11,8 @@ export default defineConfig({cache: {input: [{ auto: true },+ "src/**",+ "tsconfig.json",".env*",{ pattern: ".env*", base: "workspace" },],diff --git a/tests/api-integration/database-utc-defaults.test.ts b/tests/api-integration/database-utc-defaults.test.tsnew file mode 100644index 000000000..8b73b85d2--- /dev/null+++ b/tests/api-integration/database-utc-defaults.test.ts@@ -0,0 +1,36 @@+import { eq, sql } from "drizzle-orm";+import { afterAll, beforeEach, expect, it, vi } from "vite-plus/test";+import db, { schema } from "../../apps/api/src/database";+import { resetTestDatabase } from "./helpers/database";++// Set this before the lazy database pool opens any connections, including in CI.+vi.stubEnv("PGOPTIONS", "-c timezone=Europe/Paris");+afterAll(() => vi.unstubAllEnvs());++beforeEach(() => resetTestDatabase());++it("stores database-default timestamps as UTC when the session time zone isn't UTC", async () => {+ const timezone = await db.execute<{ timezone: string }>(+ sql`SELECT current_setting('TimeZone') AS timezone`,+ );+ expect(timezone.rows[0]?.timezone).toBe("Europe/Paris");++ const before = Date.now();+ // createdAt is left to the column default.+ await db.insert(schema.verificationTable).values({+ id: "utc-defaults",+ identifier: "utc-defaults",+ value: "value",+ expiresAt: new Date(before + 60_000),+ });+ const after = Date.now();++ const [row] = await db+ .select({ createdAt: schema.verificationTable.createdAt })+ .from(schema.verificationTable)+ .where(eq(schema.verificationTable.id, "utc-defaults"));++ const createdAt = row?.createdAt.getTime() ?? 0;+ expect(createdAt).toBeGreaterThanOrEqual(before - 1_000);+ expect(createdAt).toBeLessThanOrEqual(after + 1_000);+});diff --git a/tests/api-integration/workspace-capabilities.test.ts b/tests/api-integration/workspace-capabilities.test.tsnew file mode 100644index 000000000..697cb4c69--- /dev/null+++ b/tests/api-integration/workspace-capabilities.test.ts@@ -0,0 +1,144 @@+import { beforeEach, expect, it } from "vite-plus/test";+import db, { schema } from "../../apps/api/src/database";+import { createApp } from "../../apps/api/src/index";+import {+ defaultRolePayloads,+ WORKSPACE_CAPABILITY_NAMES,+} from "../../packages/permissions/src";+import { resetTestDatabase } from "./helpers/database";++const origin = "http://localhost:5173";+const { app } = createApp();++async function signup(email: string) {+ const result = await app.request("/api/auth/sign-up/email", {+ method: "POST",+ headers: { "content-type": "application/json", Origin: origin },+ body: JSON.stringify({+ name: "Capabilities test",+ email,+ password: "long-password-for-tests",+ }),+ });+ expect(result.status).toBe(200);+ const body = await result.json();+ const cookie = result.headers+ .getSetCookie()+ .map((entry) => entry.split(";")[0])+ .join("; ");+ return { id: body.user.id as string, cookie };+}++function getCapabilities(workspaceId: string, cookie: string) {+ return app.request(`/api/workspace/${workspaceId}/capabilities`, {+ headers: { Origin: origin, Cookie: cookie },+ });+}++async function seedWorkspace() {+ const [workspace] = await db+ .insert(schema.workspaceTable)+ .values({+ id: "capabilities-workspace",+ name: "Workspace",+ slug: "capabilities",+ createdAt: new Date(),+ })+ .returning();+ await db.insert(schema.workspaceRoleTable).values([+ {+ workspaceId: workspace.id,+ role: "viewer",+ permission: JSON.stringify(defaultRolePayloads.viewer),+ createdAt: new Date(),+ updatedAt: new Date(),+ },+ {+ workspaceId: workspace.id,+ role: "triage",+ permission: JSON.stringify({+ workspace: ["read"],+ project: ["read"],+ task: ["read", "create", "update"],+ }),+ createdAt: new Date(),+ updatedAt: new Date(),+ },+ ]);+ return workspace;+}++beforeEach(() => resetTestDatabase());++it("reports every capability for the caller's role in one response", async () => {+ const owner = await signup("[email protected]");+ const viewer = await signup("[email protected]");+ const triage = await signup("[email protected]");+ const workspace = await seedWorkspace();+ await db.insert(schema.workspaceUserTable).values([+ {+ workspaceId: workspace.id,+ userId: owner.id,+ role: "owner",+ joinedAt: new Date(),+ },+ {+ workspaceId: workspace.id,+ userId: viewer.id,+ role: "viewer",+ joinedAt: new Date(),+ },+ {+ workspaceId: workspace.id,+ userId: triage.id,+ role: "triage",+ joinedAt: new Date(),+ },+ ]);++ const ownerResponse = await getCapabilities(workspace.id, owner.cookie);+ expect(ownerResponse.status).toBe(200);+ const ownerCapabilities = await ownerResponse.json();+ expect(Object.keys(ownerCapabilities).sort()).toEqual(+ [...WORKSPACE_CAPABILITY_NAMES].sort(),+ );+ expect(Object.values(ownerCapabilities).every(Boolean)).toBe(true);++ const viewerCapabilities = await (+ await getCapabilities(workspace.id, viewer.cookie)+ ).json();+ expect(viewerCapabilities).toMatchObject({+ createTasks: false,+ updateTasks: false,+ manageWorkspace: false,+ inviteUsers: false,+ });++ // Custom roles resolve from the stored definition, like enforcement does.+ const triageCapabilities = await (+ await getCapabilities(workspace.id, triage.cookie)+ ).json();+ expect(triageCapabilities).toMatchObject({+ createTasks: true,+ updateTasks: true,+ deleteTasks: false,+ createProjects: false,+ });+});++it("does not reveal capabilities in a workspace the caller isn't in", async () => {+ // The first account on an instance becomes its admin, so sign one up before+ // the outsider to keep the outsider an ordinary user.+ const owner = await signup("[email protected]");+ const outsider = await signup("[email protected]");+ const workspace = await seedWorkspace();+ await db.insert(schema.workspaceUserTable).values({+ workspaceId: workspace.id,+ userId: owner.id,+ role: "owner",+ joinedAt: new Date(),+ });++ const response = await getCapabilities(workspace.id, outsider.cookie);+ expect(response.status).toBe(404);+});