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

Laushinka/team admin 8060 #8402

Merged
merged 2 commits into from
Feb 25, 2022
Merged

Laushinka/team admin 8060 #8402

merged 2 commits into from
Feb 25, 2022

Conversation

laushinka
Copy link
Contributor

@laushinka laushinka commented Feb 23, 2022

Description

Allows managing teams as admin.

SEARCH RESULT TEAM DETAIL DELETED TEAM
Screenshot 2022-02-24 at 16 25 38 Screenshot 2022-02-24 at 12 28 13 Screenshot 2022-02-24 at 13 34 29

Related Issue(s)

Fixes #8060

How to test

https://laushinka-team-admin-8060.staging.gitpod-dev.com/

  1. Create a team with member(s)
  2. Visit /admin/teams and search for teams

Release Notes

Admins can find teams, see team details, and change a team member's role.

Documentation

@laushinka
Copy link
Contributor Author

@jldec @gtsiolis This is still a draft, but feel free to play around so we can detect issues.

@codecov
Copy link

codecov bot commented Feb 23, 2022

Codecov Report

Merging #8402 (42946c5) into main (6afc7f2) will increase coverage by 2.75%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            main    #8402      +/-   ##
=========================================
+ Coverage   8.41%   11.17%   +2.75%     
=========================================
  Files         33       18      -15     
  Lines       2340      993    -1347     
=========================================
- Hits         197      111      -86     
+ Misses      2138      880    -1258     
+ Partials       5        2       -3     
Flag Coverage Δ
components-gitpod-cli-app 11.17% <ø> (ø)
components-local-app-app-darwin-amd64 ?
components-local-app-app-darwin-arm64 ?
components-local-app-app-linux-amd64 ?
components-local-app-app-linux-arm64 ?
components-local-app-app-windows-386 ?
install-installer-raw-app ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
.../installer/pkg/components/ws-manager/deployment.go
...l/installer/pkg/components/ws-manager/configmap.go
components/local-app/pkg/auth/pkce.go
install/installer/pkg/common/display.go
...installer/pkg/components/ws-manager/rolebinding.go
...components/ws-manager/unpriviledged-rolebinding.go
components/local-app/pkg/auth/auth.go
...nstall/installer/pkg/components/ws-manager/role.go
...l/installer/pkg/components/ws-manager/tlssecret.go
install/installer/pkg/common/storage.go
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6afc7f2...42946c5. Read the comment docs.

@laushinka
Copy link
Contributor Author

@jldec @gtsiolis

  1. I will be removing the Owner/Member dropdown, since we won't be allowing role changes right now.
  2. I see there is a design view for the deleted team detail[1]. However when a team is deleted, we also don't see any members because they will have been deleted as well.

@gtsiolis
Copy link
Contributor

gtsiolis commented Feb 23, 2022

Looking at this now, round two! 🥊

Copy link
Contributor

@gtsiolis gtsiolis left a comment

Choose a reason for hiding this comment

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

Thanks for opening this PR, @laushinka! 🌟

UX looks good. Left some comments below that are complementary to what @jldec added in #8060 (comment).

components/dashboard/src/App.tsx Show resolved Hide resolved
components/dashboard/src/admin/TeamDetail.tsx Outdated Show resolved Hide resolved
components/dashboard/src/admin/TeamDetail.tsx Outdated Show resolved Hide resolved
components/dashboard/src/admin/TeamDetail.tsx Outdated Show resolved Hide resolved
@laushinka
Copy link
Contributor Author

laushinka commented Feb 23, 2022

Looking at this now! 👀

@gtsiolis Jürgen updated the tasks list[1] based on the WIP and your suggestions 🙏🏽

@roboquat roboquat added size/XL and removed size/L labels Feb 23, 2022
@laushinka laushinka force-pushed the laushinka/team-admin-8060 branch 2 times, most recently from add18ba to 348b35d Compare February 23, 2022 20:49
@laushinka laushinka force-pushed the laushinka/team-admin-8060 branch from b9d445a to 6494c5c Compare February 23, 2022 21:09
@laushinka laushinka marked this pull request as ready for review February 23, 2022 21:09
@laushinka laushinka requested a review from a team February 23, 2022 21:09
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Feb 23, 2022
@laushinka
Copy link
Contributor Author

