Skip to content

VSN-2473 : Fixing issue (Front - integration side) of marking & unmarking files & documents as favorite + issue of docs details snackbar overflow.

yassine.elazami a demandé de fusionner VSN-2473 vers develop

Merge Request Description

Refactor: Favorite Toggle Endpoint

This commit introduces changes to the endpoint responsible for toggling the favorite status of files and folders. The endpoint logic has been updated to ensure proper handling of favorite/unfavorite actions.

Refactor: Implementation Adapted

The implementation of the favorite toggle feature has been adapted to align with newly introduced changes. This ensures consistency in how favorite actions are processed across different document types.

Refactor: Integration Adapted

Integration logic has been updated to pass the folder UUID when toggling favorite status. This adaptation improves the accuracy of folder-level operations.

Refactor: Endpoint Corrected

Corrections were made to the endpoint handling folder unfavoriting. This ensures that the correct API route is used when removing a folder from favorites.

Refactor: Folder Unfavoriting Call

The logic for unmarking folders as favorites has been refactored. This improves clarity and reduces redundancy in the codebase.

Feat: Removing Unused User ID Call

An unused API call related to user ID retrieval has been removed. This cleanup reduces unnecessary overhead and improves maintainability.

Refactor: Favorite Docs Toggles

The implementation for marking and unmarking documents as favorites has been refactored. This ensures a more consistent and reliable behavior when toggling document states.

Refactor: File Favorite Status Toggles

The logic for toggling file favorite status has been refactored. This improves the handling of edge cases and ensures proper synchronization with the backend.

Refactor: Refactoring Implementations

General refactoring of favorite toggle implementations has been performed. This enhances readability, reduces duplication, and aligns with best practices.

Refactor: Refactoring API Calls Implementations

API call implementations related to favorite toggling have been refactored. This ensures cleaner integration points and improves maintainability of the service.

Closes VSN-2473

Rapports de requête de fusion