-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Optimize team member ux #34593
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
base: main
Are you sure you want to change the base?
Optimize team member ux #34593
Conversation
ctx.Data["Page"] = pager | ||
ctx.Data["Teams"] = teams |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH if you have "all teams" here, then the "pager" doesn't make sense any more.
<a class="ui primary button" href="{{.OrgLink}}/teams/new">{{svg "octicon-plus"}} {{ctx.Locale.Tr "org.create_new_team"}}</a> | ||
{{end}} | ||
{{if .IsOrganizationMember}} | ||
<a class="ui primary button" href="{{.OrgLink}}/teams">{{svg "octicon-people"}} {{ctx.Locale.Tr "org.all_teams"}}</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't the "all teams" link already in the navbar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My original intention was to provide a more eye-catching entry on the secondary page.
{{if or .IsOrganizationOwner .IsOrganizationMember}} | ||
<div class="flex-text-block tw-justify-end tw-gap-x-1 tw-gap-y-2 tw-mb-4"> | ||
{{if .IsOrganizationOwner}} | ||
<a class="ui primary button" href="{{.OrgLink}}/teams/new">{{svg "octicon-plus"}} {{ctx.Locale.Tr "org.create_new_team"}}</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why members list page should show "add new team"? I guess it should show "add new member" instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just like above, there is no mistake. It is indeed about adding a new team. My original intention is to provide a more eye-catching and convenient operation entry on the secondary page.
Before making more changes, I think there could be a better design, instead of adding the modal. The root problem is that "it is not clear about how to add a team member". To make it clear, we can just:
|
OK, I'll implement a version according to this train of thought and see the effect. |
Try to solve #22054