-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
Admin: Use InteractiveTable for user and team tables #74821
Conversation
Should be fixed by #74888 |
I have added back the separate pagination component, seeing as the table will need to be modified to support backend pagination and sorting (will be done in a separate PR). |
# Conflicts: # public/app/features/admin/UserListAdminPage.tsx
export const Avatar = ({ src, alt }: AvatarProps) => { | ||
const styles = useStyles2(getStyles); | ||
|
||
if (!src) { |
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.
Is this for the case where an image hasn't been loaded yet?
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.
It's a carry over from the previous implementation where the image src type is optional, I guess it can be missing in some cases.
* Admin: Use InteractiveTable * Admin: Fix pagination * Admin: Use CellWrapper * Admin: Split components * Admin: Separate OrgUsersTable * Admin: Remove UsersTable * Admin: Use the new table for TeamList * Admin: Cleanup TeamList page * Admin: Add edit team action * Admin: Use explicit edit action instead of a link wrapper * Admin: Fix responsive styles * Cleanup * Remove redundant sort * Add item key * Fix icon styles * Set loading by default * Use separate pagination component * Use default sorting functionality * Fix merge conflicts * Update betterer * Move pagination inside OrgUsersTable.tsx * Disable sort if results have more than 1 page * Update betterer results * Use CSS objects * More style fixes * Update betterer
* Admin: Use InteractiveTable * Admin: Fix pagination * Admin: Use CellWrapper * Admin: Split components * Admin: Separate OrgUsersTable * Admin: Remove UsersTable * Admin: Use the new table for TeamList * Admin: Cleanup TeamList page * Admin: Add edit team action * Admin: Use explicit edit action instead of a link wrapper * Admin: Fix responsive styles * Cleanup * Remove redundant sort * Add item key * Fix icon styles * Set loading by default * Use separate pagination component * Use default sorting functionality * Fix merge conflicts * Update betterer * Move pagination inside OrgUsersTable.tsx * Disable sort if results have more than 1 page * Update betterer results * Use CSS objects * More style fixes * Update betterer
* Admin: Use InteractiveTable * Admin: Fix pagination * Admin: Use CellWrapper * Admin: Split components * Admin: Separate OrgUsersTable * Admin: Remove UsersTable * Admin: Use the new table for TeamList * Admin: Cleanup TeamList page * Admin: Add edit team action * Admin: Use explicit edit action instead of a link wrapper * Admin: Fix responsive styles * Cleanup * Remove redundant sort * Add item key * Fix icon styles * Set loading by default * Use separate pagination component * Use default sorting functionality * Fix merge conflicts * Update betterer * Move pagination inside OrgUsersTable.tsx * Disable sort if results have more than 1 page * Update betterer results * Use CSS objects * More style fixes * Update betterer
What is this feature?
Use the new
InteractiveTable
component for user and team tables in admin.The new component has been introduced for the following pages:
Why do we need this feature?
To make the UI more consistent and enable sorting for these tables.
Which issue(s) does this PR fix?:
Fixes #74658
Special notes for your reviewer:
Not a part of this PR and will need a follow-up work:
Please check that: