⚡ 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
feat: gantt view and task start date (#1083)
Tin Severe1cc1ea30ecd
diff --git a/apps/api/drizzle/0017_white_omega_flight.sql b/apps/api/drizzle/0017_white_omega_flight.sqlnew file mode 100644index 000000000..acac6194a--- /dev/null+++ b/apps/api/drizzle/0017_white_omega_flight.sql@@ -0,0 +1 @@+ALTER TABLE "task" ADD COLUMN IF NOT EXISTS "start_date" timestamp;diff --git a/apps/api/drizzle/meta/0017_snapshot.json b/apps/api/drizzle/meta/0017_snapshot.jsonnew file mode 100644index 000000000..3c5e65779--- /dev/null+++ b/apps/api/drizzle/meta/0017_snapshot.json@@ -0,0 +1,2506 @@+{+ "id": "8d81a01e-bf63-4463-8a66-4d4a2bbb36a0",+ "prevId": "2f1cbcfc-998f-474d-b027-b538ced42904",+ "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()"+ },+ "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()"+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "content": {+ "name": "content",+ "type": "text",+ "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": {},+ "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": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "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()"+ }+ },+ "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": {}+ }+ },+ "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.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()"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "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()"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "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.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": true+ },+ "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()"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "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": {}+ }+ },+ "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_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()"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "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": {},+ "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()"+ },+ "inviter_id": {+ "name": "inviter_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ }+ },+ "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": {}+ }+ },+ "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.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()"+ },+ "task_id": {+ "name": "task_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ }+ },+ "indexes": {},+ "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": {},+ "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": true+ },+ "content": {+ "name": "content",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "type": {+ "name": "type",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "default": "'info'"+ },+ "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()"+ }+ },+ "indexes": {},+ "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.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()"+ },+ "is_public": {+ "name": "is_public",+ "type": "boolean",+ "primaryKey": false,+ "notNull": false,+ "default": false+ },+ "archived_at": {+ "name": "archived_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ }+ },+ "indexes": {},+ "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": {},+ "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()"+ },+ "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+ }+ },+ "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.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()"+ }+ },+ "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": {+ "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": false,+ "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()"+ }+ },+ "indexes": {},+ "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": "cascade",+ "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": {},+ "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()"+ }+ },+ "indexes": {},+ "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": "cascade",+ "onUpdate": "cascade"+ }+ },+ "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+ },+ "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()"+ },+ "is_anonymous": {+ "name": "is_anonymous",+ "type": "boolean",+ "primaryKey": false,+ "notNull": false,+ "default": false+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "user_email_unique": {+ "name": "user_email_unique",+ "nullsNotDistinct": false,+ "columns": ["email"]+ }+ },+ "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()"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "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()"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "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": {}+ }+ },+ "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_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": {}+ }+}diff --git a/apps/api/drizzle/meta/_journal.json b/apps/api/drizzle/meta/_journal.jsonindex 2d0114caf..646284162 100644--- a/apps/api/drizzle/meta/_journal.json+++ b/apps/api/drizzle/meta/_journal.json@@ -120,6 +120,13 @@"when": 1773952461673,"tag": "0016_add_task_relation","breakpoints": true+ },+ {+ "idx": 17,+ "version": "7",+ "when": 1774269662424,+ "tag": "0017_white_omega_flight",+ "breakpoints": true}]}diff --git a/apps/api/src/database/schema.ts b/apps/api/src/database/schema.tsindex 6c1086d33..8fedefbf4 100644--- a/apps/api/src/database/schema.ts+++ b/apps/api/src/database/schema.ts@@ -291,6 +291,7 @@ export const taskTable = pgTable("task", {onUpdate: "cascade",}),priority: text("priority").default("low"),+ startDate: timestamp("start_date", { mode: "date" }),dueDate: timestamp("due_date", { mode: "date" }),createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),});diff --git a/apps/api/src/schemas.ts b/apps/api/src/schemas.tsindex 85663c638..bd3f59132 100644--- a/apps/api/src/schemas.ts+++ b/apps/api/src/schemas.ts@@ -37,6 +37,7 @@ export const taskSchema = v.object({"high","urgent",] as const),+ startDate: v.optional(v.date()),dueDate: v.optional(v.date()),createdAt: v.date(),});diff --git a/apps/api/src/task/controllers/create-task.ts b/apps/api/src/task/controllers/create-task.tsindex 5bcc2e2e5..49076306b 100644--- a/apps/api/src/task/controllers/create-task.ts+++ b/apps/api/src/task/controllers/create-task.ts@@ -10,6 +10,7 @@ async function createTask({userId,title,status,+ startDate,dueDate,description,priority,@@ -18,6 +19,7 @@ async function createTask({userId?: string;title: string;status: string;+ startDate?: Date;dueDate?: Date;description?: string;priority?: string;@@ -58,6 +60,7 @@ async function createTask({title: title || "",status: status || "",columnId: column?.id ?? null,+ startDate: startDate || null,dueDate: dueDate || null,description: description || "",priority: priority || "",diff --git a/apps/api/src/task/controllers/get-task.ts b/apps/api/src/task/controllers/get-task.tsindex f50f7a37a..0c33c9d39 100644--- a/apps/api/src/task/controllers/get-task.ts+++ b/apps/api/src/task/controllers/get-task.ts@@ -12,6 +12,7 @@ async function getTask(taskId: string) {description: taskTable.description,status: taskTable.status,priority: taskTable.priority,+ startDate: taskTable.startDate,dueDate: taskTable.dueDate,position: taskTable.position,createdAt: taskTable.createdAt,diff --git a/apps/api/src/task/controllers/get-tasks.ts b/apps/api/src/task/controllers/get-tasks.tsindex b62fc5757..cf6495fff 100644--- a/apps/api/src/task/controllers/get-tasks.ts+++ b/apps/api/src/task/controllers/get-tasks.ts@@ -127,6 +127,7 @@ async function getTasks(projectId: string, options: GetTasksOptions = {}) {description: taskTable.description,status: taskTable.status,priority: taskTable.priority,+ startDate: taskTable.startDate,dueDate: taskTable.dueDate,position: taskTable.position,createdAt: taskTable.createdAt,diff --git a/apps/api/src/task/controllers/import-tasks.ts b/apps/api/src/task/controllers/import-tasks.tsindex 215b19d39..acac7dcf6 100644--- a/apps/api/src/task/controllers/import-tasks.ts+++ b/apps/api/src/task/controllers/import-tasks.ts@@ -10,6 +10,7 @@ type ImportTask = {description?: string;status: string;priority?: string;+ startDate?: string;dueDate?: string;userId?: string | null;};@@ -47,6 +48,7 @@ async function importTasks(projectId: string, tasksToImport: ImportTask[]) {title: taskData.title,status: taskData.status,columnId: column?.id ?? null,+ startDate: taskData.startDate ? new Date(taskData.startDate) : null,dueDate: taskData.dueDate ? new Date(taskData.dueDate) : null,description: taskData.description || "",priority: taskData.priority || "low",diff --git a/apps/api/src/task/controllers/update-task.ts b/apps/api/src/task/controllers/update-task.tsindex 3451e5ca4..371c8ca97 100644--- a/apps/api/src/task/controllers/update-task.ts+++ b/apps/api/src/task/controllers/update-task.ts@@ -7,6 +7,7 @@ async function updateTask(id: string,title: string,status: string,+ startDate: Date | undefined,dueDate: Date | undefined,projectId: string,description: string,@@ -37,6 +38,7 @@ async function updateTask(title,status,columnId: column?.id ?? null,+ startDate: startDate || null,dueDate: dueDate || null,projectId,description,diff --git a/apps/api/src/task/index.ts b/apps/api/src/task/index.tsindex e548c286b..b06224453 100644--- a/apps/api/src/task/index.ts+++ b/apps/api/src/task/index.ts@@ -178,6 +178,7 @@ const task = new Hono<{v.object({title: v.string(),description: v.string(),+ startDate: v.optional(v.string()),dueDate: v.optional(v.string()),priority: v.string(),status: v.string(),@@ -187,14 +188,22 @@ const task = new Hono<{workspaceAccess.fromProject("projectId"),async (c) => {const { projectId } = c.req.param();- const { title, description, dueDate, priority, status, userId } =- c.req.valid("json");+ const {+ title,+ description,+ startDate,+ dueDate,+ priority,+ status,+ userId,+ } = c.req.valid("json");const task = await createTask({projectId,userId,title,description,+ startDate: startDate ? new Date(startDate) : undefined,dueDate: dueDate ? new Date(dueDate) : undefined,priority,status,@@ -249,6 +258,7 @@ const task = new Hono<{v.object({title: v.string(),description: v.string(),+ startDate: v.optional(v.string()),dueDate: v.optional(v.string()),priority: v.string(),status: v.string(),@@ -266,6 +276,7 @@ const task = new Hono<{const {title,description,+ startDate,dueDate,priority,status,@@ -282,6 +293,7 @@ const task = new Hono<{id,title,status,+ startDate ? new Date(startDate) : undefined,dueDate ? new Date(dueDate) : undefined,projectId,description,@@ -357,6 +369,7 @@ const task = new Hono<{description: v.optional(v.string()),status: v.string(),priority: v.optional(v.string()),+ startDate: v.optional(v.string()),dueDate: v.optional(v.string()),userId: v.optional(v.nullable(v.string())),}),diff --git a/apps/web/src/components/backlog-list-view/index.tsx b/apps/web/src/components/backlog-list-view/index.tsxindex cec875054..b1cfe32fe 100644--- a/apps/web/src/components/backlog-list-view/index.tsx+++ b/apps/web/src/components/backlog-list-view/index.tsx@@ -448,6 +448,7 @@ function BacklogListView({<CreateTaskModalopen={isTaskModalOpen}+ projectId={project?.id}onClose={() => setIsTaskModalOpen(false)}status={activeColumn ?? "planned"}/>diff --git a/apps/web/src/components/command-palette/index.tsx b/apps/web/src/components/command-palette/index.tsxindex ffb1d66be..258f21346 100644--- a/apps/web/src/components/command-palette/index.tsx+++ b/apps/web/src/components/command-palette/index.tsx@@ -1,4 +1,4 @@-import { useNavigate } from "@tanstack/react-router";+import { useLocation, useNavigate } from "@tanstack/react-router";import { ArrowDownIcon, ArrowUpIcon, CornerDownLeftIcon } from "lucide-react";import { Fragment, useCallback, useEffect, useMemo, useState } from "react";import SearchCommandMenu from "@/components/search-command-menu";@@ -43,12 +43,15 @@ type PaletteGroup = {function CommandPalette() {const { setTheme } = useUserPreferencesStore();const navigate = useNavigate();+ const location = useLocation();const { data: workspace } = useActiveWorkspace();const [open, setOpen] = useState(false);const [isSearchOpen, setIsSearchOpen] = useState(false);const [isCreateTaskOpen, setIsCreateTaskOpen] = useState(false);const [isCreateProjectOpen, setIsCreateProjectOpen] = useState(false);const [isCreateWorkspaceOpen, setIsCreateWorkspaceOpen] = useState(false);+ const projectIdFromRoute =+ location.pathname.match(/\/project\/([^/]+)/)?.[1] ?? undefined;useRegisterShortcuts({shortcuts: {@@ -310,6 +313,7 @@ function CommandPalette() {<SearchCommandMenu open={isSearchOpen} setOpen={setIsSearchOpen} /><CreateTaskModalopen={isCreateTaskOpen}+ projectId={projectIdFromRoute}onClose={() => setIsCreateTaskOpen(false)}/><CreateWorkspaceModaldiff --git a/apps/web/src/components/common/header/mobile-project-nav.tsx b/apps/web/src/components/common/header/mobile-project-nav.tsxindex 0c683855c..3737572aa 100644--- a/apps/web/src/components/common/header/mobile-project-nav.tsx+++ b/apps/web/src/components/common/header/mobile-project-nav.tsx@@ -1,4 +1,4 @@-import { Check, Menu, Plus } from "lucide-react";+import { CalendarDays, Check, Menu, Plus, SquareKanban } from "lucide-react";import { Button } from "@/components/ui/button";import {Popover,@@ -12,9 +12,10 @@ import { cn } from "@/lib/cn";type MobileProjectNavProps = {workspaceId: string;projectId: string;- activeView: "backlog" | "board";+ activeView: "backlog" | "board" | "gantt";onSelectBoard: () => void;onSelectBacklog: () => void;+ onSelectGantt: () => void;onSelectProject: (projectId: string) => void;onAddProject: () => void;};@@ -25,6 +26,7 @@ export default function MobileProjectNav({activeView,onSelectBoard,onSelectBacklog,+ onSelectGantt,onSelectProject,onAddProject,}: MobileProjectNavProps) {@@ -49,12 +51,12 @@ export default function MobileProjectNav({<p className="px-1 text-[11px] font-medium tracking-wide text-muted-foreground uppercase">View</p>- <div className="grid grid-cols-2 gap-1">+ <div className="grid grid-cols-3 gap-1"><buttontype="button"onClick={onSelectBacklog}className={cn(- "rounded-md border px-2 py-1.5 text-xs font-medium transition-colors",+ "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",@@ -66,14 +68,28 @@ export default function MobileProjectNav({type="button"onClick={onSelectBoard}className={cn(- "rounded-md border px-2 py-1.5 text-xs font-medium transition-colors",+ "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={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></div>diff --git a/apps/web/src/components/common/project-layout.tsx b/apps/web/src/components/common/project-layout.tsxindex 434681d17..b6c1d4fb2 100644--- a/apps/web/src/components/common/project-layout.tsx+++ b/apps/web/src/components/common/project-layout.tsx@@ -1,5 +1,5 @@import { useLocation, useNavigate } from "@tanstack/react-router";-import { SquareKanban, SquircleDashed } from "lucide-react";+import { CalendarDays, SquareKanban, SquircleDashed } from "lucide-react";import { type ReactNode, useState } from "react";import MobileProjectNav from "@/components/common/header/mobile-project-nav";import ProjectCrumbSelect from "@/components/common/header/project-crumb-select";@@ -25,7 +25,7 @@ type ProjectLayoutProps = {headerActions?: ReactNode;children: ReactNode;showViewSwitcher?: boolean;- activeView?: "backlog" | "board";+ activeView?: "backlog" | "board" | "gantt";};export default function ProjectLayout({@@ -44,7 +44,11 @@ export default function ProjectLayout({const resolvedView =activeView ??- (location.pathname.includes("/backlog") ? "backlog" : "board");+ (location.pathname.includes("/backlog")+ ? "backlog"+ : location.pathname.includes("/gantt")+ ? "gantt"+ : "board");const handleNavigateToBacklog = () => {navigate({@@ -60,13 +64,21 @@ export default function ProjectLayout({});};- const handleProjectSwitch = (nextProjectId: string) => {- const isBacklog = resolvedView === "backlog";+ const handleNavigateToGantt = () => {+ navigate({+ to: "/dashboard/workspace/$workspaceId/project/$projectId/gantt",+ params: { workspaceId, projectId },+ });+ };+ const handleProjectSwitch = (nextProjectId: string) => {navigate({- to: isBacklog- ? "/dashboard/workspace/$workspaceId/project/$projectId/backlog"- : "/dashboard/workspace/$workspaceId/project/$projectId/board",+ to:+ resolvedView === "backlog"+ ? "/dashboard/workspace/$workspaceId/project/$projectId/backlog"+ : resolvedView === "gantt"+ ? "/dashboard/workspace/$workspaceId/project/$projectId/gantt"+ : "/dashboard/workspace/$workspaceId/project/$projectId/board",params: {workspaceId,projectId: nextProjectId,@@ -119,6 +131,7 @@ export default function ProjectLayout({activeView={resolvedView}onSelectBacklog={handleNavigateToBacklog}onSelectBoard={handleNavigateToBoard}+ onSelectGantt={handleNavigateToGantt}onSelectProject={handleProjectSwitch}onAddProject={() => setIsCreateProjectModalOpen(true)}/>@@ -150,6 +163,18 @@ export default function ProjectLayout({<SquareKanban className="size-3.5" />Tasks</Button>+ <Button+ variant={resolvedView === "gantt" ? "secondary" : "ghost"}+ size="xs"+ onClick={handleNavigateToGantt}+ className={cn(+ "h-6 gap-1.5 rounded-md px-2 text-xs",+ resolvedView !== "gantt" && "text-muted-foreground",+ )}+ >+ <CalendarDays className="size-3.5" />+ Gantt+ </Button></div>)}</div>diff --git a/apps/web/src/components/kanban-board/column/index.tsx b/apps/web/src/components/kanban-board/column/index.tsxindex 230d048eb..0b1a5e67a 100644--- a/apps/web/src/components/kanban-board/column/index.tsx+++ b/apps/web/src/components/kanban-board/column/index.tsx@@ -1,6 +1,7 @@import { Plus } from "lucide-react";import { useState } from "react";import CreateTaskModal from "@/components/shared/modals/create-task-modal";+import useProjectStore from "@/store/project";import type { ProjectWithTasks } from "@/types/project";import { ColumnDropzone } from "./column-dropzone";import { ColumnHeader } from "./column-header";@@ -12,6 +13,7 @@ type ColumnProps = {function Column({ column }: ColumnProps) {const [isTaskModalOpen, setIsTaskModalOpen] = useState(false);const [isDropzoneOver, setIsDropzoneOver] = useState(false);+ const { project } = useProjectStore();return (<div@@ -24,6 +26,7 @@ function Column({ column }: ColumnProps) {<CreateTaskModalopen={isTaskModalOpen}onClose={() => setIsTaskModalOpen(false)}+ projectId={project?.id}status={column.id}/>diff --git a/apps/web/src/components/list-view/index.tsx b/apps/web/src/components/list-view/index.tsxindex 3979b75c3..cc937a40f 100644--- a/apps/web/src/components/list-view/index.tsx+++ b/apps/web/src/components/list-view/index.tsx@@ -427,6 +427,7 @@ function ListView({ project, disableDragDrop = false }: ListViewProps) {<CreateTaskModalopen={isTaskModalOpen}+ projectId={project.id}onClose={() => setIsTaskModalOpen(false)}status={activeColumn ?? "done"}/>diff --git a/apps/web/src/components/project/tasks-import-export.tsx b/apps/web/src/components/project/tasks-import-export.tsxindex f7a190a3e..d95e63111 100644--- a/apps/web/src/components/project/tasks-import-export.tsx+++ b/apps/web/src/components/project/tasks-import-export.tsx@@ -190,6 +190,7 @@ export function TasksImportExport({ project }: TasksImportExportProps) {"description": "Description text","status": "to-do","priority": "low",+ "startDate": "2025-04-18T00:00:00.000Z","dueDate": "2025-04-20T00:00:00.000Z","userId": "[email protected]"}diff --git a/apps/web/src/components/shared/modals/create-task-modal.tsx b/apps/web/src/components/shared/modals/create-task-modal.tsxindex 0ef8fca40..da4c4cde7 100644--- a/apps/web/src/components/shared/modals/create-task-modal.tsx+++ b/apps/web/src/components/shared/modals/create-task-modal.tsx@@ -1,3 +1,4 @@+import { useLocation } from "@tanstack/react-router";import { format } from "date-fns";import { produce } from "immer";import {@@ -51,6 +52,7 @@ type CreateTaskModalProps = {open: boolean;onClose: () => void;status?: string;+ projectId?: string;};type Priority = "no-priority" | "low" | "medium" | "high" | "urgent";@@ -86,6 +88,7 @@ function normalizeTask(number: task.number ?? null,description: task.description ?? null,priority: task.priority ?? null,+ startDate: task.startDate ?? null,dueDate: task.dueDate ?? null,position: task.position ?? 0,userId: task.userId ?? null,@@ -145,8 +148,14 @@ const labelColors = [},];-function CreateTaskModal({ open, onClose, status }: CreateTaskModalProps) {+function CreateTaskModal({+ open,+ onClose,+ status,+ projectId,+}: CreateTaskModalProps) {const { project, setProject } = useProjectStore();+ const location = useLocation();const { data: workspace } = useActiveWorkspace();const { mutateAsync: createLabel } = useCreateLabel();const { data: workspaceLabels = [] } = useGetLabelsByWorkspace(@@ -157,6 +166,7 @@ function CreateTaskModal({ open, onClose, status }: CreateTaskModalProps) {const [description, setDescription] = useState("");const [priority, setPriority] = useState<Priority>("no-priority");const [assigneeId, setAssigneeId] = useState("");+ const [startDate, setStartDate] = useState<Date | undefined>(undefined);const [dueDate, setDueDate] = useState<Date | undefined>(undefined);const [createMore, setCreateMore] = useState(false);const [labels, setLabels] = useState<Label[]>([]);@@ -168,6 +178,10 @@ function CreateTaskModal({ open, onClose, status }: CreateTaskModalProps) {const [selectedColor, setSelectedColor] = useState<LabelColor>("gray");const [newLabelName, setNewLabelName] = useState("");+ const routeProjectId =+ location.pathname.match(/\/project\/([^/]+)/)?.[1] ?? null;+ const resolvedProjectId = projectId || project?.id || routeProjectId || "";+const searchInputRef = useRef<HTMLInputElement>(null);const draftCreationPromiseRef = useRef<Promise<Task> | null>(null);const didSubmitRef = useRef(false);@@ -205,6 +219,7 @@ function CreateTaskModal({ open, onClose, status }: CreateTaskModalProps) {setDescription("");setPriority("no-priority");setAssigneeId("");+ setStartDate(undefined);setDueDate(undefined);setCreateMore(false);setLabels([]);@@ -287,7 +302,7 @@ function CreateTaskModal({ open, onClose, status }: CreateTaskModalProps) {return pendingTask.id;}- if (!project?.id) {+ if (!resolvedProjectId) {toast.error("Choose a project before uploading images.");return null;}@@ -298,7 +313,8 @@ function CreateTaskModal({ open, onClose, status }: CreateTaskModalProps) {description: description.trim() || "",userId: assigneeId,priority,- projectId: project.id,+ projectId: resolvedProjectId,+ startDate: startDate ? startDate.toISOString() : undefined,dueDate: dueDate ? dueDate.toISOString() : undefined,status: draftStatus,}).then((task) => normalizeTask(task));@@ -322,15 +338,16 @@ function CreateTaskModal({ open, onClose, status }: CreateTaskModalProps) {createTask,description,draftTask,+ startDate,dueDate,priority,- project?.id,+ resolvedProjectId,title,]);const handleSubmit = async (e: React.FormEvent) => {e.preventDefault();- if (!title.trim() || !project?.id || !workspace?.id) return;+ if (!title.trim() || !resolvedProjectId || !workspace?.id) return;try {const taskStatus = status ?? "to-do";@@ -345,8 +362,9 @@ function CreateTaskModal({ open, onClose, status }: CreateTaskModalProps) {userId: assigneeId || null,status: taskStatus,priority,+ startDate: startDate ? startDate.toISOString() : null,dueDate: dueDate ? dueDate.toISOString() : null,- projectId: project.id,+ projectId: resolvedProjectId,}),): normalizeTask(@@ -355,7 +373,8 @@ function CreateTaskModal({ open, onClose, status }: CreateTaskModalProps) {description: description.trim() || "",userId: assigneeId,priority,- projectId: project.id,+ projectId: resolvedProjectId,+ startDate: startDate ? startDate.toISOString() : undefined,dueDate: dueDate ? dueDate.toISOString() : undefined,status: taskStatus,}),@@ -385,6 +404,7 @@ function CreateTaskModal({ open, onClose, status }: CreateTaskModalProps) {setDescription("");setPriority("no-priority");setAssigneeId("");+ setStartDate(undefined);setDueDate(undefined);setLabels([]);setLabelsStep("select");@@ -604,6 +624,48 @@ function CreateTaskModal({ open, onClose, status }: CreateTaskModalProps) {: "In Progress"}</div>+ <Popover>+ <PopoverTrigger asChild>+ <button+ type="button"+ className={cn(+ "flex items-center gap-1.5 px-2.5 py-1.5 text-xs font-medium rounded-md transition-colors border border-border hover:bg-accent/50",+ startDate+ ? "bg-accent/30 text-foreground"+ : "text-muted-foreground",+ )}+ >+ <CalendarIcon className="w-3.5 h-3.5" />+ <span>+ {startDate+ ? format(startDate, "MMM d, yyyy")+ : "Start date"}+ </span>+ </button>+ </PopoverTrigger>+ <PopoverContent className="p-0" align="start">+ <Calendar+ mode="single"+ selected={startDate}+ onSelect={setStartDate}+ className="w-full bg-popover"+ />+ {startDate && (+ <div className="p-2 border-t border-border">+ <Button+ type="button"+ variant="outline"+ size="sm"+ className="w-full text-xs"+ onClick={() => setStartDate(undefined)}+ >+ Clear start date+ </Button>+ </div>+ )}+ </PopoverContent>+ </Popover>+<Popover><PopoverTrigger asChild><buttondiff --git a/apps/web/src/components/task/task-properties-sidebar.tsx b/apps/web/src/components/task/task-properties-sidebar.tsxindex 8dae7b654..afb3050f3 100644--- a/apps/web/src/components/task/task-properties-sidebar.tsx+++ b/apps/web/src/components/task/task-properties-sidebar.tsx@@ -2,6 +2,7 @@ import { format } from "date-fns";import {Calendar,CalendarClock,+ CalendarDays,CalendarX,Copy,GitBranch,@@ -31,6 +32,7 @@ import TaskAssigneePopover from "./task-assignee-popover";import TaskDueDatePopover from "./task-due-date-popover";import TaskLabelsPopover from "./task-labels-popover";import TaskPriorityPopover from "./task-priority-popover";+import TaskStartDatePopover from "./task-start-date-popover";import TaskStatusPopover from "./task-status-popover";function slugify(text: string | undefined): string {@@ -222,6 +224,24 @@ export default function TaskPropertiesSidebar({</Button></TaskAssigneePopover>)}+ {task && (+ <TaskStartDatePopover task={task}>+ <Button+ variant="ghost"+ size="sm"+ className="justify-start h-7 px-1.5 gap-1.5"+ >+ <CalendarDays className="w-3.5 h-3.5 text-muted-foreground" />+ <span+ className={`text-xs font-semibold ${task.startDate ? "" : "text-muted-foreground"}`}+ >+ {task.startDate+ ? format(new Date(task.startDate), "MMM d")+ : "Start"}+ </span>+ </Button>+ </TaskStartDatePopover>+ )}{task && (<TaskDueDatePopover task={task}><Button@@ -378,6 +398,24 @@ export default function TaskPropertiesSidebar({</Button></TaskAssigneePopover>)}+ {task && (+ <TaskStartDatePopover task={task}>+ <Button+ variant="ghost"+ size="sm"+ className="justify-start h-7 px-1.5 gap-1.5"+ >+ <CalendarDays className="w-3.5 h-3.5 text-muted-foreground" />+ <span+ className={`text-xs font-semibold ${task.startDate ? "" : "text-muted-foreground"}`}+ >+ {task.startDate+ ? format(new Date(task.startDate), "MMM d")+ : "Start"}+ </span>+ </Button>+ </TaskStartDatePopover>+ )}{task && (<TaskDueDatePopover task={task}><Button@@ -536,6 +574,24 @@ export default function TaskPropertiesSidebar({</Button></TaskAssigneePopover>)}+ {task && (+ <TaskStartDatePopover task={task}>+ <Button+ variant="ghost"+ size="sm"+ className="justify-start h-7 px-1.5 gap-1.5 w-full"+ >+ <CalendarDays className="w-3.5 h-3.5 text-muted-foreground" />+ <span+ className={`text-xs font-semibold ${task.startDate ? "" : "text-muted-foreground"}`}+ >+ {task.startDate+ ? format(new Date(task.startDate), "MMM d")+ : "Start date"}+ </span>+ </Button>+ </TaskStartDatePopover>+ )}{task && (<TaskDueDatePopover task={task}><Buttondiff --git a/apps/web/src/components/task/task-start-date-popover.tsx b/apps/web/src/components/task/task-start-date-popover.tsxnew file mode 100644index 000000000..c4f26ddfd--- /dev/null+++ b/apps/web/src/components/task/task-start-date-popover.tsx@@ -0,0 +1,69 @@+import { X } from "lucide-react";+import { useState } from "react";+import { Button } from "@/components/ui/button";+import { Calendar } from "@/components/ui/calendar";+import {+ Popover,+ PopoverContent,+ PopoverTrigger,+} from "@/components/ui/popover";+import { useUpdateTask } from "@/hooks/mutations/task/use-update-task";+import { toast } from "@/lib/toast";+import type Task from "@/types/task";++type TaskStartDatePopoverProps = {+ task: Task;+ children: React.ReactNode;+};++export default function TaskStartDatePopover({+ task,+ children,+}: TaskStartDatePopoverProps) {+ const [open, setOpen] = useState(false);+ const { mutateAsync: updateTask } = useUpdateTask();++ const handleDateChange = async (date: Date | undefined) => {+ try {+ await updateTask({+ ...task,+ startDate: date?.toISOString() || null,+ });+ toast.success("Task start date updated successfully");+ setOpen(false);+ } catch (error) {+ toast.error(+ error instanceof Error+ ? error.message+ : "Failed to update task start date",+ );+ }+ };++ return (+ <Popover open={open} onOpenChange={setOpen}>+ <PopoverTrigger asChild>{children}</PopoverTrigger>+ <PopoverContent className="p-0" align="start">+ <Calendar+ mode="single"+ selected={task.startDate ? new Date(task.startDate) : undefined}+ onSelect={handleDateChange}+ className="w-full bg-popover"+ />+ {task.startDate && (+ <div className="p-0 border-t border-border">+ <Button+ variant="ghost"+ size="sm"+ className="w-full justify-start gap-2 text-muted-foreground hover:text-foreground rounded-none"+ onClick={() => handleDateChange(undefined)}+ >+ <X className="h-4 w-4" />+ Clear start date+ </Button>+ </div>+ )}+ </PopoverContent>+ </Popover>+ );+}diff --git a/apps/web/src/components/task/task-subtasks.tsx b/apps/web/src/components/task/task-subtasks.tsxindex fd60995f3..a8d17104d 100644--- a/apps/web/src/components/task/task-subtasks.tsx+++ b/apps/web/src/components/task/task-subtasks.tsx@@ -99,6 +99,7 @@ export default function TaskSubtasks({description: null,status: subtask.task.status,priority: subtask.task.priority,+ startDate: null,dueDate: null,position: null,createdAt: "",@@ -119,7 +120,9 @@ export default function TaskSubtasks({const getAssignee = (userId: string | null) => {if (!userId || !workspaceUsers?.members) return null;- return workspaceUsers.members.find((member) => member.userId === userId);+ return (+ workspaceUsers.members.find((member) => member.userId === userId) ?? null+ );};const getSelectionRadius = (index: number, isSelected: boolean) => {diff --git a/apps/web/src/constants/shortcuts.ts b/apps/web/src/constants/shortcuts.tsindex 18ba069fd..024c49301 100644--- a/apps/web/src/constants/shortcuts.ts+++ b/apps/web/src/constants/shortcuts.ts@@ -33,6 +33,7 @@ export const shortcuts = {view: {prefix: "v",board: "b",+ gantt: "g",list: "l",backlog: "k",},diff --git a/apps/web/src/fetchers/task/create-task.ts b/apps/web/src/fetchers/task/create-task.tsindex ab7511225..061db8876 100644--- a/apps/web/src/fetchers/task/create-task.ts+++ b/apps/web/src/fetchers/task/create-task.ts@@ -12,15 +12,21 @@ async function createTask(projectId: string,userId: string,status: string,+ startDate: Date | undefined,dueDate: Date | undefined,priority: string,) {+ if (!projectId) {+ throw new Error("No project selected for task creation");+ }+const response = await client.task[":projectId"].$post({json: {title,description,userId,status,+ startDate: startDate?.toISOString() || undefined,dueDate: dueDate?.toISOString() || undefined,priority,},diff --git a/apps/web/src/fetchers/task/import-tasks.ts b/apps/web/src/fetchers/task/import-tasks.tsindex 3fd9966f4..4952c984e 100644--- a/apps/web/src/fetchers/task/import-tasks.ts+++ b/apps/web/src/fetchers/task/import-tasks.ts@@ -5,6 +5,7 @@ export type TaskToImport = {description?: string;status: string;priority?: string;+ startDate?: string;dueDate?: string;userId?: string | null;};diff --git a/apps/web/src/fetchers/task/update-task.ts b/apps/web/src/fetchers/task/update-task.tsindex 32c8e0ec1..566b30819 100644--- a/apps/web/src/fetchers/task/update-task.ts+++ b/apps/web/src/fetchers/task/update-task.ts@@ -10,6 +10,7 @@ async function updateTask(taskId: string, task: Task) {description: task.description || "",status: task.status,priority: task.priority || "",+ startDate: task.startDate?.toString(),dueDate: task.dueDate?.toString(),position: task.position ?? 0,projectId: task.projectId,diff --git a/apps/web/src/hooks/mutations/task/use-create-task.ts b/apps/web/src/hooks/mutations/task/use-create-task.tsindex a1c0f5379..b8c54540b 100644--- a/apps/web/src/hooks/mutations/task/use-create-task.ts+++ b/apps/web/src/hooks/mutations/task/use-create-task.ts@@ -13,6 +13,7 @@ function useCreateTask() {userId,projectId,status,+ startDate,dueDate,priority,}: CreateTaskRequest) =>@@ -22,6 +23,7 @@ function useCreateTask() {projectId,userId ?? "",status,+ startDate ? new Date(startDate) : undefined,dueDate ? new Date(dueDate) : undefined,priority,),diff --git a/apps/web/src/routeTree.gen.ts b/apps/web/src/routeTree.gen.tsindex d3526ee92..6b17e1dc3 100644--- a/apps/web/src/routeTree.gen.ts+++ b/apps/web/src/routeTree.gen.ts@@ -44,6 +44,7 @@ import { Route as LayoutAuthenticatedDashboardSettingsProjectsProjectIdVisibilitimport { Route as LayoutAuthenticatedDashboardSettingsProjectsProjectIdIntegrationsRouteImport } from './routes/_layout/_authenticated/dashboard/settings/projects/$projectId/integrations'import { Route as LayoutAuthenticatedDashboardSettingsProjectsProjectIdGeneralRouteImport } from './routes/_layout/_authenticated/dashboard/settings/projects/$projectId/general'import { Route as LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdIndexRouteImport } from './routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/index'+import { Route as LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdGanttRouteImport } from './routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/gantt'import { Route as LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdBoardRouteImport } from './routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/board'import { Route as LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdBacklogRouteImport } from './routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/backlog'import { Route as LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdTaskTaskIdRouteImport } from './routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/task/$taskId_'@@ -257,6 +258,15 @@ const LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdIndexRouteLayoutAuthenticatedDashboardWorkspaceWorkspaceIdRoute,} as any,)+const LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdGanttRoute =+ LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdGanttRouteImport.update(+ {+ id: '/project/$projectId/gantt',+ path: '/project/$projectId/gantt',+ getParentRoute: () =>+ LayoutAuthenticatedDashboardWorkspaceWorkspaceIdRoute,+ } as any,+ )const LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdBoardRoute =LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdBoardRouteImport.update({@@ -320,6 +330,7 @@ export interface FileRoutesByFullPath {'/dashboard/settings/projects/$projectId/workflow': typeof LayoutAuthenticatedDashboardSettingsProjectsProjectIdWorkflowRoute'/dashboard/workspace/$workspaceId/project/$projectId/backlog': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdBacklogRoute'/dashboard/workspace/$workspaceId/project/$projectId/board': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdBoardRoute+ '/dashboard/workspace/$workspaceId/project/$projectId/gantt': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdGanttRoute'/dashboard/workspace/$workspaceId/project/$projectId/': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdIndexRoute'/dashboard/workspace/$workspaceId/project/$projectId/task/$taskId': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdTaskTaskIdRoute}@@ -356,6 +367,7 @@ export interface FileRoutesByTo {'/dashboard/settings/projects/$projectId/workflow': typeof LayoutAuthenticatedDashboardSettingsProjectsProjectIdWorkflowRoute'/dashboard/workspace/$workspaceId/project/$projectId/backlog': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdBacklogRoute'/dashboard/workspace/$workspaceId/project/$projectId/board': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdBoardRoute+ '/dashboard/workspace/$workspaceId/project/$projectId/gantt': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdGanttRoute'/dashboard/workspace/$workspaceId/project/$projectId': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdIndexRoute'/dashboard/workspace/$workspaceId/project/$projectId/task/$taskId': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdTaskTaskIdRoute}@@ -397,6 +409,7 @@ export interface FileRoutesById {'/_layout/_authenticated/dashboard/settings/projects/$projectId/workflow': typeof LayoutAuthenticatedDashboardSettingsProjectsProjectIdWorkflowRoute'/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/backlog': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdBacklogRoute'/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/board': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdBoardRoute+ '/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/gantt': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdGanttRoute'/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdIndexRoute'/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/task/$taskId_': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdTaskTaskIdRoute}@@ -437,6 +450,7 @@ export interface FileRouteTypes {| '/dashboard/settings/projects/$projectId/workflow'| '/dashboard/workspace/$workspaceId/project/$projectId/backlog'| '/dashboard/workspace/$workspaceId/project/$projectId/board'+ | '/dashboard/workspace/$workspaceId/project/$projectId/gantt'| '/dashboard/workspace/$workspaceId/project/$projectId/'| '/dashboard/workspace/$workspaceId/project/$projectId/task/$taskId'fileRoutesByTo: FileRoutesByTo@@ -473,6 +487,7 @@ export interface FileRouteTypes {| '/dashboard/settings/projects/$projectId/workflow'| '/dashboard/workspace/$workspaceId/project/$projectId/backlog'| '/dashboard/workspace/$workspaceId/project/$projectId/board'+ | '/dashboard/workspace/$workspaceId/project/$projectId/gantt'| '/dashboard/workspace/$workspaceId/project/$projectId'| '/dashboard/workspace/$workspaceId/project/$projectId/task/$taskId'id:@@ -513,6 +528,7 @@ export interface FileRouteTypes {| '/_layout/_authenticated/dashboard/settings/projects/$projectId/workflow'| '/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/backlog'| '/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/board'+ | '/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/gantt'| '/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/'| '/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/task/$taskId_'fileRoutesById: FileRoutesById@@ -773,6 +789,13 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdIndexRouteImportparentRoute: typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdRoute}+ '/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/gantt': {+ id: '/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/gantt'+ path: '/project/$projectId/gantt'+ fullPath: '/dashboard/workspace/$workspaceId/project/$projectId/gantt'+ preLoaderRoute: typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdGanttRouteImport+ parentRoute: typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdRoute+ }'/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/board': {id: '/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/board'path: '/project/$projectId/board'@@ -884,6 +907,7 @@ interface LayoutAuthenticatedDashboardWorkspaceWorkspaceIdRouteChildren {LayoutAuthenticatedDashboardWorkspaceWorkspaceIdIndexRoute: typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdIndexRouteLayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdBacklogRoute: typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdBacklogRouteLayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdBoardRoute: typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdBoardRoute+ LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdGanttRoute: typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdGanttRouteLayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdIndexRoute: typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdIndexRouteLayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdTaskTaskIdRoute: typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdTaskTaskIdRoute}@@ -900,6 +924,8 @@ const LayoutAuthenticatedDashboardWorkspaceWorkspaceIdRouteChildren: LayoutAutheLayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdBacklogRoute,LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdBoardRoute:LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdBoardRoute,+ LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdGanttRoute:+ LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdGanttRoute,LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdIndexRoute:LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdIndexRoute,LayoutAuthenticatedDashboardWorkspaceWorkspaceIdProjectProjectIdTaskTaskIdRoute: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 eb918a3c3..36fa927cc 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@@ -93,6 +93,12 @@ function RouteComponent() {params: { workspaceId, projectId },});},+ [shortcuts.view.gantt]: () => {+ navigate({+ to: "/dashboard/workspace/$workspaceId/project/$projectId/gantt",+ params: { workspaceId, projectId },+ });+ },[shortcuts.view.backlog]: () => {},},},@@ -653,6 +659,7 @@ function RouteComponent() {<CreateTaskModalopen={isTaskModalOpen}+ projectId={projectId}onClose={() => setIsTaskModalOpen(false)}status="planned"/>diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/board.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/board.tsxindex 9c6079304..be06cf647 100644--- a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/board.tsx+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/board.tsx@@ -67,6 +67,11 @@ function RouteComponent() {[shortcuts.view.prefix]: {[shortcuts.view.board]: () => setViewMode("board"),[shortcuts.view.list]: () => setViewMode("list"),+ [shortcuts.view.gantt]: () =>+ navigate({+ to: "/dashboard/workspace/$workspaceId/project/$projectId/gantt",+ params: { workspaceId, projectId },+ }),[shortcuts.view.backlog]: () =>navigate({to: "/dashboard/workspace/$workspaceId/project/$projectId/backlog",@@ -210,6 +215,7 @@ function RouteComponent() {<CreateTaskModalopen={isTaskModalOpen}+ projectId={projectId}onClose={() => setIsTaskModalOpen(false)}/>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.tsxnew file mode 100644index 000000000..2d070fae1--- /dev/null+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/gantt.tsx@@ -0,0 +1,426 @@+import { createFileRoute, useNavigate } from "@tanstack/react-router";+import {+ differenceInCalendarDays,+ eachDayOfInterval,+ endOfWeek,+ format,+ isSameMonth,+ isToday,+ isWeekend,+ parseISO,+ startOfWeek,+} from "date-fns";+import { ChevronLeft, ChevronRight, Search } from "lucide-react";+import { useEffect, useMemo, useState } from "react";+import ProjectLayout from "@/components/common/project-layout";+import PageTitle from "@/components/page-title";+import TaskDetailsSheet from "@/components/task/task-details-sheet";+import { Button } from "@/components/ui/button";+import { Input } from "@/components/ui/input";+import { useGetTasks } from "@/hooks/queries/task/use-get-tasks";+import { useIsMobile } from "@/hooks/use-mobile";+import { cn } from "@/lib/cn";++type GanttSearchParams = {+ taskId?: string;+};++export const Route = createFileRoute(+ "/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/gantt",+)({+ component: RouteComponent,+ validateSearch: (search: Record<string, unknown>): GanttSearchParams => ({+ taskId: typeof search.taskId === "string" ? search.taskId : undefined,+ }),+});++function toDisplayStatus(status: string) {+ return status+ .split("-")+ .map((part) => part.charAt(0).toUpperCase() + part.slice(1))+ .join(" ");+}++function parseTaskDate(value: string | null) {+ if (!value) return null;+ const parsed = parseISO(value);+ return Number.isNaN(parsed.getTime()) ? null : parsed;+}++function RouteComponent() {+ const { projectId, workspaceId } = Route.useParams();+ const { taskId } = Route.useSearch();+ const navigate = useNavigate();+ const { data: project } = useGetTasks(projectId);+ const [searchQuery, setSearchQuery] = useState("");+ const isMobile = useIsMobile();+ const [isTaskRailOpen, setIsTaskRailOpen] = useState(false);++ const dayColumnWidthRem = 2.75;+ const taskColumnWidthRem = 14;+ const showTaskRail = !isMobile || isTaskRailOpen;++ useEffect(() => {+ if (!isMobile) {+ setIsTaskRailOpen(true);+ return;+ }++ setIsTaskRailOpen(false);+ }, [isMobile]);++ const allTasks = useMemo(+ () => [+ ...(project?.columns.flatMap((column) => column.tasks) ?? []),+ ...(project?.plannedTasks ?? []),+ ],+ [project],+ );++ const parsedTasks = useMemo(() => {+ return allTasks+ .map((task) => {+ const parsedStart =+ parseTaskDate(task.startDate) ?? parseTaskDate(task.dueDate);+ const parsedEnd =+ parseTaskDate(task.dueDate) ?? parseTaskDate(task.startDate);++ if (!parsedStart || !parsedEnd) return null;++ const start = parsedStart <= parsedEnd ? parsedStart : parsedEnd;+ const end = parsedEnd >= parsedStart ? parsedEnd : parsedStart;++ return {+ ...task,+ scheduleStart: start,+ scheduleEnd: end,+ };+ })+ .filter((task): task is NonNullable<typeof task> => task !== null)+ .sort(+ (left, right) =>+ left.scheduleStart.getTime() - right.scheduleStart.getTime(),+ );+ }, [allTasks]);++ const scheduledTasks = useMemo(() => {+ const normalizedQuery = searchQuery.trim().toLowerCase();+ if (!normalizedQuery) return parsedTasks;++ return parsedTasks.filter((task) => {+ return (+ task.title.toLowerCase().includes(normalizedQuery) ||+ `${project?.slug ?? ""}-${task.number ?? ""}`+ .toLowerCase()+ .includes(normalizedQuery) ||+ task.status.toLowerCase().includes(normalizedQuery)+ );+ });+ }, [parsedTasks, project?.slug, searchQuery]);++ const timeline = useMemo(() => {+ if (parsedTasks.length === 0) return null;++ const earliest = parsedTasks.reduce(+ (current, task) =>+ task.scheduleStart < current ? task.scheduleStart : current,+ parsedTasks[0].scheduleStart,+ );+ const latest = parsedTasks.reduce(+ (current, task) =>+ task.scheduleEnd > current ? task.scheduleEnd : current,+ parsedTasks[0].scheduleEnd,+ );++ const rangeStart = startOfWeek(earliest, { weekStartsOn: 1 });+ const rangeEnd = endOfWeek(latest, { weekStartsOn: 1 });++ const days = eachDayOfInterval({ start: rangeStart, end: rangeEnd });++ return {+ days,+ rangeStart,+ gridTemplateColumns: `repeat(${days.length}, minmax(${dayColumnWidthRem}rem, ${dayColumnWidthRem}rem))`,+ timelineMinWidthRem: days.length * dayColumnWidthRem,+ };+ }, [parsedTasks]);++ return (+ <ProjectLayout+ projectId={projectId}+ workspaceId={workspaceId}+ activeView="gantt"+ >+ <PageTitle title={`${project?.name} — Gantt`} hideAppName />+ <div className="flex h-full min-h-0 flex-col bg-background">+ <div className="border-b border-border/80 px-4 py-3">+ <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">+ Gantt Timeline+ </h1>+ </div>++ <div className="relative w-full 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" />+ <Input+ value={searchQuery}+ onChange={(event) => setSearchQuery(event.target.value)}+ placeholder="Search scheduled tickets..."+ className="h-8 [&_[data-slot=input]]:pl-8 [&_[data-slot=input]]:text-xs"+ />+ </div>++ <Button+ variant="outline"+ size="xs"+ className="sm:hidden"+ onClick={() => setIsTaskRailOpen((current) => !current)}+ >+ {showTaskRail ? (+ <ChevronLeft className="size-3.5" />+ ) : (+ <ChevronRight className="size-3.5" />+ )}+ {showTaskRail ? "Hide tasks" : "Show tasks"}+ </Button>+ </div>+ </div>++ {!timeline || parsedTasks.length === 0 ? (+ <div className="flex flex-1 items-center justify-center px-6">+ <div className="max-w-sm text-center">+ <h2 className="text-sm font-semibold text-foreground">+ No scheduled tasks+ </h2>+ <p className="mt-1 text-sm text-muted-foreground">+ Add a start date, due date, or both to tasks to place them on+ the project timeline.+ </p>+ </div>+ </div>+ ) : scheduledTasks.length === 0 ? (+ <div className="flex flex-1 items-center justify-center px-6">+ <div className="max-w-sm text-center">+ <h2 className="text-sm font-semibold text-foreground">+ No tasks found+ </h2>+ <p className="mt-1 text-sm text-muted-foreground">+ No scheduled tasks match{" "}+ <span className="font-medium text-foreground">+ "{searchQuery}"+ </span>+ </p>+ </div>+ </div>+ ) : (+ <div className="min-h-0 flex-1 overflow-auto">+ <div className="relative min-w-max">+ <div className="sticky top-0 z-20 flex border-b border-border bg-background/95 backdrop-blur">+ {showTaskRail ? (+ <div+ className="sticky left-0 z-30 shrink-0 border-r border-border bg-background px-3 py-3 sm:w-80 sm:px-4"+ style={{+ width: isMobile ? `${taskColumnWidthRem}rem` : undefined,+ }}+ >+ <p className="text-[11px] font-medium uppercase tracking-wide text-muted-foreground">+ Task+ </p>+ </div>+ ) : null}+ <div+ className="grid shrink-0"+ style={{+ gridTemplateColumns: timeline.gridTemplateColumns,+ minWidth: `${timeline.timelineMinWidthRem}rem`,+ }}+ >+ {timeline.days.map((day, index) => {+ const showMonth =+ index === 0 ||+ !isSameMonth(day, timeline.days[index - 1] ?? day);++ return (+ <div+ key={day.toISOString()}+ className={cn(+ "border-r border-border/70 px-1 py-2 text-center",+ isWeekend(day) && "bg-muted/25",+ )}+ >+ <div className="h-4 text-[10px] font-medium text-muted-foreground">+ {showMonth ? format(day, "MMM") : ""}+ </div>+ <div+ className={cn(+ "mx-auto flex size-6 items-center justify-center rounded-full text-xs font-medium",+ isToday(day) &&+ "bg-primary text-primary-foreground",+ )}+ >+ {format(day, "d")}+ </div>+ </div>+ );+ })}+ </div>+ </div>++ <div className="relative">+ <div+ className="absolute inset-y-0 z-0 grid"+ style={{+ left: showTaskRail+ ? isMobile+ ? `${taskColumnWidthRem}rem`+ : "20rem"+ : "0rem",+ gridTemplateColumns: timeline.gridTemplateColumns,+ width: `${timeline.timelineMinWidthRem}rem`,+ }}+ >+ {timeline.days.map((day) => (+ <div+ key={`bg-line-${day.toISOString()}`}+ className={cn(+ "h-full min-h-0 border-r border-border/60",+ isWeekend(day) && "bg-muted/25",+ )}+ />+ ))}+ </div>++ <div className="relative z-10 flex flex-col">+ {scheduledTasks.map((task) => {+ const startIndex = differenceInCalendarDays(+ task.scheduleStart,+ timeline.rangeStart,+ );+ const endIndex = differenceInCalendarDays(+ task.scheduleEnd,+ timeline.rangeStart,+ );+ const trackCount = timeline.days.length;+ const barInView =+ endIndex >= 0 &&+ startIndex < trackCount &&+ trackCount > 0;+ const lineStart = barInView+ ? Math.max(1, Math.min(startIndex + 1, trackCount))+ : 1;+ const lineEnd = barInView+ ? Math.max(+ lineStart + 1,+ Math.min(endIndex + 2, trackCount + 1),+ )+ : 1;++ return (+ <div+ key={task.id}+ className="grid items-stretch border-b border-border/70"+ style={{+ gridTemplateColumns: showTaskRail+ ? isMobile+ ? `${taskColumnWidthRem}rem max-content`+ : "20rem max-content"+ : "max-content",+ }}+ >+ {showTaskRail ? (+ <div className="sticky left-0 z-[11] h-full border-r border-border bg-background">+ <button+ type="button"+ className="flex h-full w-full min-w-0 flex-col items-start justify-center gap-0.5 px-3 py-1.5 text-left transition-colors hover:bg-muted"+ onClick={() =>+ navigate({+ to: ".",+ search: { taskId: task.id },+ replace: true,+ })+ }+ >+ <div className="flex w-full items-center gap-1.5">+ <span className="max-w-[7rem] truncate rounded-full bg-secondary px-1.5 py-px text-[10px] font-medium uppercase tracking-wide text-secondary-foreground sm:max-w-none">+ {toDisplayStatus(task.status)}+ </span>+ <span className="truncate text-[10px] text-muted-foreground">+ {project?.slug}-{task.number}+ </span>+ </div>+ <p className="w-full line-clamp-1 text-xs font-medium leading-tight text-foreground">+ {task.title}+ </p>+ <p className="w-full truncate text-[11px] leading-tight text-muted-foreground">+ {format(task.scheduleStart, "MMM d")} -{" "}+ {format(task.scheduleEnd, "MMM d")}+ {task.assigneeName+ ? ` • ${task.assigneeName}`+ : ""}+ </p>+ </button>+ </div>+ ) : null}++ <div+ className="relative min-h-11 shrink-0"+ style={{+ minWidth: `${timeline.timelineMinWidthRem}rem`,+ }}+ >+ {barInView && lineEnd > lineStart ? (+ <div+ className="pointer-events-none absolute inset-0 z-[1] grid items-center"+ style={{+ gridTemplateColumns:+ timeline.gridTemplateColumns,+ }}+ >+ <button+ type="button"+ style={{+ gridColumn: `${lineStart} / ${lineEnd}`,+ }}+ className="group pointer-events-auto relative mx-1 flex h-11 min-w-0 items-center 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"+ onClick={() =>+ navigate({+ to: ".",+ search: { taskId: task.id },+ replace: true,+ })+ }+ >+ <div className="absolute inset-0 z-0 bg-primary/12 transition-colors group-hover:bg-primary/18" />+ <span className="relative z-10 truncate px-3.5">+ {task.title}+ </span>+ </button>+ </div>+ ) : null}+ </div>+ </div>+ );+ })}+ </div>+ </div>+ </div>+ </div>+ )}++ <TaskDetailsSheet+ taskId={taskId}+ projectId={projectId}+ workspaceId={workspaceId}+ onClose={() =>+ navigate({+ to: ".",+ search: {},+ replace: true,+ })+ }+ />+ </div>+ </ProjectLayout>+ );+}diff --git a/apps/web/src/types/task/index.ts b/apps/web/src/types/task/index.tsindex 58f1c692b..9e62f501b 100644--- a/apps/web/src/types/task/index.ts+++ b/apps/web/src/types/task/index.ts@@ -22,6 +22,7 @@ type Task = {description: string | null;status: string;priority: string | null;+ startDate: string | null;dueDate: string | null;position: number | null;createdAt: string;