Closed omar-bear closed 1 year ago
SonarCloud Quality Gate failed.
0 Bugs
0 Vulnerabilities
0 Security Hotspots
2 Code Smells
No Coverage information
14.5% Duplication
Catch issues before they fail your Quality Gate with our IDE extension SonarLint
Description
The frontend feature will provide an intuitive and user-friendly interface for managing personalized variables within a group's settings. This will be achieved through a new tab named "Custom Variable" in the
BsPageGroup
component.Tasks
BsPageGroup
named "Custom Variable" with the appropriate translations. This will be located inpackages/ui/routes/groups/_groupId/index.vue
.bs-group-personalized-variable-tab
. This will be located inpackages/ui/components/group/bs-group-personalized-variable-tab
.Example of Visual Table:
To maintain consistency, we should create a table similar to the existing one, but with text inputs directly displayed for the "label" and "variable" fields.
API Endpoints
GET
/api/groups/:groupId/personalized-variables
- This endpoint will be used to retrieve all personalized variables associated with the specified group ID. This will be used to populate the table with existing variables.POST
/api/groups/:groupId/personalized-variables
- This endpoint will be used to create or update a list of personalized variables in the specified group. The request body should contain the details of the personalized variable array to be created or updated (i.e., label and variable). This will be used when the "Add" button is clicked and when a field is modified.DELETE
/api/groups/:groupId/personalized-variables/:variableId
- This endpoint will be used to delete a personalized variable from the specified group. This will be used when the "Delete" button is clicked and the element has an id.Acceptance Criteria
Time Estimation
2 days.
Result
https://github.com/Badsender-com/LePatron.email/assets/80390318/bca9922d-45ad-4a0b-a868-7cfd3a9e1d25