Skip to content

Add Resolved/Unresolved toggle button for Concept Manager Worklists #2756

Description

@filiperochalopes

User story

As a CIEL curator working through a Worklist, I want to explicitly mark whether an edited item has been resolved so that saving a concept can also update its Worklist status.

Use case

When a concept is opened from an Internal Data/Worklist item, add a Resolved / Unresolved toggle button between Cancel and Save Concept.

The component should follow the checkbox-button pattern shown in the reference, using the primary button style when Resolved and the secondary button style when Unresolved.

Requirements

  • Create a reusable checkbox-button toggle component.
  • Add the component between Cancel and Save Concept when Concept Manager is opened from an Internal Data/Worklist item.
  • Do not display it when Concept Manager is opened outside a Worklist context.
  • Support two states:
    • Unresolved: unchecked and secondary button style.
    • Resolved: checked and primary/blue button style.
  • When the concept form becomes dirty, automatically change the state to Resolved.
  • Allow the curator to manually change it back to Unresolved after editing.
  • Do not automatically switch it back to Resolved unless another form change occurs.
  • When saving with Resolved, save the concept changes and move/update the Worklist item to the Resolved state/list.
  • When saving with Unresolved, save the concept changes without resolving the Worklist item.

Acceptance criteria

  • The toggle is displayed only when editing a concept associated with a Worklist item.
  • Changing the form automatically selects Resolved.
  • The curator can manually select Unresolved even when the form is dirty.
  • Saving as Resolved marks the corresponding Worklist item as resolved.
  • Saving as Unresolved keeps the corresponding Worklist item unresolved.
  • The Worklist status is updated only when Save Concept is executed successfully.
Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

signal/low-riskSafe to execute with minimal downsidesignal/small-scopeLimited to a small part of the codebasestage/triagedAI triage complete — scored and classifiedtype/featureNew or improved functionality

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions