Skip to content
This repository was archived by the owner on Jul 12, 2023. It is now read-only.

Conversation

whaught
Copy link
Contributor

@whaught whaught commented Nov 5, 2020

Issue #975

Proposed Changes

  • Show pills for system/realm admins in the admin console
  • Now shows all users for the Users page
    • Later I'll fold in the System admin stuff and remove that tab

pills

@google-cla google-cla bot added the cla: yes Auto: added by CLA bot when all committers have signed a CLA. label Nov 5, 2020
{{.Name}}
{{if .Admin}}
<span class="ml-1 badge badge-pill badge-primary">System admin</span>
{{else if .IsRealmAdmin}}
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is if/else, a single user could be both

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Idk if that's useful. A System Admin is likely both (and can join any realm as admin), so it seems a little redundant to show both.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's useful to show which realms a person is admin and member of

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We will, but in this list it would be hard to show all the realm names etc.
This will become a link to a detail page (that looks more similar to the My Account page with a list of realms)

Copy link
Contributor

Choose a reason for hiding this comment

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

my vote is the same as seth - show both pills in that case

Copy link
Contributor Author

Choose a reason for hiding this comment

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

well that's 2-1 then. Both pills shown.

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mikehelmick, whaught

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [mikehelmick,whaught]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-robot google-oss-robot merged commit 48ab34b into google:main Nov 6, 2020
@whaught whaught deleted the admin-pills branch November 6, 2020 02:26
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Auto: added by CLA bot when all committers have signed a CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants