Skip to content

[codex] PM-4700: refresh project manager create-project fix#1660

Merged
jmgasper merged 2 commits intodevfrom
codex/pm-4700-refresh
Apr 6, 2026
Merged

[codex] PM-4700: refresh project manager create-project fix#1660
jmgasper merged 2 commits intodevfrom
codex/pm-4700-refresh

Conversation

@jmgasper
Copy link
Copy Markdown
Collaborator

@jmgasper jmgasper commented Apr 6, 2026

What changed

Merged the latest dev branch into this fix branch and kept the PM-4700 project-creation permission behavior intact.

Project Managers can still create a new project from /projects and open /projects/new, while editing an existing project remains limited to manager/copilot project members.

Why

The original PM-4700 change was correct, but the branch had fallen well behind dev and its conflict area was the shared project permission helper. This refresh keeps the intended behavior on top of current dev.

Root cause

checkCanManageProject(...) only allowed copilots and Talent Managers to create projects when no project context was present, which hid the New Project action and redirected Project Managers away from the create route.

Impact

Users with the Project Manager role can see the New Project button on /projects and can access the create-project flow again.

Validation

  • yarn test:no-watch --runTestsByPath src/apps/work/src/lib/utils/permissions.utils.spec.ts src/apps/work/src/pages/projects/ProjectsListPage/ProjectsListPage.spec.tsx
  • yarn lint
  • yarn run build (build succeeds; existing repo warnings from merged dev remain)

Notes

This draft PR is opened from codex/pm-4700-refresh because PM-4700 already has an open PR to dev (#1639).


Open with Devin

jmgasper added 2 commits April 4, 2026 01:53
What was broken
Project Manager users could open the Projects page, but the New Project action was hidden and the create route redirected them back to the list.

Root cause (if identifiable)
The shared work-app project permission helper only treated copilots and talent managers as eligible to create projects when no project context was present.

What was changed
Updated the project management permission helper so Project Manager roles can create new projects while keeping existing project edit access membership-based.
Added a Projects list regression test to verify the New Project action renders for Project Manager users.

Any added/updated tests
Updated permissions.utils.spec.ts to cover Project Manager create access and preserve membership requirements for editing.
Added ProjectsListPage.spec.tsx to cover the Projects page header action.
# Conflicts:
#	src/apps/work/src/lib/utils/permissions.utils.spec.ts
#	src/apps/work/src/lib/utils/permissions.utils.ts
@jmgasper jmgasper marked this pull request as ready for review April 6, 2026 01:41
@jmgasper jmgasper requested a review from kkartunov as a code owner April 6, 2026 01:41
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@jmgasper jmgasper merged commit 20cb2b8 into dev Apr 6, 2026
13 checks passed
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.

1 participant