⚡ 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
refactor(api): update schemas to use picklists for status, priority, and type fields
Andrej Acevski888f2cb15dde
diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.ymlnew file mode 100644index 000000000..ab8773b84--- /dev/null+++ b/.github/workflows/auto-merge.yml@@ -0,0 +1,27 @@+name: Dependabot Auto-Merge++on: pull_request++permissions:+ contents: write+ pull-requests: write++jobs:+ dependabot:+ name: Dependabot Auto-Merge+ runs-on: ubuntu-latest+ if: github.actor == 'dependabot[bot]'++ steps:+ - name: Dependabot Metadata+ id: metadata+ uses: dependabot/fetch-metadata@v1+ with:+ github-token: "${{ secrets.GITHUB_TOKEN }}"++ - name: Enable Auto-Merge+ if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'+ run: gh pr merge --auto --rebase "$PR_URL"+ env:+ PR_URL: ${{github.event.pull_request.html_url}}+ GH_TOKEN: ${{secrets.GITHUB_TOKEN}}\ No newline at end of filediff --git a/apps/api/src/schemas.ts b/apps/api/src/schemas.tsindex 8a68cee31..c15c27337 100644--- a/apps/api/src/schemas.ts+++ b/apps/api/src/schemas.ts@@ -28,16 +28,40 @@ export const taskSchema = v.object({userId: v.nullable(v.string()),title: v.string(),description: v.nullable(v.string()),- status: v.string(),- priority: v.nullable(v.string()),- dueDate: v.nullable(v.date()),+ status: v.picklist([+ "to-do",+ "in-progress",+ "in-review",+ "done",+ "archived",+ "planned",+ ] as const),+ priority: v.picklist([+ "no-priority",+ "low",+ "medium",+ "high",+ "urgent",+ ] as const),+ dueDate: v.optional(v.date()),createdAt: v.date(),});export const activitySchema = v.object({id: v.string(),taskId: v.string(),- type: v.string(),+ type: v.picklist([+ "comment",+ "task",+ "status_changed",+ "priority_changed",+ "unassigned",+ "assignee_changed",+ "due_date_changed",+ "title_changed",+ "description_changed",+ "create",+ ] as const),createdAt: v.date(),userId: v.string(),content: v.nullable(v.string()),@@ -49,7 +73,7 @@ export const timeEntrySchema = v.object({userId: v.nullable(v.string()),description: v.nullable(v.string()),startTime: v.date(),- endTime: v.nullable(v.date()),+ endTime: v.optional(v.date()),duration: v.nullable(v.number()),createdAt: v.date(),});@@ -59,10 +83,17 @@ export const notificationSchema = v.object({userId: v.string(),title: v.string(),content: v.nullable(v.string()),- type: v.string(),- isRead: v.nullable(v.boolean()),- resourceId: v.nullable(v.string()),- resourceType: v.nullable(v.string()),+ type: v.picklist([+ "info",+ "task_created",+ "workspace_created",+ "task_status_changed",+ "task_assignee_changed",+ "time_entry_created",+ ] as const),+ isRead: v.optional(v.boolean()),+ resourceId: v.optional(v.string()),+ resourceType: v.optional(v.picklist(["task", "workspace"] as const)),createdAt: v.date(),});diff --git a/apps/docs/app/docs/page.tsx b/apps/docs/app/docs/page.tsxdeleted file mode 100644index 82d1ba0a7..000000000--- a/apps/docs/app/docs/page.tsx+++ /dev/null@@ -1,5 +0,0 @@-import { redirect } from "next/navigation";--export default function DocsPage() {- redirect("/docs/core");-}diff --git a/apps/docs/next-env.d.ts b/apps/docs/next-env.d.tsindex 9edff1c7c..c4b7818fb 100644--- a/apps/docs/next-env.d.ts+++ b/apps/docs/next-env.d.ts@@ -1,6 +1,6 @@/// <reference types="next" />/// <reference types="next/image-types/global" />-import "./.next/types/routes.d.ts";+import "./.next/dev/types/routes.d.ts";// NOTE: This file should not be edited// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.diff --git a/apps/docs/openapi.json b/apps/docs/openapi.jsonindex 70ec5815f..5e6f9baf5 100644--- a/apps/docs/openapi.json+++ b/apps/docs/openapi.json@@ -794,9 +794,18 @@"description": {"anyOf": [{ "type": "string" }, { "type": "null" }]},- "status": { "type": "string" },+ "status": {+ "enum": [+ "to-do",+ "in-progress",+ "in-review",+ "done",+ "archived",+ "planned"+ ]+ },"priority": {- "anyOf": [{ "type": "string" }, { "type": "null" }]+ "enum": ["no-priority", "low", "medium", "high", "urgent"]},"dueDate": { "anyOf": [{}, { "type": "null" }] },"createdAt": {}@@ -875,9 +884,18 @@"description": {"anyOf": [{ "type": "string" }, { "type": "null" }]},- "status": { "type": "string" },+ "status": {+ "enum": [+ "to-do",+ "in-progress",+ "in-review",+ "done",+ "archived",+ "planned"+ ]+ },"priority": {- "anyOf": [{ "type": "string" }, { "type": "null" }]+ "enum": ["no-priority", "low", "medium", "high", "urgent"]},"dueDate": { "anyOf": [{}, { "type": "null" }] },"createdAt": {}@@ -936,9 +954,18 @@"description": {"anyOf": [{ "type": "string" }, { "type": "null" }]},- "status": { "type": "string" },+ "status": {+ "enum": [+ "to-do",+ "in-progress",+ "in-review",+ "done",+ "archived",+ "planned"+ ]+ },"priority": {- "anyOf": [{ "type": "string" }, { "type": "null" }]+ "enum": ["no-priority", "low", "medium", "high", "urgent"]},"dueDate": { "anyOf": [{}, { "type": "null" }] },"createdAt": {}@@ -1024,9 +1051,18 @@"description": {"anyOf": [{ "type": "string" }, { "type": "null" }]},- "status": { "type": "string" },+ "status": {+ "enum": [+ "to-do",+ "in-progress",+ "in-review",+ "done",+ "archived",+ "planned"+ ]+ },"priority": {- "anyOf": [{ "type": "string" }, { "type": "null" }]+ "enum": ["no-priority", "low", "medium", "high", "urgent"]},"dueDate": { "anyOf": [{}, { "type": "null" }] },"createdAt": {}@@ -1158,9 +1194,18 @@"description": {"anyOf": [{ "type": "string" }, { "type": "null" }]},- "status": { "type": "string" },+ "status": {+ "enum": [+ "to-do",+ "in-progress",+ "in-review",+ "done",+ "archived",+ "planned"+ ]+ },"priority": {- "anyOf": [{ "type": "string" }, { "type": "null" }]+ "enum": ["no-priority", "low", "medium", "high", "urgent"]},"dueDate": { "anyOf": [{}, { "type": "null" }] },"createdAt": {}@@ -1232,9 +1277,18 @@"description": {"anyOf": [{ "type": "string" }, { "type": "null" }]},- "status": { "type": "string" },+ "status": {+ "enum": [+ "to-do",+ "in-progress",+ "in-review",+ "done",+ "archived",+ "planned"+ ]+ },"priority": {- "anyOf": [{ "type": "string" }, { "type": "null" }]+ "enum": ["no-priority", "low", "medium", "high", "urgent"]},"dueDate": { "anyOf": [{}, { "type": "null" }] },"createdAt": {}@@ -1306,9 +1360,18 @@"description": {"anyOf": [{ "type": "string" }, { "type": "null" }]},- "status": { "type": "string" },+ "status": {+ "enum": [+ "to-do",+ "in-progress",+ "in-review",+ "done",+ "archived",+ "planned"+ ]+ },"priority": {- "anyOf": [{ "type": "string" }, { "type": "null" }]+ "enum": ["no-priority", "low", "medium", "high", "urgent"]},"dueDate": { "anyOf": [{}, { "type": "null" }] },"createdAt": {}@@ -1380,9 +1443,18 @@"description": {"anyOf": [{ "type": "string" }, { "type": "null" }]},- "status": { "type": "string" },+ "status": {+ "enum": [+ "to-do",+ "in-progress",+ "in-review",+ "done",+ "archived",+ "planned"+ ]+ },"priority": {- "anyOf": [{ "type": "string" }, { "type": "null" }]+ "enum": ["no-priority", "low", "medium", "high", "urgent"]},"dueDate": { "anyOf": [{}, { "type": "null" }] },"createdAt": {}@@ -1454,9 +1526,18 @@"description": {"anyOf": [{ "type": "string" }, { "type": "null" }]},- "status": { "type": "string" },+ "status": {+ "enum": [+ "to-do",+ "in-progress",+ "in-review",+ "done",+ "archived",+ "planned"+ ]+ },"priority": {- "anyOf": [{ "type": "string" }, { "type": "null" }]+ "enum": ["no-priority", "low", "medium", "high", "urgent"]},"dueDate": { "anyOf": [{}, { "type": "null" }] },"createdAt": {}@@ -1528,9 +1609,18 @@"description": {"anyOf": [{ "type": "string" }, { "type": "null" }]},- "status": { "type": "string" },+ "status": {+ "enum": [+ "to-do",+ "in-progress",+ "in-review",+ "done",+ "archived",+ "planned"+ ]+ },"priority": {- "anyOf": [{ "type": "string" }, { "type": "null" }]+ "enum": ["no-priority", "low", "medium", "high", "urgent"]},"dueDate": { "anyOf": [{}, { "type": "null" }] },"createdAt": {}@@ -1591,7 +1681,20 @@"properties": {"id": { "type": "string" },"taskId": { "type": "string" },- "type": { "type": "string" },+ "type": {+ "enum": [+ "comment",+ "task",+ "status_changed",+ "priority_changed",+ "unassigned",+ "assignee_changed",+ "due_date_changed",+ "title_changed",+ "description_changed",+ "create"+ ]+ },"createdAt": {},"userId": { "type": "string" },"content": {@@ -1637,7 +1740,20 @@"properties": {"id": { "type": "string" },"taskId": { "type": "string" },- "type": { "type": "string" },+ "type": {+ "enum": [+ "comment",+ "task",+ "status_changed",+ "priority_changed",+ "unassigned",+ "assignee_changed",+ "due_date_changed",+ "title_changed",+ "description_changed",+ "create"+ ]+ },"createdAt": {},"userId": { "type": "string" },"content": {@@ -1690,7 +1806,20 @@"properties": {"id": { "type": "string" },"taskId": { "type": "string" },- "type": { "type": "string" },+ "type": {+ "enum": [+ "comment",+ "task",+ "status_changed",+ "priority_changed",+ "unassigned",+ "assignee_changed",+ "due_date_changed",+ "title_changed",+ "description_changed",+ "create"+ ]+ },"createdAt": {},"userId": { "type": "string" },"content": {@@ -1739,7 +1868,20 @@"properties": {"id": { "type": "string" },"taskId": { "type": "string" },- "type": { "type": "string" },+ "type": {+ "enum": [+ "comment",+ "task",+ "status_changed",+ "priority_changed",+ "unassigned",+ "assignee_changed",+ "due_date_changed",+ "title_changed",+ "description_changed",+ "create"+ ]+ },"createdAt": {},"userId": { "type": "string" },"content": {@@ -1788,7 +1930,20 @@"properties": {"id": { "type": "string" },"taskId": { "type": "string" },- "type": { "type": "string" },+ "type": {+ "enum": [+ "comment",+ "task",+ "status_changed",+ "priority_changed",+ "unassigned",+ "assignee_changed",+ "due_date_changed",+ "title_changed",+ "description_changed",+ "create"+ ]+ },"createdAt": {},"userId": { "type": "string" },"content": {@@ -2384,7 +2539,16 @@"content": {"anyOf": [{ "type": "string" }, { "type": "null" }]},- "type": { "type": "string" },+ "type": {+ "enum": [+ "info",+ "task_created",+ "workspace_created",+ "task_status_changed",+ "task_assignee_changed",+ "time_entry_created"+ ]+ },"isRead": {"anyOf": [{ "type": "boolean" }, { "type": "null" }]},@@ -2392,7 +2556,10 @@"anyOf": [{ "type": "string" }, { "type": "null" }]},"resourceType": {- "anyOf": [{ "type": "string" }, { "type": "null" }]+ "anyOf": [+ { "enum": ["task", "workspace"] },+ { "type": "null" }+ ]},"createdAt": {}},@@ -2432,7 +2599,16 @@"content": {"anyOf": [{ "type": "string" }, { "type": "null" }]},- "type": { "type": "string" },+ "type": {+ "enum": [+ "info",+ "task_created",+ "workspace_created",+ "task_status_changed",+ "task_assignee_changed",+ "time_entry_created"+ ]+ },"isRead": {"anyOf": [{ "type": "boolean" }, { "type": "null" }]},@@ -2440,7 +2616,10 @@"anyOf": [{ "type": "string" }, { "type": "null" }]},"resourceType": {- "anyOf": [{ "type": "string" }, { "type": "null" }]+ "anyOf": [+ { "enum": ["task", "workspace"] },+ { "type": "null" }+ ]},"createdAt": {}},@@ -2499,7 +2678,16 @@"content": {"anyOf": [{ "type": "string" }, { "type": "null" }]},- "type": { "type": "string" },+ "type": {+ "enum": [+ "info",+ "task_created",+ "workspace_created",+ "task_status_changed",+ "task_assignee_changed",+ "time_entry_created"+ ]+ },"isRead": {"anyOf": [{ "type": "boolean" }, { "type": "null" }]},@@ -2507,7 +2695,10 @@"anyOf": [{ "type": "string" }, { "type": "null" }]},"resourceType": {- "anyOf": [{ "type": "string" }, { "type": "null" }]+ "anyOf": [+ { "enum": ["task", "workspace"] },+ { "type": "null" }+ ]},"createdAt": {}},@@ -2618,9 +2809,24 @@"description": {"anyOf": [{ "type": "string" }, { "type": "null" }]},- "status": { "type": "string" },+ "status": {+ "enum": [+ "to-do",+ "in-progress",+ "in-review",+ "done",+ "archived",+ "planned"+ ]+ },"priority": {- "anyOf": [{ "type": "string" }, { "type": "null" }]+ "enum": [+ "no-priority",+ "low",+ "medium",+ "high",+ "urgent"+ ]},"dueDate": { "anyOf": [{}, { "type": "null" }] },"createdAt": {}@@ -2709,7 +2915,20 @@"properties": {"id": { "type": "string" },"taskId": { "type": "string" },- "type": { "type": "string" },+ "type": {+ "enum": [+ "comment",+ "task",+ "status_changed",+ "priority_changed",+ "unassigned",+ "assignee_changed",+ "due_date_changed",+ "title_changed",+ "description_changed",+ "create"+ ]+ },"createdAt": {},"userId": { "type": "string" },"content": {@@ -2733,7 +2952,20 @@"properties": {"id": { "type": "string" },"taskId": { "type": "string" },- "type": { "type": "string" },+ "type": {+ "enum": [+ "comment",+ "task",+ "status_changed",+ "priority_changed",+ "unassigned",+ "assignee_changed",+ "due_date_changed",+ "title_changed",+ "description_changed",+ "create"+ ]+ },"createdAt": {},"userId": { "type": "string" },"content": {