Skip to content

refactor: migrate project management pickers from legacy UI to PCUI#1928

Merged
willeastcott merged 3 commits intomainfrom
refactor/migrate-project-management-to-pcui
Mar 10, 2026
Merged

refactor: migrate project management pickers from legacy UI to PCUI#1928
willeastcott merged 3 commits intomainfrom
refactor/migrate-project-management-to-pcui

Conversation

@willeastcott
Copy link
Contributor

@willeastcott willeastcott commented Mar 10, 2026

Partially addresses #1376

Summary

  • Replace LegacyOverlay with PCUI Overlay across all project management picker modals (visibility confirmation, delete self confirmation, new organization, new project confirmation, new project, delete project confirmation, delete organization, CMS)
  • Replace LegacyMenu with PCUI Menu for the organization dropdown in picker-cms.ts
  • Update SCSS selectors from legacy class names (.ui-overlay, > .content, .ui-menu) to PCUI equivalents (.pcui-overlay, > .pcui-overlay-content, .pcui-menu)
  • Fix delete organization menu item hover styling to target .pcui-menu-item-content instead of the root element
  • Add override to prevent empty .pcui-menu-item-children container from showing on hover for leaf menu items
  • Remove invalid renderChanges property from Button constructor in delete organization modal

Test plan

  • Open the project management CMS picker and verify it displays correctly
  • Click organization dropdown and verify menu items display without visual artifacts
  • Hover "Delete Organization" and verify red hover background appears
  • Test new project, delete project, delete organization, visibility change, and leave project confirmation modals all open/close correctly
  • Verify overlay backdrop blocks interaction when modals are open

Replace LegacyOverlay and LegacyMenu usage in project management
pickers with PCUI Overlay and Menu components.

Made-with: Cursor
@vercel
Copy link

vercel bot commented Mar 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
editor Ready Ready Preview, Comment Mar 10, 2026 8:00pm

Request Review

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the project management picker modals to consistently use PCUI components instead of the legacy UI layer, aligning these pickers with the rest of the editor’s modern PCUI-based UI.

Changes:

  • Migrate multiple project-management modals from LegacyOverlay to PCUI Overlay.
  • Replace the CMS organization dropdown from LegacyMenu to PCUI Menu, updating open/close behavior to PCUI’s hidden + hide event pattern.
  • Update SCSS selectors to target PCUI class names and adjust menu hover styling to match PCUI DOM structure.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/editor/pickers/project-management/picker-modal-visibility-confirmation.ts Switch visibility confirmation modal from LegacyOverlay to PCUI Overlay.
src/editor/pickers/project-management/picker-modal-new-project.ts Switch new project modal overlay to PCUI Overlay.
src/editor/pickers/project-management/picker-modal-new-project-confirmation.ts Switch new project confirmation modal overlay to PCUI Overlay.
src/editor/pickers/project-management/picker-modal-new-organization.ts Switch new organization modal overlay to PCUI Overlay.
src/editor/pickers/project-management/picker-modal-delete-self-confirmation.ts Switch delete-self confirmation modal overlay to PCUI Overlay.
src/editor/pickers/project-management/picker-modal-delete-project-confirmation.ts Switch delete-project confirmation modal overlay to PCUI Overlay.
src/editor/pickers/project-management/picker-modal-delete-organization.ts Switch delete-organization modal overlay to PCUI Overlay; remove invalid renderChanges from delete button config.
src/editor/pickers/project-management/picker-cms.ts Replace legacy org dropdown menu/overlay with PCUI Menu/Overlay and update visibility handling.
sass/editor/_editor-main.scss Update selectors from legacy .ui-* to PCUI .pcui-* and refine menu item hover styling.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

PCUI Overlay centers content via flexbox, so the manual
position/left/top/transform centering hacks are no longer needed.

Made-with: Cursor
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@willeastcott willeastcott merged commit e9711c0 into main Mar 10, 2026
13 checks passed
@willeastcott willeastcott deleted the refactor/migrate-project-management-to-pcui branch March 10, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants