feat(teams): org-scope projects + active-org context (Phase 5)#9
Merged
Conversation
- migration 0003: backfill org_id/team_id on existing projects/workflows/ reviews/chats/subfolders to each owner's personal org + default team (so nothing disappears once listing is org-scoped). Applied to staging. - backend lib/tenancy: resolveActiveOrg (X-Org-Id header or personal org) + accessibleOrgIds helper - backend projects: POST stamps org_id/team_id; GET lists all projects in the active org (team-wide visibility) plus legacy shared_with (transitional) - frontend: X-Org-Id header from active org (mikeApi), OrgContext provider wired into the (pages) layout, org page drives the shared active-org state so switching org re-scopes the whole app shared_with retained during transition (retire after parity). Other resource types (workflows/reviews/chats standalone listing) still use the prior model and will be scoped next. Backend tsc + frontend tsc clean. Co-Authored-By: Claude Opus 4.8 (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.
Backfill (migration 0003) + projects scoped to the active org (team-wide visibility) + X-Org-Id active-org context on the frontend. Switching org re-scopes the app. shared_with retained transitionally. Backend+frontend typecheck clean. Applied 0003 to staging already.