Commit Graph

49 Commits

Author SHA1 Message Date
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
Diana Olarte
727bf74049 style: fix linter issues and data location 2025-09-29 12:10:22 -03:00
Diana Olarte
651ded21a7 fix: convert data to camel case in the api return for getTeamMembers 2025-09-29 12:10:22 -03:00
Diana Olarte
a25bd1bb00 style: fix color for background tabs 2025-09-29 12:10:22 -03:00
Diana Olarte
c73ff150bc refactor: use a better name for the team management view 2025-09-29 12:10:22 -03:00
Diana Olarte
aefa9b0feb test: improve coverage 2025-09-29 12:10:22 -03:00
Diana Olarte
9a8d0d21d7 feat: add the libraries authz management view 2025-09-29 12:10:22 -03:00
Diana Olarte
21a3b9278b feat: create the table team management table 2025-09-29 12:10:22 -03:00
Diana Olarte
26e28aeb96 feat: create the libraries context 2025-09-29 12:10:22 -03:00
Diana Olarte
b825a8bdd9 feat: create layaut module components 2025-09-29 12:10:22 -03:00
Diana Olarte
80d04ed000 feat: create app utilities for the API url resolution and permission validation 2025-09-29 12:10:22 -03:00
Diana Olarte
f0298dc9eb feat: create a loading page and the AuthZModule 2025-09-29 12:10:22 -03:00
Diana Olarte
34519a3d08 test: add testing-library user event , utils and update path resolver 2025-09-29 12:10:22 -03:00
Diana Olarte
f742571fd1 fix: add QueryClientProvider to the app 2025-09-24 08:23:06 -03:00
Diana Olarte
0f2e9f3a6a refactor: fix typos and remove footer based on the design 2025-09-24 08:23:06 -03:00
Diana Olarte
885b408e71 refactor: update the app template for the console
- Update the basic libraries needed for the application
- Update README and configuration files
- Create the authz folder as the fist module for development
2025-09-24 08:23:06 -03:00
Sarina Canelake
199a622006 Initial commit 2025-09-23 07:32:54 -04:00