Create connected component for Note view page

Description

As a librarian, I want to take actions when viewing a note
Dropdown Screenshot https://drive.google.com/file/d/1B4iuZ5qDU9M_wNC6_F2UPOdDwu6UjrJ_/view?usp=sharing

Requirements

  • Display Unassign option in the dropdown if the note has been assigned to at least one note

    • Selecting Unassign will unassign the relationship between the note and the record you are currently on

  • Display Delete option in the dropdown

    • Selecting Delete will delete the note thus breaking the relationship between the note and all records tied to the note.

  • Ignore Edit and Copy options shown on screenshot

  • Available to be integrated with other modules

  • Display an Edit button in the upper righthand corner.

Unassign Note Confirmation Modal Screen
Screenshot See Delete note confirmation modal screenshot below as model

  • Modal header: Unassign note

  • Message: The note <<Note title>> will be unassigned.

  • Buttons to display: Cancel | Unassign

Delete Note Confirmation Modal Screen
Screenshot https://drive.google.com/file/d/1B4_F9bU8dUljZqcTOGtxQXHCt5nUb8oy/view

  • Modal header: Delete note

  • Message: The note <<Note title>> will be permanently deleted from <<total # per record type>>.

    • If two record types then separate counts with 'and' . Example: The note Renewal FY2020 will be permanently deleted from 5 providers and 3 packages.

    • If more than two record types then separate with commas and final record type count should be separated with a comma plus 'and'
      Example: The note Renewal FY2020 will be permanently deleted from 5 providers, 3 packages, and 145 titles.

  • Buttons to display: Cancel | Delete

Acceptance Criteria
Given I am on View note
When I click Unassign
Then display a Unassign note confirmation modal

Given I click Unassign
When I click Unassign button on Unassign note confirmation modal
Then return to previous page
AND note should no longer display under Notes accordion for that record

Given I am on View note
When I click Delete
Then display a Delete note confirmation modal

Given I click Delete
When I click Delete button on Delete note confirmation modal
Then return to previous page
AND note should no longer display under Notes accordion for that record OR any record that was assigned to that note

Given I click Delete or Unassign
When I click Cancel on the confirmation modal
Then keep me on the View note page

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Khalilah GambrellMay 17, 2019 at 1:25 PM

- removed all Toast Notification requirements

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Spitfire

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created February 27, 2019 at 6:45 PM
Updated July 2, 2019 at 11:06 AM
Resolved May 27, 2019 at 10:17 AM
TestRail: Cases
TestRail: Runs

Flag notifications