Commit Graph

11 Commits

Author SHA1 Message Date
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
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
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
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
9e2ab6d647 fix: update the library scope according to the backend requirements 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
66fb56e198 style: update linter validation and fix lint issues 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