Skip to content

[GIT-350] chore: flatten web layouts, lib, and services out of core/ - #9881

Merged
sriramveeraghanta merged 2 commits into
previewfrom
chore/git-350-flatten-web-layouts-lib-services
Sep 25, 2026
Merged

sriramveeraghanta merged 2 commits into
previewfrom
chore/git-350-flatten-web-layouts-lib-services

Conversation

@prateekshourya29

@prateekshourya29 prateekshourya29 commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

Description

First of four PRs to flatten apps/web/core/ into the app root (admin and space are already flat).

  • Move layouts/, lib/, and services/ from apps/web/core/ to apps/web/
  • Add transitional path overrides in tsconfig.json (@/layouts/*, @/lib/*, @/services/*) while keeping @/* → ./core/*
  • Convert the two cross-folder relative imports to @/ so later flatten PRs cannot break them
  • Small lint cleanups in moved files required for pre-commit (oxlint --deny-warnings)

No behavior change — path layout / alias cleanup.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Improvement (change that would cause existing functionality to not work as expected)
  • Code refactoring
  • Performance improvements
  • Documentation update

Screenshots and Media (if applicable)

Test Scenarios

  1. pnpm turbo run check:types --filter=web is green
  2. apps/web/layouts, apps/web/lib, and apps/web/services exist at the app root
  3. Those folders are gone from apps/web/core/
  4. tsconfig.json has the three transitional @/ overrides and still points @/* at ./core/*

References

  • GIT-350
  • Parent: GIT-348

Summary by CodeRabbit

  • Bug Fixes
    • Theme settings now reinitialize when the active account changes, so the correct settings are applied after switching accounts. Other changes in this release do not alter user-facing behavior.

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.
@github-actions

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

React Doctor found no new issues. 🎉

Reviewed by React Doctor for commit 206b1a0.

@coderabbitai

coderabbitai Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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 configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 396e163b-5bd9-4f41-bb49-e3d3eacc4ea5

📥 Commits

Reviewing files that changed from the base of the PR and between cffb82d and 206b1a0.

📒 Files selected for processing (72)
  • apps/web/core/components/gantt-chart/sidebar/issues/sidebar.tsx
  • apps/web/core/hooks/use-timeline-chart.ts
  • apps/web/layouts/auth-layout/project-wrapper.tsx
  • apps/web/layouts/auth-layout/workspace-wrapper.tsx
  • apps/web/layouts/default-layout/index.tsx
  • apps/web/lib/app-rail/context.tsx
  • apps/web/lib/app-rail/index.ts
  • apps/web/lib/app-rail/provider.tsx
  • apps/web/lib/app-rail/types.ts
  • apps/web/lib/b-progress/AppProgressBar.tsx
  • apps/web/lib/idle-task.ts
  • apps/web/lib/local-storage.ts
  • apps/web/lib/polyfills/index.ts
  • apps/web/lib/stale-asset-error.ts
  • apps/web/lib/store-context.tsx
  • apps/web/lib/wrappers/authentication-wrapper.tsx
  • apps/web/lib/wrappers/instance-wrapper.tsx
  • apps/web/lib/wrappers/store-wrapper.tsx
  • apps/web/services/ai.service.ts
  • apps/web/services/analytics.service.ts
  • apps/web/services/api.service.ts
  • apps/web/services/app_config.service.ts
  • apps/web/services/app_installation.service.ts
  • apps/web/services/auth.service.ts
  • apps/web/services/cycle.service.ts
  • apps/web/services/cycle_archive.service.ts
  • apps/web/services/dashboard.service.ts
  • apps/web/services/estimate.service.ts
  • apps/web/services/favorite/favorite.service.ts
  • apps/web/services/favorite/index.ts
  • apps/web/services/file-upload.service.ts
  • apps/web/services/file.service.ts
  • apps/web/services/inbox/inbox-issue.service.ts
  • apps/web/services/inbox/index.ts
  • apps/web/services/inbox/intake-work_item_version.service.ts
  • apps/web/services/instance.service.ts
  • apps/web/services/integrations/github.service.ts
  • apps/web/services/integrations/index.ts
  • apps/web/services/integrations/integration.service.ts
  • apps/web/services/integrations/jira.service.ts
  • apps/web/services/issue/index.ts
  • apps/web/services/issue/issue.service.ts
  • apps/web/services/issue/issue_activity.service.ts
  • apps/web/services/issue/issue_archive.service.ts
  • apps/web/services/issue/issue_attachment.service.ts
  • apps/web/services/issue/issue_comment.service.ts
  • apps/web/services/issue/issue_label.service.ts
  • apps/web/services/issue/issue_reaction.service.ts
  • apps/web/services/issue/issue_relation.service.ts
  • apps/web/services/issue/work_item_version.service.ts
  • apps/web/services/issue/workspace_draft.service.ts
  • apps/web/services/issue_filter.service.ts
  • apps/web/services/module.service.ts
  • apps/web/services/module_archive.service.ts
  • apps/web/services/page/index.ts
  • apps/web/services/page/project-page-version.service.ts
  • apps/web/services/page/project-page.service.ts
  • apps/web/services/project/index.ts
  • apps/web/services/project/project-archive.service.ts
  • apps/web/services/project/project-export.service.ts
  • apps/web/services/project/project-member.service.ts
  • apps/web/services/project/project-publish.service.ts
  • apps/web/services/project/project-state.service.ts
  • apps/web/services/project/project.service.ts
  • apps/web/services/sticky.service.ts
  • apps/web/services/timezone.service.ts
  • apps/web/services/user.service.ts
  • apps/web/services/view.service.ts
  • apps/web/services/webhook.service.ts
  • apps/web/services/workspace-notification.service.ts
  • apps/web/services/workspace.service.ts
  • apps/web/tsconfig.json

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Walkthrough

Walkthrough

The 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.

Changes

Path and lint updates

Layer / File(s) Summary
Path mappings, imports, and lint suppressions
apps/web/tsconfig.json, apps/web/core/components/gantt-chart/sidebar/issues/sidebar.tsx, apps/web/core/hooks/use-timeline-chart.ts, apps/web/lib/b-progress/AppProgressBar.tsx, apps/web/services/file-upload.service.ts
The TypeScript configuration adds three path mappings, and two imports switch to aliases. Targeted Oxlint suppressions are added for a CSS side-effect import and two Axios member-access sites.

Store initialization

Layer / File(s) Summary
Sidebar and theme state
apps/web/lib/wrappers/store-wrapper.tsx
Sidebar state uses a direct comparison with "true". The theme initialization effect now also depends on the user ID.

Sign-out request

Layer / File(s) Summary
CSRF token and sign-out form
apps/web/services/auth.service.ts
signOut awaits the CSRF token before validating it and submitting the existing POST form.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Refactor

Merge Risk: ⚪ Minimal · up to 206b1

No concrete behavior change requiring a fix before merge remains; proceed with normal checks.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 206b1

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
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The inspected behavioral changes are confined to web-client presentation and the existing sign-out request path; they do not show expanded authority or a new cross-system dependency.

Trust Boundaries and Controls

  • observed — Sign-out still requires a retrieved CSRF token before submitting the POST form. The changed control flow does not bypass that check.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning 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 … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the main change: flattening the web layouts, lib, and services directories out of core/.
Description check ✅ Passed The description follows the required template, explains the directory and alias changes, identifies the change types, and lists test scenarios and references. The screenshots section is correctly mark…
Full details: Docstring Coverage

Explanation

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.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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.

@makeplane

makeplane Bot commented Sep 25, 2026

Copy link
Copy Markdown

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.
@sriramveeraghanta
sriramveeraghanta merged commit 888b086 into preview Sep 25, 2026
14 checks passed
@sriramveeraghanta
sriramveeraghanta deleted the chore/git-350-flatten-web-layouts-lib-services branch September 25, 2026 11:42
vladdaneliuc pushed a commit to breakpointit/plane that referenced this pull request Oct 5, 2026
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]>
nettnikl pushed a commit to nettnikl/hangar that referenced this pull request Dec 1, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants