Skip to content

PM-4700: allow project managers to create projects#1639

Merged
jmgasper merged 2 commits intodevfrom
PM-4700
Apr 6, 2026
Merged

PM-4700: allow project managers to create projects#1639
jmgasper merged 2 commits intodevfrom
PM-4700

Conversation

@jmgasper
Copy link
Copy Markdown
Collaborator

@jmgasper jmgasper commented Apr 3, 2026

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.
Validation run: yarn test:no-watch --runInBand --runTestsByPath src/apps/work/src/lib/utils/permissions.utils.spec.ts src/apps/work/src/pages/projects/ProjectsListPage/ProjectsListPage.spec.tsx, yarn lint, and yarn run build.
Full yarn test:no-watch --runInBand still reports pre-existing failures in src/apps/wallet-admin/src/home/tabs/payments/PaymentsListView.spec.tsx, and those same failures reproduce on a clean dev worktree.


Open with Devin

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.
@jmgasper jmgasper marked this pull request as ready for review April 6, 2026 01:06
@jmgasper jmgasper requested a review from kkartunov as a code owner April 6, 2026 01:06
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 3 additional findings.

Open in Devin Review

# Conflicts:
#	src/apps/work/src/lib/utils/permissions.utils.spec.ts
#	src/apps/work/src/lib/utils/permissions.utils.ts
@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