laushinka commented Feb 23, 2022

@jldec @gtsiolis Ready for review (not a draft anymore).
Also now that we have a slug under the team name in the team detail, would be nice to get input about the layout 🙏🏽

@laushinka laushinka requested review from gtsiolis and jldec February 23, 2022 21:23
@gtsiolis
Copy link
Contributor

gtsiolis commented Feb 24, 2022

Looking at this now! 👀

Copy link
Contributor

@gtsiolis gtsiolis left a comment

Choose a reason for hiding this comment

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

Thanks for updating this and addressing all comments, @laushinka!

Left some second review round comments below. 🥊

components/dashboard/src/admin/TeamsSearch.tsx Outdated Show resolved Hide resolved
components/dashboard/src/admin/TeamDetail.tsx Outdated Show resolved Hide resolved
components/dashboard/src/admin/TeamDetail.tsx Outdated Show resolved Hide resolved
components/dashboard/src/admin/TeamDetail.tsx Show resolved Hide resolved
components/dashboard/src/admin/TeamDetail.tsx Show resolved Hide resolved
components/dashboard/src/admin/TeamDetail.tsx Outdated Show resolved Hide resolved
@laushinka laushinka force-pushed the laushinka/team-admin-8060 branch from 6494c5c to 5c3e131 Compare February 24, 2022 11:52
@laushinka
Copy link
Contributor Author

laushinka commented Feb 24, 2022

Love this 🤣
Screenshot 2022-02-24 at 16 21 04

Copy link
Contributor

@gtsiolis gtsiolis left a comment

Choose a reason for hiding this comment

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

Thanks, @laushinka! Round three! 🥊

components/dashboard/src/admin/TeamsSearch.tsx Outdated Show resolved Hide resolved
components/dashboard/src/admin/TeamsSearch.tsx Outdated Show resolved Hide resolved
components/dashboard/src/admin/TeamDetail.tsx Show resolved Hide resolved
</ItemField>
<ItemField className="flex items-center my-auto">
<span className="text-gray-400 capitalize">
<DropDown contextMenuWidth="w-32" activeEntry={m.role} entries={[{
Copy link
Contributor

Choose a reason for hiding this comment

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

question: Did we decide to bring the role change action back?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, here as a nice to have for support issues[1]

components/dashboard/src/admin/TeamsSearch.tsx Outdated Show resolved Hide resolved
@laushinka laushinka force-pushed the laushinka/team-admin-8060 branch from 67c888c to 0cbb931 Compare February 24, 2022 17:06
@laushinka laushinka requested a review from gtsiolis February 25, 2022 07:30
@gtsiolis
Copy link
Contributor

gtsiolis commented Feb 25, 2022

Running build again as the last one failed[1].

/werft run

👍 started the job as gitpod-build-laushinka-team-admin-8060.24

gtsiolis
gtsiolis previously approved these changes Feb 25, 2022
Copy link
Contributor

@gtsiolis gtsiolis left a comment

Choose a reason for hiding this comment

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

UX changes look great, @laushinka!

Last round! 🥊

One outstanding question is whether we'd like to include the linking back to the team from the project detail page in this PR or open a follow up issue for this. Your call. 🏓

Project in personal account Project in team
project-user project-team

@laushinka
Copy link
Contributor Author

laushinka commented Feb 25, 2022

One outstanding question is whether we'd like to include the linking back to the team from the project detail page in this PR or open a follow up issue for this. Your call. 🏓

@gtsiolis Thank you for remembering this! Will do it, since I'm still waiting for code reviews anyway 👏🏼
Update: Done! Btw I notice that some of your deleted projects in the preview env link to a broken team link, which I'm not sure why. Were they moved? We can tackle this in a follow-up issue 🙏🏽

(Also, not sure what the "dismissed stale review is below" 😅)

Copy link
Contributor

@jldec jldec left a comment

Choose a reason for hiding this comment

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

Very nice work - thank you @laushinka

@roboquat roboquat merged commit 84128c3 into main Feb 25, 2022
@roboquat roboquat deleted the laushinka/team-admin-8060 branch February 25, 2022 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note size/XL team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Admin] Search for team by name or slug and show team details
5 participants