Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(projects): deduplicate code via UniversalProjectsRoute #5251

Merged
merged 3 commits into from
Nov 12, 2024

Conversation

magicznyleszek
Copy link
Member

@magicznyleszek magicznyleszek commented Nov 11, 2024

📣 Summary

Use single universal component for My Projects (#/projects/home) and Custom Project Views (#/projects/<uid>) routes.

💭 Notes

Move transfer project ownership code from myProjectsRoute to separate component - logic gathered in ProjectOwnershipTransferModalWithBanner component and banner in ProjectTransferInviteBanner component.

Create UniversalProjectsRoute component that gathers similar logic from both MyProjectsRoute and CustomViewRoute. To not increase complexity of the code deduplication is done under assumption that all routes wants (almost) all the same functionalities.

This change is done for upcoming organizations feature.

create UniversalProjectsRoute and use it for all routes
move transfer modal and banner code outside MyProjectsRoute
@magicznyleszek magicznyleszek merged commit 2f1d45e into main Nov 12, 2024
7 checks passed
@magicznyleszek magicznyleszek deleted the leszek/refactor-projects-routes branch November 12, 2024 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants