refactor: extract workspace route domains#54

merged3
main
refactor/workspace-domains
openedSep 17, 2026bySScreen
View on GitHubTwo-way sync enabledPR last imported Oct 22, 2026

Summary

  • Extract account, profile, settings, team, templates, integrations, resources, subscription, onboarding, and notification modules from the route bucket.
  • Move shared route utilities, theme handling, feedback, and domain types to explicit feature-owned modules.
  • Keep compatibility exports temporarily so the existing workspace routes remain behaviorally unchanged while the next layer adopts the new ownership boundaries.

Verification

  • TypeScript passed on the foundation branch.
  • Production build passed on the foundation branch.
  • AST comparison found no moved-function body mismatches.

Open in Capy

Summary by CodeRabbit

  • New Features

    • Added account settings with sign-in, profile management, and public profile editing.
    • Added integrations management for connected services and project links.
    • Added resources and project template management.
    • Added team workspaces with member permissions, comments, activity, notifications, and chat.
    • Added subscription and pricing administration.
    • Added configurable workspace settings, notifications, analytics consent, appearance, regional preferences, and backups.
    • Added onboarding choices for local mode, accounts, and sample workspaces.
  • Bug Fixes

    • App content now remains visible while authentication is loading.
    • Updated smoke-test expectations for creator unlock messaging.

Checks

1 failing Β· 4 successful
Some checks were not successful

Failing1

3f0f1e6

Added 1 commit

  • refactor: extract workspace route domainsc1bef8c
Synced from GitHub

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. πŸŽ‰

ℹ️ Recent review info
βš™οΈ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: cb4f18bf-1eeb-481c-a593-71aed9ccdc5c

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between b6f1cf3b9cb6d6d9ba1f82a63aeffaa0341a470c and 3f0f1e6190a001c470fa71999f31e9da58f381f9.

πŸ“’ Files selected for processing (45)
  • scripts/verify-browser-smoke.mjs
  • scripts/verify.mjs
  • src/app/tracker-app.tsx
  • src/features/account/account-controller.ts
  • src/features/account/account-page.tsx
  • src/features/integrations/integration-constants.ts
  • src/features/integrations/integrations-page.tsx
  • src/features/notifications/notification-bell.tsx
  • src/features/notifications/notification-controller.ts
  • src/features/notifications/notification-copy.ts
  • src/features/onboarding/analytics-consent-dialog.tsx
  • src/features/onboarding/welcome-choice-dialog.tsx
  • src/features/profile/profile-components.tsx
  • src/features/profile/profile-controller.ts
  • src/features/profile/profile-page.tsx
  • src/features/resources/resources-page.tsx
  • src/features/routes/remaining-routes.tsx
  • src/features/routes/route-controllers.ts
  • src/features/routes/shared/app-feedback.tsx
  • src/features/routes/shared/clipboard.ts
  • src/features/routes/shared/empty-panel.tsx
  • src/features/routes/shared/route-theme.ts
  • src/features/routes/shared/route-types.ts
  • src/features/routes/utils/date-utils.ts
  • src/features/routes/utils/number-utils.ts
  • src/features/routes/utils/profile-utils.ts
  • src/features/routes/utils/project-utils.ts
  • src/features/routes/utils/status-utils.ts
  • src/features/routes/utils/work-type-utils.ts
  • src/features/settings/settings-components.tsx
  • src/features/settings/settings-controller.ts
  • src/features/settings/settings-defaults.ts
  • src/features/settings/settings-page.tsx
  • src/features/settings/settings-utils.ts
  • src/features/subscription/subscription-controller.ts
  • src/features/subscription/subscription-page.tsx
  • src/features/team/team-api.ts
  • src/features/team/team-chat-page.tsx
  • src/features/team/team-constants.ts
  • src/features/team/team-controller.ts
  • src/features/team/team-page.tsx
  • src/features/team/team-types.ts
  • src/features/team/team-utils.ts
  • src/features/templates/template-controller.ts
  • src/features/templates/templates-page.tsx

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


πŸ“ Walkthrough

Walkthrough

The pull request adds new workspace pages, shared utilities, authentication-aware controllers, profile and onboarding flows, team features, notification and subscription surfaces, local content management, and runtime verification updates.

Changes

Relay feature surface expansion

Layer / File(s)Summary
Shared foundations
src/features/routes/shared/*, src/features/routes/utils/*, src/features/settings/settings-defaults.ts, src/features/settings/settings-utils.ts, src/features/settings/settings-components.tsx
Adds shared feedback, theme, clipboard, empty-state, date, number, profile, project, status, work-type, settings, and validation utilities.
Controller wiring and route exports
src/features/*/*-controller.ts, src/features/routes/route-controllers.ts
Moves controller hooks into feature modules and re-exports them from the route controller barrel.
Account, profile, and onboarding surfaces
src/features/account/*, src/features/profile/*, src/features/onboarding/*
Adds account authentication states, profile editing and sharing, organization profiles, welcome choices, and analytics consent.
Settings workspace surface
src/features/settings/settings-page.tsx
Adds workspace settings, backup and restore, workflow configuration, notifications, permissions, integrations, appearance, and regional controls.
Integrations, resources, and templates
src/features/integrations/*, src/features/resources/*, src/features/templates/*
Adds local integration management, resource-link CRUD, project linking, and custom template management.
Team workspace workflows
src/features/team/*
Adds team administration, member permissions, ownership transfer, project comments, activity and notification views, and team chat.
Notifications and subscription flows
src/features/notifications/*, src/features/subscription/*
Adds notification display and read actions plus authentication-aware subscription loading and pricing states.
Runtime loading and verification updates
src/app/tracker-app.tsx, scripts/verify*.mjs
Keeps page content rendered while authentication loads and updates verification text and file targets.

Priority: βž– Normal

Estimated code review effort: 5 (Critical) | ~120 minutes

Change: Refactor

Merge Risk: βšͺ Minimal Β· up to 3f0f1

The extraction preserves existing behavior, with no concrete merge-blocking regression identified.

πŸš₯ Pre-merge checks | βœ… 4 | ❌ 1

❌ Failed checks (1 warning)

Check nameStatusExplanationResolution
Docstring Coverage⚠️ WarningDocstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 129 functions across 44 files.Write docstrings for the functions missing them to satisfy the coverage threshold.
βœ… Passed checks (4 passed)
Check nameStatusExplanation
Description Checkβœ… PassedCheck skipped - CodeRabbit’s high-level summary is enabled.
Title checkβœ… PassedThe title clearly and concisely describes the main change: extracting workspace route domains into feature-owned modules.
Linked Issues checkβœ… PassedCheck skipped because no linked issues were found for this pull request.
Out of Scope Changes checkβœ… PassedCheck skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches πŸ’‘ 1
πŸ“ Generate docstrings πŸ’‘
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❀️ Share

Comment @coderabbitai help to get the list of available commands.

Added 2 commits

  • fix: preserve foundation route HTML9de9c7f
  • fix: update foundation source contract3f0f1e6
Synced from GitHub

Tip

For best results, initiate chat on the files or code changes.

@screen-gd

Available commands:

  • @coderabbitai review β€” Review the current changes.
  • @coderabbitai full review β€” Review all changes again.
  • @coderabbitai approve β€” Approve the pull request.
  • @coderabbitai pause β€” Pause automatic reviews.
  • @coderabbitai resume β€” Resume automatic reviews.
  • @coderabbitai resolve β€” Resolve all CodeRabbit review comments.
  • @coderabbitai fix ci β€” Analyze and fix failing CI checks with a stacked PR.
  • @coderabbitai regenerate summary β€” Regenerate the pull request summary.
  • @coderabbitai help β€” Show this command list.

You are interacting with an AI system.