Repository navigation
[GIT-350] chore: flatten web layouts, lib, and services out of core/ - #9881
Conversation
Move apps/web/core/{layouts,lib,services} to apps/web/ and add
transitional @/ path overrides. Convert the two cross-folder
relative imports to @/ aliases so later flatten PRs stay safe.
|
React Doctor found no new issues. 🎉 Reviewed by React Doctor for commit |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (72)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe web app adds TypeScript path mappings and updates imports. Store initialization and sign-out control flow are also updated. Targeted Oxlint suppressions are added for CSS and Axios member access. ChangesPath and lint updates
Store initialization
Sign-out request
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Refactor Merge Risk: ⚪ Minimal · up to No concrete behavior change requiring a fix before merge remains; proceed with normal checks. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The changes remain within the web client. Sign-out retains its CSRF check and user-state reset ordering, while the identity-dependent change affects theme presentation rather than access control. Some review coverage remains incomplete. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 6 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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. Comment |
|
Linked to Plane Work Item(s) References This comment was auto-generated by Plane |
Named CancelToken import is type-only under verbatimModuleSyntax; keep runtime access via axios default export with oxlint disables.
Brings in 48 upstream commits, including a security fix that lands directly in the Entra OAuth path: INFRA-779 (makeplane#9709) hardens validate_next_path against authority-relative redirects (//evil.com and tab/CR/LF-obfuscated variants that browsers strip before parsing). Our Microsoft callback calls that helper in 11 places, so the fork carried that open redirect until now. Also picks up Django 5.2.15->5.2.17, DRF 3.17.1->3.17.2, PyJWT 2.13.0->2.15.1, the 2026-10-01 advisory pin bumps, and a fix scoping project-join membership to the invited project. Adaptations required by upstream refactors: - Upstream flattened apps/web/core/* into apps/web/* (makeplane#9881-makeplane#9884, 1513 renames). Git followed the rename for every file we had modified; the one file we added, hooks/oauth/microsoft.tsx, needed placing by hand at the new path. Content is byte-identical to before the merge. - Upstream replaced @plane/ui and @plane/propel with @makeplane/propel and @plane/blocks (makeplane#9802). Our three admin pages moved from @/providers/toast to @plane/blocks/toast, the TOAST_TYPE enum became string literals, and AnchorButton dropped its nativeButton prop. UI changes: - Remove the sign-in/sign-up toggle from the auth header. Entra SSO is the only enabled method, so both routes run the identical flow and the link only bounced users between two identical screens. - Stop rendering AuthFooter ("Join 10,000+ teams building with Plane" plus the Zerodha/Sony/Dolby/Accenture logos). Only the call site is touched, so upstream edits to footer.tsx still merge cleanly. Verified: pnpm check 56/56, pnpm build 15/15, all Entra feature markers intact (provider, views, routes, config, secret masking, Caddyfile 429 fix, onboarding skip, source-code link, i18n), and the ID-token security suite passes 14/14 against PyJWT 2.15.1 (forged signature, alg=none, wrong audience/issuer/tenant, expired, missing claim and nonce mismatch all still rejected). Co-Authored-By: Claude Opus 5 <[email protected]>
Converge the web app layout with upstream makeplane/plane v1.5.0 (888b086, makeplane#9881; 4a40b96, makeplane#9882; bdebb44, makeplane#9883; e53e2b6, makeplane#9884). Every file under apps/web/core/{components,hooks,layouts,lib,services,store} moves up to apps/web/ with git mv, Hangar's own modules included. 1684 of the 1686 moves are byte-identical; the other two take upstream's only import change from makeplane#9881: the timeline hook and the gantt sidebar import each other through @/ instead of a relative path. Upstream's unrelated lint and behaviour edits in those commits are not taken. @/* now points at ./* and the redundant @/app, @/helpers and @/styles paths go, as in makeplane#9884. @/plane-web/* -> ./ce/* stays (listed first so first-match resolvers prefer it), because Hangar keeps the ce overlay upstream removed. Contract tests, the branding allowlist, the community billing test, the bundle-sinks owner test and the trial-merge area test follow the new paths. The third-party script and collapsible nesting contracts scan the web root instead of deriving it from core/, and the external links contract scans the six moved directories. FORK.md ledger rows that named apps/web/core/ paths now name the flattened ones, with row 143 for the move; two docs that list paths follow, their tables reformatted.
Description
First of four PRs to flatten
apps/web/core/into the app root (admin and space are already flat).layouts/,lib/, andservices/fromapps/web/core/toapps/web/tsconfig.json(@/layouts/*,@/lib/*,@/services/*) while keeping@/*→./core/*@/so later flatten PRs cannot break themoxlint --deny-warnings)No behavior change — path layout / alias cleanup.
Type of Change
Screenshots and Media (if applicable)
Test Scenarios
pnpm turbo run check:types --filter=webis greenapps/web/layouts,apps/web/lib, andapps/web/servicesexist at the app rootapps/web/core/tsconfig.jsonhas the three transitional@/overrides and still points@/*at./core/*References
Summary by CodeRabbit