UXPROD-2491 - Users - Custom Fields: accordion display configuration
Submitted | Mar 3, 2025 |
---|---|
Approved |
|
Status | draft |
Impact | low |
Arch Ticket | |
Prod ticket |
Context
Current situation or problem: Currently any created users custom fields will display in the custom field accordion which has a configurable title. However, it is currently not possible to set custom fields to display in other accordions on the user’s record. This feature would add a configuration option under Settings>Users>Custom Fields to set which accordion the custom will be displayed under.
Solution
The solution is aimed to provide a common mechanism for all modules that use folio-custom-fields
library. For the implementation, the library should be extended to:
persist the
sectionId
field that will be exposed through related API’s and allow setting it to the specific accordion.
Besides changes in the library, it is required to adjust the ui-users
module to be able to:
persist the configuration and related to the custom field
use the persisted configuration during the display of create/edit form
WBS
Backend:
Add
sectionID | varchar
column to folio-custom-fields table. Possible values:customFields
,editUserInfo
,extendedInfo
,contactInfo
, etc. according to available sections in UI.
Frontend:
On the configuration page for custom fields, add a dropdown with values from BE-1
On the user edit/create form, after getting the custom fields configuration, check the
sectionId
field and place the custom fields element in the proper section