-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
feat: User Panel > Tab PENDING #30296
Conversation
Implemented the necessary resources to filter the list of users and to return only those who are active, when the active tab is enabled.
Implemented a new filter on the users' page that retrieves the roles list and creates a dropdown menu. When any of its options is selected, it will filter the users' list to display only those with the selected roles. Additionally, I made some minor adjustments to the MultiSelectCustom component and introduced some new hooks.
|
Codecov Report
@@ Coverage Diff @@
## feat/user-panel #30296 +/- ##
===================================================
- Coverage 51.04% 50.45% -0.59%
===================================================
Files 805 776 -29
Lines 15031 14499 -532
Branches 2736 2630 -106
===================================================
- Hits 7673 7316 -357
+ Misses 6930 6782 -148
+ Partials 428 401 -27
Flags with carried forward coverage won't be shown. Click here to find out more. |
Completed the implementation of the users table actions menu by preventing the propagation of the click event that triggered the opening of the contextual bar when the menu was clicked. Also, ensured that the contextual bar only opens when the "Enter" or "Space" keys are used for keyboard navigation and enhanced the options menu in the contextual bar as specified in Figma.
Removed the status from the users page contextual bar (the need to remove this may not be concrete, for now it will be only commented until the final decision is made). Also changed the order of the contextual bar info and changed some minor styles to follow figma specs.
apps/meteor/client/views/admin/users/hooks/useFilterActiveUsers.ts
Outdated
Show resolved
Hide resolved
<Tabs.Item selected={tab === 'new'} onClick={() => setTab('new')}> | ||
{t('New_users')} | ||
<Tabs.Item selected={tab === 'pending'} onClick={() => setTab('pending')}> | ||
{pendingActionsCount === 0 ? t('Pending') : `${t('Pending')} (${pendingActionsCount})`} |
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.
pendingActionsCount is defined and used but since the set is never ran the number will never change. Why is it incomplete?
Implemented the onClick function of the users table pending tab 'Activate' button and fixed some small UI problems.
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments