Repository navigation
Phase 2+3: Auth, Workspace, Projects & Work Items - #5
Merged
Merged
Conversation
Phase 2 (Auth & Workspace): - Clerk authentication with Svix webhook verification - Workspace CRUD with slug-based routing - Invitation system with email-based invites - RBAC (Owner/Admin/Member/Viewer) with atomic owner safeguards - FOR UPDATE row locks prevent concurrent owner demotion race conditions Phase 3 (Projects & Work Items): - Workspace-scoped projects with key-based identifiers - Hierarchical work items (epic > task > subtask, max depth 3) - Human-readable IDs (PROJ-42) via atomic counter with FOR UPDATE lock - Per-project workflow states (Backlog, Todo, In Progress, Done) - Work item assignment to workspace members - Append-only activity log with transactional writes - RBAC enforcement on all CRUD operations - Safe migration with backfill for existing project rows - 26 contract tests against real Drizzle/Postgres - Basic UI: project list, detail, create dialogs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
CI typecheck fails because packages/shared and packages/db are typechecked independently with their own tsconfig.json. While the base tsconfig has allowImportingTsExtensions, the package-level tsc invocation rejects .ts extensions. Revert to extensionless imports which work with bundler module resolution. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
CI typecheck rejects .ts extension imports across all packages. The base tsconfig has allowImportingTsExtensions but CI's turbo typecheck runs each package independently. Use extensionless imports which work with bundler module resolution. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contract tests import .ts server files which Node can't resolve natively. Add tsx as devDependency and use --import tsx in the test:contracts script so CI can run Phase 2 and Phase 3 contract tests. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contract tests for Phase 2 and Phase 3 need a real Postgres database. Add a Postgres 16 service container on port 5433 and run db:migrate before tests. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
What's included
/api/workspaces/[slug]/Test plan
npm run buildpassesnpm run lintpassesnpm run testpasses (26/26 contract tests)🤖 Generated with Claude Code