Repository navigation
feat(organizations): add sub-organization management - #5070
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryIncremental review of the rebased branch (fc81a99): the PR-owned changes since a9adfa9 are limited to three small fixes — the People search input is now remounted via a Files Reviewed (3 files, incremental since a9adfa9)
Previous Review Summaries (3 snapshots, latest commit a9adfa9)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit a9adfa9)Status: 1 Issue Found | Recommendation: Address before merge Executive SummaryIncremental review of the rebased branch (a9adfa9): all three previous findings are fixed with test coverage — the stale Overview
Issue Details (click to expand)SUGGESTION
Files Reviewed (20 files, incremental since bec71e9)
Fix these issues in Kilo Cloud Previous review (commit bec71e9)Status: 3 Issues Found | Recommendation: Address before merge Executive SummaryThe sub-organization credits query can emit a stale past "next expiration" date on the exact request that processes an expiration, and the batched credit-expiration processor turns optimistic-race exhaustion into a 500 instead of degrading gracefully as documented; the new fund-distribution tab wiring in the latest commit introduces no new issues. Overview
Issue Details (click to expand)WARNING
Files Reviewed (35 files)
Fix these issues in Kilo Cloud Previous reviewStatus: 3 Issues Found | Recommendation: Address before merge Executive SummaryThe new sub-organization credits query can emit a stale past "next expiration" date on the exact request that processes an expiration, and the new batched credit-expiration processor turns optimistic-race exhaustion into a 500 instead of degrading gracefully as documented. Overview
Issue Details (click to expand)WARNING
Files Reviewed (35 files)
Reviewed by kimi-k3 · Input: 113.8K · Output: 6.3K · Cached: 530K Review guidance: REVIEW.md from base branch |
f054b4f to
a9adfa9
Compare
a9adfa9 to
fc81a99
Compare
Closes #5009
Summary
Adds the ability for users to manage sub-organizations.
Validation
pnpm --filter web test -- --runInBand apps/web/src/routers/organizations/organization-sub-organizations-router.test.ts apps/web/src/routers/organizations/organization-router.test.ts apps/web/src/routers/usage-analytics-router.test.ts apps/web/src/lib/organizations/sub-organizations/model-policy.test.ts apps/web/src/lib/organizations/organization-sso-policy.test.ts apps/web/src/lib/creditExpirationOrg.test.ts apps/web/src/tests/scripts/usage/generate-org-data.test.ts apps/web/src/components/ui/design-primitives.test.ts(129 tests)pnpm --filter web typecheckpnpm --filter web lintpnpm format:checkgit diff --check origin/main...HEAD