Details
-
Type:
Story
-
Status: Closed (View Workflow)
-
Priority:
P3
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 3.0.0
-
Labels:
-
Template:customfield_11100 29788
-
Sprint:eHoldings Sprint 84
-
Story Points:8
-
Development Team:Spitfire
Description
As a library staff member that uses FOLIO
I want to enter values for fields that are important to my library to track on patrons
Implementation
- Apply components from Stripes smart components repository onto Create/Edit/View user record.
Create/Edit
- If a custom field has been created and set to show then display the Custom fields accordion on the Create/Edit User Record
- Accordion should display <<Settings > Users > Custom fields > Section title value>>
- Only display custom fields where Hidden = No
- Grid display in the same manner as other accordions that contain checkboxes, text boxes, single select and multi select.
- If a custom field is required then display a red asterisk to the right of the label
- All field labels appear above the input type
- If a custom field has help text then display the info popover icon to the right of the field (https://ux.folio.org/storybook/?selectedKind=InfoPopover&selectedStory=Basic%20Usage&full=0&addons=1&stories=1&panelRight=0&addonPanel=REACT_STORYBOOK%2Freadme%2Fpanel)
- If error occurs then display error message inline
View
- If a custom field has been created and set to show then display the Custom fields accordion on the View User Record
- Accordion should display <<Settings > Users > Custom fields > Section title value>>
- Only display custom fields where Hidden = No
- Grid display in the same manner as other accordions that contain checkboxes, text boxes, single select and multi select
- If no value set then display a dash and make sure that when a user focuses on the dash that a screenreader can read 'No value set'
Create/Edit User record Screenshot
View User record
Acceptance Criteria
Given I am creating/editing a user record
When a custom field has been created in Settings and Hidden = No (not checked)
Then display the Custom field accordion and all custom fields set to show on a user record
Given I am creating/editing a user record
When all custom fields created in Settings have been set to Hidden = Yes (checked)
Then do not display the Custom field accordion on a user record
Given I am creating/editing a user record
When no custom field has been created in Settings
Then do not display the Custom field accordion on a user record
Given I am creating/editing a user record
When I enter a value for a custom field
AND hit Save
Then the value should display on View mode - user record
Given I am creating/editing a user record
When custom fields display
Then the grid display should be no different than other non-custom fields
Given I am viewing a user record
When custom fields display
Then the grid display should be no different than other non-custom fields
Given I am creating/editing a user record
When a custom field is required
Then display a red asterisk to the right of the field label
Given I am creating/editing a user record
When a custom field has help text
Then show an info popup that displays the help text
Given I am on the Create/Edit user record
AND custom field A is required
When I do not enter a value
Then display an error message [<<field label>> is required.]
Given I am on the Create/Edit user record
When Custom field is a text field
AND value exceeds character limit
Then display an error message [<<field label>> character limit has been exceeded. Please revise.]
Given I am on the Create/Edit user record
When Custom field is a text area
AND value exceeds character limit
Then display an error message [<<field label>> character limit has been exceeded. Please revise.]
Given I have not set a value for a custom field
When I view the User record
Then display a dash and make sure that when a user focuses on the dash that a screenreader can read 'No value set'
Given I delete Custom Field A in Settings > Users > Custom field
When I create/edit/view a user record
Then I should not see Custom Field A
Given I have create/edit/view User record permissions
Then I should be able to enter/view custom field values on a user record
Given I have no create/edit/view User record permissions
Then I should not be able to enter/view custom field values on a user record ... since I cannot create/edit/view a user record
Given I have view User record permission
Then I should be able to view custom fields on a user record
Given I have no view User record permission
Then I should not be able to view custom fields on a user record ... since I cannot view the user record
TestRail: Results
Attachments
Issue Links
- has to be done after
-
STSMACOM-253 Create a page for Custom Fields preview in Settings
-
- Closed
-
-
STSMACOM-254 Create and edit Custom Fields list AND create an Input Type = Text box
-
- Closed
-
-
STSMACOM-266 Create and edit page for Custom Fields in Settings: Dropdown
-
- Closed
-
-
STSMACOM-267 Settings | Custom fields | Edit: Drag and drop to support Custom field display order
-
- Closed
-
-
STSMACOM-301 Create an Input Type = Text area
-
- Closed
-
-
STSMACOM-302 Input - Create a page for Custom Fields preview in Settings
-
- Closed
-
-
STSMACOM-314 Create an Input Type = Single Checkbox
-
- Closed
-
- relates to
-
UXPROD-2143 Q1 2020/Q2 2020 | Custom Fields (for User Record and as General Platform Feature): Frontend Development
-
- Closed
-
-
STSMACOM-281 Create/Edit a Custom Field | Custom Field Assignment per record type + App
-
- Closed
-