[STSMACOM-275] Custom Field: Custom Field Accordion | Ability to change Custom Field accordion label Created: 05/Aug/19  Updated: 11/Mar/20  Resolved: 11/Mar/20

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

Type: Story Priority: P3
Reporter: Khalilah Gambrell Assignee: Khalilah Gambrell
Resolution: Done Votes: 0
Labels: epam-spitfire, front-end
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Attachments: PNG File custom field - accordion.png     PNG File screenshot-1.png     PNG File screenshot-2.png     PNG File screenshot-3.png    
Issue links:
Relates
relates to STSMACOM-276 SPIKE: Investigate mod-configuration ... Closed
Requires
is required by UXPROD-2143 Q1 2020/Q2 2020 | Custom Fields (for ... Closed
Sprint: eHoldings Sprint 83, eHoldings Sprint 84
Story Points: 8
Development Team: Spitfire

 Description   

Requirements

  • Allow a librarian to assign a custom field to an accordion (also called section name) called [Custom fields] - NOTE: screenshot states Additional information but the default will be Custom fields
  • Allow a librarian to re-label the Custom fields accordion
  • Custom fields accordion label character limit 65 characters
  • The Custom field accordion label is configurable per record type on New/Edit Custom field page
  • Field is required

Screenshot - Settings > Users > New/Edit Custom Fields

Screenshot - User Record - Display Custom fields under Custom fields accordion

Acceptance Criteria

If I clicked on the Settings > Users> Custom Fields> New Custom Field page
Then the custom field accordion label should be populated with the default value [Custom fields]

Given I am on the Settings > Users > Custom Fields > Edit Custom field page
When I change the custom field accordion label to Local information
Then the Accordion label will change to Local information

Given the Users Custom fields accordion label is Local information
When I have saved custom fields to the Users record
Then display Local information accordion with custom fields on the create/edit/view User record

Given the Users Custom fields accordion label is Local information
When I have not saved custom fields to the Users record
Then do not display Local information accordion on the Users record.

Given the user removed the custom field accordion value
When s/he clicks Save
Then display a message below the field [Field is required.]

Given the user exceeds the accordion label character limit
When s/he clicks Save
Then display a message below the field [65 character limit has been exceeded. Please revise.]

Following acceptance criteria maybe unnecessary.

Given I clicked on the Settings > Users> Custom Fields> New/edit Custom Field page
And changed the accordion label to Local Information
When I click on the Settings > Requests> Custom Fields> New/edit Custom Field page
Then the custom field accordion label should be populated with the default value [Custom fields] OR to whatever I changed specific to the Requests record



 Comments   
Comment by Igor Godlevskyi (Inactive) [ 26/Nov/19 ]

Khalilah Gambrell, as I see the current back-end implementation of CF does not support the ability to change Custom Field accordion label.
I guess the schema fo the CF should be extended with the CF accordion name as no sense to have separate endpoint for it.
Am I right Dima Tkachenko?

Comment by Dima Tkachenko [ 26/Nov/19 ]

as I remember we discussed an option to store the label as configuration item (mod-configuration). In this case no BE work needed

Comment by Igor Godlevskyi (Inactive) [ 26/Nov/19 ]

Thanks, Dima Tkachenko, I am actually not aware of the limitations in the mod-configurations and did not considered it as a solution to store the CF accordion Label.
We have an endpoint to get all the associated CF for the record. Why the CF Label could not be there (we can consider it as the default custom field for example)?
Sobha Duvvuri, Carole Godfrey what is your opinion?
I guess we can discuss it during the standup

Comment by Khalilah Gambrell [ 26/Nov/19 ]

Igor Godlevskyi, Dima Tkachenko, Sobha Duvvuri, Carole Godfrey, I updated the user story. Please let me know if this help in making a decision on next steps.

cc: Former user

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

Khalilah Gambrell, The description says that to display the verification message, user must enter an invalid value after clicking on the "Save" button.
It may be worth checking if the value changes, as in other text fields of the application, and not after clicking the Save button?

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