Commit Graph

66 Commits

Author SHA1 Message Date
Jacobo Dominguez
8c4eeb2c09 feat: extending delay time for error toasts with retry fn (#67) 2026-02-18 15:37:28 -06:00
edX requirements bot
98e6d808dc chore: update browserslist DB (#68)
Co-authored-by: sarina <1985317+sarina@users.noreply.github.com>
2026-02-15 19:23:11 -05:00
edX requirements bot
59c1c85939 chore: update browserslist DB (#65)
Co-authored-by: sarina <1985317+sarina@users.noreply.github.com>
2026-02-09 00:21:56 +00:00
edX requirements bot
a63df787f7 chore: update browserslist DB (#63)
Co-authored-by: sarina <1985317+sarina@users.noreply.github.com>
2026-02-05 18:56:19 +11:00
edX requirements bot
66e40eccee chore: update browserslist DB (#55)
Co-authored-by: sarina <1985317+sarina@users.noreply.github.com>
2026-01-19 00:17:42 +00:00
edX requirements bot
3213354623 chore: update browserslist DB (#54)
Co-authored-by: sarina <1985317+sarina@users.noreply.github.com>
2026-01-12 00:17:29 +00:00
edX requirements bot
a00e29ec5a chore: update browserslist DB (#53)
Co-authored-by: sarina <1985317+sarina@users.noreply.github.com>
2026-01-05 00:18:04 +00:00
Ty Hob / Brian Mesick
47fdb66ae4 Merge pull request #52 from openedx/update-browserslist-db
Update browserslist DB
2026-01-02 09:32:50 -05:00
Tony Busa
442a27d720 fix: replace FC components with arrow func declaration (#33) 2025-12-31 07:55:10 +11:00
sarina
9f296ec1c6 chore: update browserslist DB 2025-12-29 00:17:46 +00:00
Jacobo Dominguez
c700ce5ca4 fix: changing how the feedback message is displayed for adding team members (#42)
* fix: changing how the feedback message is displayed for adding team members

* fix: updating feedback to consider existing roles a successful messages

* fix: already has role message update

* feat: update not found message
2025-12-29 09:18:05 +11:00
edX requirements bot
8b9a57ace9 chore: update browserslist DB (#51)
Co-authored-by: sarina <1985317+sarina@users.noreply.github.com>
2025-12-08 00:16:25 +00:00
jacobo-dominguez-wgu
19034282fc fix: table cells refactor to get rid of eslint nested components ignore 2025-12-01 10:46:51 -03:00
edX requirements bot
56edd458c3 chore: update browserslist DB (#47)
Co-authored-by: sarina <1985317+sarina@users.noreply.github.com>
2025-11-30 19:18:53 -05:00
edX requirements bot
ea5141830a chore: update browserslist DB (#43)
Co-authored-by: sarina <1985317+sarina@users.noreply.github.com>
2025-11-24 00:16:44 +00:00
Diana Olarte
3df4fef7e1 fix: invalidate PermissionsByRole to update number of user in a role 2025-11-19 12:53:24 -03:00
Jacobo Dominguez
a37491b0a5 refactor: adding namespace to permissions (#37)
Updating namespaces to permissions to use name spaced identifiers by adding the content_libraries prefix.
2025-11-18 15:05:32 -03:00
edX requirements bot
72dc951d36 chore: update browserslist DB (#39)
Co-authored-by: sarina <1985317+sarina@users.noreply.github.com>
2025-11-17 00:15:33 +00:00
jacobo-dominguez-wgu
0572a73fb4 test: replacing queries by test id 2025-11-14 13:43:43 -03:00
edX requirements bot
eb224b9f71 chore: update browserslist DB (#36)
Co-authored-by: sarina <1985317+sarina@users.noreply.github.com>
2025-11-13 19:32:04 +00:00
Jacobo Dominguez
b760584566 fix: base bradcrumb item with no link set (#32) 2025-11-05 14:55:02 -05:00
Sarina Canelake
a0dc22caa4 build: Tag this repo for release 2025-10-30 10:48:56 -03:00
Diana Olarte
a9f8680396 feat(authz): [FC-0099] Manage action feedback using the Toast component. (#26)
Surface errors via toasts while keeping the modal open. This ensures they can retry or correct input without losing context, improving usability and reducing frustration.
2025-10-30 10:45:26 -03:00
Diana Olarte
9fef2704bc feat(authz): [FC-0099] create toggle to make a library public read (#25)
* refactor: modify actions to add splitter

* feat: add API function to update the library metadata

* feat: create a toggle component to make the library public read

* refactor: update behaviour depending on user permissions

* feat: add success toast

* refactor: use stack to display the actions

* style: fix typo

* style: add mx-5 to divider to avoid wide growth

* chore: update paragon to work with useMediaQuery
2025-10-29 16:31:30 -04:00
Brayan Cerón
8dc3139ef9 feat: [FC-0099] allow deleting user's roles (#13)
Allows deleting users' roles from the users' roles view.
2025-10-24 13:03:02 -03:00
Diana Olarte
50beaef35d feat(authz): [FC-0099] permissions tab (#12)
* feat: create permissions tab

* style: add tsdocs to getPermissionMetadata and buildPermissionMatrix

* style: fix padding on rows table

* feat: add skeleton and improve testing

* feat: create ResourceTooltip component and enhance types for permission matrix by role and resource

* style: enhance tooltip styles and permissions displayed order

* test: remove data-testid for PermissionTable

* style: use card for adding background color to the permission table component
2025-10-23 17:01:10 -04:00
Diana Olarte
27a952d976 fix: modify app name in the html file 2025-10-23 17:19:10 -03:00
Diana Olarte
2e1dc75f17 feat(authz): [FC-0099] create an custom error boundery (#11)
Create a custom error boundary for libraries team management workflow.
2025-10-23 13:39:46 -03:00
Brayan Cerón
b332f625d7 feat: [FC-0099] add filters and sorting functionality to the team table (#8)
* feat: add filters and sorting functionality to the team table

* feat: add lodash.debounce for improved fetchData performance in TeamTable

* feat: implement query settings management for team members table with filtering and pagination

* fix: increase staleTime for useTeamMembers hook to 30 minutes

* refactor: simplify TableControlBar layout and restore Clear filters button functionality

* feat: add internationalization support for sorting and search placeholders

* test: fix issues with failing tests

* refactor: update SearchFilter to use string & localize Clear filters button text

* test: add missing comprehensive tests

* refactor: update sorting and group all in a Table

* test: update to use useEvent intead of fireEvent

* refactor: user retrival for paginated query in user detail view

* refactor: separation of i18n messages

* style: remove comment in API

* fix: adress debaunce time

---------

Co-authored-by: Diana Olarte <diana.olarte@edunext.co>
2025-10-23 11:18:11 -04:00
Maria Fernanda Magallanes Zubillaga
431314e44b fix: change collaborator to contributor 2025-10-23 10:31:31 -03:00
Diana Olarte
f6bd291662 fix: style issues and test 2025-10-23 10:30:09 -03:00
Diana Olarte
9ef86c2bfe fix: add null as defaout for userCounter in CardTitle 2025-10-23 10:30:09 -03:00
Diana Olarte
dae7186f96 refactor: add loading state to the roles cards 2025-10-23 10:30:09 -03:00
Diana Olarte
1541eca462 feat: add roles tab 2025-10-23 10:30:09 -03:00
Diana Olarte
315e5c6e32 fix: display role.name coming from the metadata (#10) 2025-10-21 20:24:07 -04:00
Brayan Cerón
2259a453ce feat: [FC-0099] Add a new role to a library member (#9)
* refactor: support components as action & connect API to add roles to users

* fix: the value of LIBRARY_AUTHZ_SCOPE was misspelled

* feat: add role assignment functionality with modal and trigger components

* feat: add success toast message for role assignment and update user management logic

* refactor: update handleAddRole to display all roles

* refactor: group under AssignNewRoleModal

* test: add unit tests for AssignNewRoleModal and AssignNewRoleTrigger components

* fix: remove duplicated exports after rebase

---------

Co-authored-by: Diana Olarte <diana.olarte@edunext.co>
2025-10-21 20:19:48 -04:00
Brayan Cerón
52fbb7ea9d feat: [FC-0099] add button & modal for adding new team members (#3)
* feat: add team roles management and update related hooks and types

* feat: implement add new team member functionality with modal and actions

* test: add some missing tests

* test: add unit tests for AddNewTeamMemberModal and update context mocks

* test: add toast close functionality and loading state handling in AddNewTeamMemberTrigger tests

* fix: update LibrariesAuthZTeamView to include canManageTeam check for AddNewTeamMemberTrigger

* fix: correct API endpoint paths and update authorization scope format

* refactor: improve error handling & address PR feedback

* refactor: group AddNewTeamMemberModal in 1 folder

* fix: reset modal values to close action

* refactor: replace useAddTeamMember with useAssignTeamMembersRole

* feat: add tooltip

* test: fix test after rebase

* refactor: enhance user intruction with placeholder

* style: remove unnecessary inline style

* fix:  remove the error style on change the textarea value

* fix: add useState to display toast

* fix: remove empty strings from the user input

* fix: validate error users to apply style

---------

Co-authored-by: Diana Olarte <diana.olarte@edunext.co>
2025-10-21 18:02:21 -04:00
Diana Olarte
b50731187b feat(authz): [FC-0099] create LibrariesUserManager view to manage roles for a specific user (#6)
* refactor: use Link from react-router in Breadcrumb links

* feat: create RoleCard component

This is a reusable component, that display a card for each role with a collapsible showing the associated permissions. The permissions, are organized by  resource and enable/disable.

* feat: create the user management view

* feat: integrate the LibrariesUserManagement view in the application

* style: add ts doc to buildPermissionsByRoleMatrix  function

* feat: add loading state to the cards roles

* style: nit space

* fix: nit extra comment and validation

* test: update fireEvent with useEvent
2025-10-21 17:08:22 -04:00
Diana Olarte
c5cab497ac fix: add delete permissions and user the libraryId to retrieve the mapping of roles and permissions 2025-10-16 17:07:02 -03:00
Diana Olarte
8fd0b12f57 refactor: fix tsdoc for usePermissionsByRole 2025-10-16 17:07:02 -03:00
Diana Olarte
9e2ab6d647 fix: update the library scope according to the backend requirements 2025-10-16 17:07:02 -03:00
Diana Olarte
78665d97a5 fix: remove extra permissions from libraries metadata 2025-10-16 17:07:02 -03:00
Diana Olarte
11723e2878 fix: update validation request body and getTeamMembers response 2025-10-16 17:07:02 -03:00
Diana Olarte
b0eaa1b035 fix: use role insted of key for roles identifier 2025-10-16 17:07:02 -03:00
Diana Olarte
6316586cc0 feat: update state to return the roles and permissions metadata 2025-10-16 17:07:02 -03:00
Diana Olarte
6d8f6fa1c7 fix: display username intead of name 2025-09-29 12:10:22 -03:00
Diana Olarte
66fb56e198 style: update linter validation and fix lint issues 2025-09-29 12:10:22 -03:00
Diana Olarte
30dd1604d1 refactor: useLibrary directly in the componets to access the metadata 2025-09-29 12:10:22 -03:00
Diana Olarte
36d2ba434d style: single quote imports 2025-09-29 12:10:22 -03:00
Diana Olarte
8ad80a1195 refactor: create Query Keys factories 2025-09-29 12:10:22 -03:00