Repository navigation
feat: sync web, Space and Admin UI with the Propel design system - #10038
Conversation
|
React Doctor found 24 new issues in 22 files · 1 error & 23 warnings · score 58 / 100 (Critical) · 182 fixed · vs Errors
23 warnings
Reviewed by React Doctor for commit |
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
codingwolf-at
left a comment
There was a problem hiding this comment.
Five majors on behaviour this restyle introduced or copied into new call sites: module list % vs sidebar, leave-project navigating before the API, English type-to-confirm unlock phrases, webhook row-menu errors swallowed, and Space still forking property chips instead of the new blocks row.
The list ring counted cancelled work items as done, so it disagreed with the module sidebar, which now measures completed / (total - cancelled). Use the same rule on the list.
The row menu's toggle discarded the rejected update, so the badge stayed as it was with no feedback. Catch it and show the existing "Webhook not updated" toast.
…them
Delete project, leave project and delete workspace no longer require typing an
English passphrase ("delete my project", "Leave Project", "delete my
workspace"); typing the project or workspace name unlocks the action, as
leave-workspace already did. Titles, descriptions, labels and toasts in these
dialogs now go through t(), with new keys in every locale.
Leaving a project also navigates to the projects list only after the API call
succeeds, so a failed leave keeps the dialog open instead of moving the user
away while they are still a member.
WorkItemPropertiesList renders property entries in row order inside a wrapping container, the no-budget counterpart to PropertiesOverflowRow without its observers. WorkItemPropertyCountChip is the outlined sub-work item, attachment and link count chip: a button with onClick, or a display-only span without.
…erties list Space's IssueProperties now builds the same keyed property entries as the web app and renders them with WorkItemPropertiesList, instead of a copied tree of per-property wrappers. Count chips use the shared WorkItemPropertyCountChip; web's board fallback and count chips use the same pieces. Chip order, gating and appearance are unchanged.
…n-system-sync # Conflicts: # apps/web/components/settings/profile/content/pages/general/form.tsx
| @@ -16,8 +16,8 @@ export function NotAWorkspaceMember() { | |||
| <div className="grid h-full place-items-center p-4"> | |||
There was a problem hiding this comment.
React Doctor · react-doctor/duplicate-jsx-subtree (warning)
2 copies of this 10-node JSX tree appear across 2 files, repeating about 29 lines. Composition path: NotAWorkspaceMember > DefaultLayout > div.
Fix → Consider extracting a shared component if these trees represent the same UI concept. Keep them separate when the resemblance is incidental or the variants are likely to evolve independently.
|
|
||
| const filters: TActivityFilterOption[] = Object.entries(ACTIVITY_FILTER_TYPE_OPTIONS).map(([key, value]) => { | ||
| const filterEntries = Object.entries(ACTIVITY_FILTER_TYPE_OPTIONS).filter( | ||
| ([key]) => !filterKeys || filterKeys.includes(key as TActivityFilters) |
There was a problem hiding this comment.
React Doctor · react-doctor/js-set-map-lookups (warning)
This scales poorly because array.includes() inside a loop scans the whole list every time. Use a Set for constant-time lookups.
Fix → Use a Set or Map when you check for the same items over and over. Array.includes/find scans the whole list each time
| // Filters chosen in the filter menu, narrowed to the active tab. Falls back to the whole tab when | ||
| // none of the chosen filters belong to it, so a tab never renders empty because of another tab's choice. | ||
| const chosenTabFilters = activeTabFilters.filter((filter) => | ||
| (selectedFilters ?? defaultActivityFilters).includes(filter) |
There was a problem hiding this comment.
React Doctor · react-doctor/js-set-map-lookups (warning)
This scales poorly because array.includes() inside a loop scans the whole list every time. Use a Set for constant-time lookups.
Fix → Use a Set or Map when you check for the same items over and over. Array.includes/find scans the whole list each time
| ? effectiveFilters.filter((f) => f !== filter) | ||
| : [...effectiveFilters, filter]; | ||
| if (nextTabFilters.length === 0) return; // Ensure at least one filter is applied | ||
| const otherFilters = (selectedFilters ?? defaultActivityFilters).filter((f) => !activeTabFilters.includes(f)); |
There was a problem hiding this comment.
React Doctor · react-doctor/js-set-map-lookups (warning)
This scales poorly because array.includes() inside a loop scans the whole list every time. Use a Set for constant-time lookups.
Fix → Use a Set or Map when you check for the same items over and over. Array.includes/find scans the whole list each time
| * Work item properties shared by the detail page sidebar and the peek overview: grouped into | ||
| * collapsible "Details" and "Project structure" sections, followed by created/updated metadata. | ||
| */ | ||
| export const IssueDetailSidebarSections = observer(function IssueDetailSidebarSections(props: Props) { |
There was a problem hiding this comment.
React Doctor · react-doctor/no-high-complexity-react-function (warning)
IssueDetailSidebarSections has cyclomatic complexity 17, cognitive complexity 14, and maximum nesting depth 1, so its React logic is hard to understand and change. Extract independent branches into components or hooks.
Fix → Extract independent render branches and state logic into focused components or hooks until the control flow is easy to follow.
| @@ -19,6 +19,7 @@ import { attachInstruction } from "@atlaskit/pragmatic-drag-and-drop-hitbox/tree | |||
| import { orderBy } from "lodash-es"; | |||
| import { useParams } from "next/navigation"; | |||
| import { createRoot } from "react-dom/client"; | |||
| import { flushSync } from "react-dom"; | |||
There was a problem hiding this comment.
React Doctor · react-doctor/no-flush-sync (warning)
flushSync forces an immediate update, which skips View Transitions and concurrent rendering.
Fix → flushSync forces an immediate update that skips View Transitions and concurrent rendering. Use startTransition for updates that are not urgent.
| @@ -17,6 +17,7 @@ import { setCustomNativeDragPreview } from "@atlaskit/pragmatic-drag-and-drop/el | |||
| import { attachInstruction } from "@atlaskit/pragmatic-drag-and-drop-hitbox/tree-item"; | |||
| import { observer } from "mobx-react"; | |||
| import { createRoot } from "react-dom/client"; | |||
| import { flushSync } from "react-dom"; | |||
There was a problem hiding this comment.
React Doctor · react-doctor/no-flush-sync (warning)
flushSync forces an immediate update, which skips View Transitions and concurrent rendering.
Fix → flushSync forces an immediate update that skips View Transitions and concurrent rendering. Use startTransition for updates that are not urgent.
| @@ -13,10 +13,12 @@ import { attachInstruction, extractInstruction } from "@atlaskit/pragmatic-drag- | |||
| import { observer } from "mobx-react"; | |||
| import { useParams, useRouter } from "next/navigation"; | |||
| import { createRoot } from "react-dom/client"; | |||
| import { flushSync } from "react-dom"; | |||
There was a problem hiding this comment.
React Doctor · react-doctor/no-flush-sync (warning)
flushSync forces an immediate update, which skips View Transitions and concurrent rendering.
Fix → flushSync forces an immediate update that skips View Transitions and concurrent rendering. Use startTransition for updates that are not urgent.
| (node: HTMLElement | null) => { | ||
| if (triggerNode.current && triggerNode.current !== node) observerRef.current?.unobserve(triggerNode.current); | ||
| triggerNode.current = node; | ||
| if (node) getObserver()?.observe(node); |
There was a problem hiding this comment.
React Doctor · react-doctor/effect-needs-cleanup (error)
observe creates a subscription in a function that outlives the render, with no cleanup path. Store the handle and release it, or move this into a useEffect that returns cleanup, so it does not leak after unmount.
Fix → Return a cleanup function that stops the subscription or timer: return () => target.removeEventListener(name, handler) for listeners, return () => clearInterval(id) or clearTimeout(id) for timers, return () => observer.disconnect() for observers, return () => socket.close() for connections, or return unsubscribe if the subscribe call already gave you one.
| @@ -26,7 +32,17 @@ type Props = { | |||
| }; | |||
|
|
|||
| function ImageFullScreenModalWithoutPortal(props: Props) { | |||
There was a problem hiding this comment.
React Doctor · react-doctor/no-giant-component (warning)
Component "ImageFullScreenModalWithoutPortal" is over 300 lines long, which is hard to read & change. Split it into a few smaller components.
Fix → Pull each section into its own component so the parent is easier to read, test, and change.
Converge pages, the web editor wrappers and stickies with upstream makeplane/plane v1.5.0 (efa46d2, bc65a78; makeplane#10038, makeplane#10178): the pages list, its header, filters, search and order menus, the page editor header, toolbar and navigation pane (outline, info, assets, version history), the create, delete and export dialogs, the lite, rich and sticky editor wrappers and toolbars, the user mention card, the stickies page, modal and widget, and the page, page list and stickies routes. Every file upstream changed went through a three-way merge (base v1.4.3): 77 taken, 10 merged (2 with conflicts), 1 added (the version history panel's new home), 3 removed (the editor title, the content limit banner and the old version history panel, none changed by Hangar). The page and sticky hooks and the page store take upstream's toast and emoji picker types. The pages and project view list filter panels now use upstream's FiltersDropdown with its created date and created by menu rows, so the 4c shim on the view list header and mobile header goes. Cycles, modules and intake keep FiltersDropdownLegacy until their phase. Kept from Hangar: - The PDF export stays on the live server (export-page-modal takes upstream's Propel dialog and selects; the fetch to /pdf-export/ with the same formats, page sizes and "No images" option is Hangar's). No @react-pdf, no components/editor/pdf. - The editor wrappers keep Hangar's nullable editor refs, and no file adds innerHTML or dangerouslySetInnerHTML; the page icon picker is @plane/blocks' picker, which reads the same-origin emoji data set at start-up. - Mentions: only the card's avatar and popover change; ids and the profile link are unchanged. Fixed while here: the lite toolbar's attach button looked up "attach", which is "common.attach"; the commit hook's warnings in the touched files (shadowed ids, hoisted helpers, promise chains as try/await, stable loader keys, the sticky's colour picked once instead of every render so its debounced save is not rebuilt each render). Nine i18n keys come from upstream in all locales (the formatting toolbar label, the content limit banner, and the version history panel's strings).
Converge the web shell with upstream makeplane/plane v1.5.0 (b2ccc73, makeplane#9802; efa46d2, makeplane#10038; bc65a78, makeplane#10178; ab294cd, makeplane#10258; 85c65cb, makeplane#9824) by a three-way merge per file, base v1.4.3, for the root, layout, sidebar, top navigation and app rail: 61 files, 32 taken as upstream's because Hangar had not changed them, 27 merged, one added. The diff of these paths against v1.5.0 falls from 4619 lines in 66 files to 634 in 25. Upstream's root/layout split is taken. root.tsx renders the document and an Outlet, and every route nests under the pathless app/layout.tsx, which holds AppProvider, the shell and the MaintenanceBar above main. The trailing-slash middleware stays on the root route; provider.tsx and entry.client.tsx keep Hangar's versions (both toasts, i18n awaited after the Trusted Types policies and emoji data URLs). Kept over upstream: the Hangar mark and logo, the Hangar help entries behind showExternalLinks (no contact sales, forum or what's new), the star link to the Hangar repository behind showExternalLinks, no upgrade badges, the capacity entries and the duplicate-project action, and the responsive workspace identity in the top navigation on Propel's Tooltip and WorkspaceAvatar. Web depends on @base-ui/react directly; the web sink inventory records Base UI's PrehydrationScript, a stub in the browser build. Seven i18n keys the shell uses come with upstream's translations. power-k, dropdowns and components/{common,core} follow in phase 1b; the other screens keep @plane/ui and the 1.4 toast. The visual suite gains stories for the workspace switcher and the command palette. The lint warnings the commit hook flags in five merged files are fixed: the tab preferences memo, two drag-and-drop shadowings in the favourites, the command search's hook dependencies and its field wrapper's role, and two deliberate single-dependency effects in the resizable sidebar are annotated.
Description
Brings the Community Edition UI in line with the current design system across web, Space and Admin. Screens are rebuilt on published
@makeplane/propelprimitives and@plane/blockscomposites, and use the shared type, colour and spacing tokens.Design system and shared pieces
lucide-reactremoved in favour of Propel icons.@plane/blockscomposites: work item property chips and a single-line properties row with a "+N" overflow menu, entity detail sections, activity, comment box, progress bars, type-to-confirm dialog, votes and voters modal, empty-state illustrations.cnkeeps Propel border and outline widths (border-smetc.) that tailwind-merge used to drop. This is why many property chips rendered without borders before.Web
Space and Admin
i18n
Behaviour changes worth noting (intentional)
Also merges the latest
preview, including the Tiptap/Hocuspocus v3 upgrade. The editor bubble menu keeps the Propel toolbar on top of the v3 menu setup.Type of Change
Screenshots and Media (if applicable)
To be added.
Test Scenarios
tsc --noEmitpasses for web, Space, Admin, and the@plane/blocksand@plane/editorpackages.@plane/blocksvitest: 378 tests pass.@plane/editorvitest: 12 tests pass.🤖 Generated with Claude Code