[STSMACOM-285] Custom Field: Input Type: Single select dropdown Created: 07/Aug/19  Updated: 26/May/20  Resolved: 04/May/20

Status: Closed
Project: stripes-smart-components
Components: None
Affects versions: None
Fix versions: 4.0.0

Type: Story Priority: P3
Reporter: Khalilah Gambrell Assignee: Владислав Велицкий
Resolution: Done Votes: 0
Labels: epam-spitfire, front-end
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Attachments: PNG File screenshot-1.png     PNG File screenshot-2.png     PNG File screenshot-3.png     PNG File screenshot-4.png    
Issue links:
Cloners
is cloned by STSMACOM-326 Custom Field: Input Type: Multi-selec... Closed
Relates
relates to STSMACOM-266 Create and edit page for Custom Field... Closed
Requires
is required by UIU-1565 Create/Edit/View User record | Custom... Closed
is required by UIU-1569 Create/Edit/View User record | Custom... Closed
is required by UXPROD-2288 Q2 2020 | Custom Fields (for User Rec... Closed
Sprint: eHoldings Sprint 87
Story Points: 5
Development Team: Spitfire

 Description   

As a librarian
I want to create custom field with the input type = Single select dropdown
So that I can track information that requires choosing from several options

Screenshot

Settings > Users > Custom fields View page handling single select dropdown

  • Display all options in a MCL as read-only

Create/Edit Single select dropdown Settings Requirement

  • Has the following fields: Hidden, Required, Field label, and Help text
  • Allow user to add single select options
    • Option label is required and character limit 100
    • Option label must be unique
  • Able to set a default option and able to reset to no default option
    • default to no default option (see screenshot)

Acceptance Criteria

Given I am on the Edit Custom field page
When I select the input type = Single select dropdown
Then allow me to specify options to display on a record

Given I am on the Edit Custom field page
When I add a new option
Then that new option should display on a record

Given I have entered [Major] for the single select dropdown
When I clear Field label field
Then display an inline error message - Field label is required.

Given I have entered more than 65 characters in the field label
Then display an inline error message <<#of characters max limit>> has been exceeded.

Acceptance Criteria - Single select dropdown options requirements - option label

Given I am on the Edit Custom field page
When I select the input type = Single select dropdown
AND click Add option
Then I should be able to set an option label

Given I have accessed the custom field Major
AND the input type = Single select dropdown
When I revise one of the option rows I have previously entered a row
AND hit Save & close
Then the option should be updated

Given I have entered more than 65 characters in the single select option label
Then display an inline error message <<#of characters max limit>> has been exceeded.

Given I have entered [History] for the option label
When I clear option label field
Then display an inline error message - [Option label is required.]

Given I have entered [History] for the option label
When [History] has been saved or entered as a option label on another option
Then display an inline error message - [Duplicate option. Please revise.]

Given I have entered several options
Then I should be able to have one option as the default

Given I have entered several options
AND I have set an option as the default
When I no longer want to set an option
Then allow me to reset to no default option



 Comments   
Comment by maksym_dryha [ 16/Mar/20 ]

Khalilah Gambrell, Filip Jakobsen, the flow described in the story contradicts what I see on Filip's mockups. The design implies that we chose the type of dropdown (MULTI_SELECT_DROPDOWN or SINGLE_SELECT_DROPDOWN) using the list that is shown after a user clicks the "Add custom field" button, whereas the story requirement is that in the list of custom field types we should only see "Dropdown" option, which then can be configured to be multi-select or single-select.

Comment by Khalilah Gambrell [ 16/Mar/20 ]

maksym_dryha, I haven't updated the story yet

Comment by Denys Bohdan [ 26/Mar/20 ]

Khalilah Gambrell have you had a chance to update the story with regards to Maksym's question?

Comment by Khalilah Gambrell [ 26/Mar/20 ]

Denys Bohdan - not yet.

Comment by Khalilah Gambrell [ 30/Mar/20 ]

Denys Bohdan and maksym_dryha, I have updated the requirements.

Comment by Khalilah Gambrell [ 15/Apr/20 ]

Removed Code requirement. Needs backend work.

Comment by Khalilah Gambrell [ 17/Apr/20 ]

Will need to address in another story how to reset the default value.

Comment by Khalilah Gambrell [ 27/Apr/20 ]

maksym_dryha, Владислав Велицкий, and Denys Bohdan, please review the requirements updates.

Comment by Khalilah Gambrell [ 28/Apr/20 ]

Владислав Велицкий, based on requirement updates, any additional updates to the requirements?

Comment by Владислав Велицкий [ 28/Apr/20 ]

Khalilah Gambrell, no, thanks, these requirements are enough. 'Default' functionality will be implemented in STSMACOM-292.

Generated at Thu Feb 08 22:33:12 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.