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

ui: Add create new team button (PROJQUAY-5685) #2309

Merged
merged 2 commits into from Oct 20, 2023

Conversation

harishsurf
Copy link
Contributor

Adds create new team button under teams and membership tab:

Screenshot 2023-10-04 at 2 17 06 PM

@codecov
Copy link

codecov bot commented Oct 4, 2023

Codecov Report

All modified lines are covered by tests ✅

see 2 files with indirect coverage changes

📢 Thoughts on this report? Let us know!.

@harishsurf harishsurf force-pushed the projquay-5685 branch 3 times, most recently from b67c4b3 to 0511c61 Compare October 9, 2023 17:05
Copy link
Contributor

@bcaton85 bcaton85 left a comment

Choose a reason for hiding this comment

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

Tested locally, works good. The only thing is when creating the team I see the new row but the values in the row are 0 repositories and 0 members until i refresh the page. Is it possible to fix this and the other comments within this PR?

</Conditional>
<Conditional if={props.isTeamWizardOpen}>
{props.createTeamWizard}
</Conditional>
Copy link
Contributor

Choose a reason for hiding this comment

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

Couldn't these modals be rendered in the parent component? That way you don't need the state props for whether they're open, you only pass the handleModalToggle. You can then also remove the conditional renders from all the *ViewList.tsx components.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved it to parent component. Code looks much cleaner now with lesser props being passed down. Thanks!

Signed-off-by: harishsurf <hgovinda@redhat.com>
Copy link
Contributor

@bcaton85 bcaton85 left a comment

Choose a reason for hiding this comment

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

LGTM

@harishsurf harishsurf merged commit 5d5e7c1 into quay:master Oct 20, 2023
15 checks passed
@harishsurf harishsurf deleted the projquay-5685 branch November 9, 2023 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants