Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish Basic Task Card & Detail Display #28

Merged
merged 12 commits into from
Jun 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,18 @@
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript"],
"rules": {}
"rules": {
"@typescript-eslint/no-extra-semi": "error",
"no-extra-semi": "off"
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
"rules": {
"@typescript-eslint/no-extra-semi": "error",
"no-extra-semi": "off"
}
}
]
}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ Thumbs.db
*.env.development
*.env

.nx
.nx

storybook-static
20 changes: 12 additions & 8 deletions libs/supabase/supabase/migrations/20240521004036_tasks_schema.sql
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
create table public.tasks (
task_id numeric,
task_id text,
project_id serial,
board_name text,
task_title text,
state_name text,
task_description text,
assignee uuid,
reviewer uuid,
due_date date,
date_started date,
hours_estimated integer,
hours_completed integer,
constraint tasks_pkey primary key (task_id, project_id, board_name),
constraint board_fkey foreign key (board_name, project_id)
references public.boards (board_name, project_id) on delete cascade,
constraint board_state_fkey foreign key (project_id, board_name, state_name)
references public.board_states (project_id, board_name, name),
constraint assignee_fkey foreign key (assignee)
references public.profiles (user_id),
constraint reviewer_fkey foreign key (reviewer)
Expand All @@ -21,10 +25,10 @@ create table public.tasks (
create table public.parent_child_tasks (
parent_task_project_id serial,
parent_task_board_name text,
parent_task_id numeric,
parent_task_id text,
child_task_project_id serial,
child_task_board_name text,
child_task_id numeric,
child_task_id text,
constraint parent_task_fkey foreign key (parent_task_id, parent_task_board_name, parent_task_project_id)
references public.tasks (task_id, board_name, project_id) on delete cascade,
constraint child_task_fkey foreign key (child_task_id, child_task_board_name, child_task_project_id)
Expand All @@ -35,8 +39,8 @@ create table public.parent_child_tasks (
create table public.related_tasks (
linked_task_project_id serial,
linked_task_board_name text,
linked_task_id numeric,
task_id numeric,
linked_task_id text,
task_id text,
task_project_id serial,
task_board_name text,
constraint task_fkey foreign key (task_id, task_board_name, task_project_id)
Expand All @@ -48,8 +52,8 @@ create table public.related_tasks (
create table public.blocker_tasks (
blocker_task_project_id serial,
blocker_task_board_name text,
blocker_task_id numeric,
task_id numeric,
blocker_task_id text,
task_id text,
task_project_id serial,
task_board_name text,
constraint task_fkey foreign key (task_id, task_board_name, task_project_id)
Expand All @@ -60,7 +64,7 @@ create table public.blocker_tasks (

create table public.task_tags (
tag_name text not null,
task_id numeric not null,
task_id text not null,
board_name text not null,
project_id serial not null,
constraint task_fkey foreign key (task_id, board_name, project_id)
Expand Down
27 changes: 6 additions & 21 deletions migrations.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,12 @@
{
"migrations": [
{
"version": "18.1.0-beta.3",
"description": "Moves affected.defaultBase to defaultBase in `nx.json`",
"implementation": "./src/migrations/update-17-2-0/move-default-base",
"package": "nx",
"name": "move-default-base-to-nx-json-root"
},
{
"cli": "nx",
"version": "18.1.0-beta.3",
"description": "Update to Cypress ^13.6.6 if the workspace is using Cypress v13 to ensure workspaces don't use v13.6.5 which has an issue when verifying Cypress.",
"implementation": "./src/migrations/update-18-1-0/update-cypress-version-13-6-6",
"package": "@nx/cypress",
"name": "update-cypress-version-13-6-6"
},
{
"cli": "nx",
"version": "18.1.1-beta.0",
"description": "Ensure targetDefaults inputs for task hashing when '@nx/webpack:webpack' is used are correct for Module Federation.",
"factory": "./src/migrations/update-18-1-1/fix-target-defaults-inputs",
"package": "@nx/react",
"name": "fix-target-defaults-for-webpack"
"version": "19.1.0-beta.6",
"description": "Migrate no-extra-semi rules into user config, out of nx extendable configs",
"implementation": "./src/migrations/update-19-1-0-migrate-no-extra-semi/migrate-no-extra-semi",
"package": "@nx/eslint-plugin",
"name": "update-19-1-0-rename-no-extra-semi"
}
]
}
}
26 changes: 23 additions & 3 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
"default": {
"runner": "nx-cloud",
"options": {
"cacheableOperations": ["build", "lint", "test", "e2e"],
"cacheableOperations": [
"build",
"lint",
"test",
"e2e",
"build-storybook"
],
"accessToken": "ZjlhMDBlNTYtYjYyMi00MDU3LTgxNzQtZWEyOTBhYjRjY2YzfHJlYWQtd3JpdGU="
}
}
Expand Down Expand Up @@ -39,7 +45,10 @@
"!{projectRoot}/src/test-setup.[jt]s",
"!{projectRoot}/test-setup.[jt]s",
"!{projectRoot}/.eslintrc.json",
"!{projectRoot}/eslint.config.js"
"!{projectRoot}/eslint.config.js",
"!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
"!{projectRoot}/.storybook/**/*",
"!{projectRoot}/tsconfig.storybook.json"
],
"sharedGlobals": []
},
Expand All @@ -66,5 +75,16 @@
"linter": "eslint"
}
}
}
},
"plugins": [
{
"plugin": "@nx/storybook/plugin",
"options": {
"serveStorybookTargetName": "storybook",
"buildStorybookTargetName": "build-storybook",
"testStorybookTargetName": "test-storybook",
"staticStorybookTargetName": "static-storybook"
}
}
]
}
Loading
Loading