Skip to content

Work Items - Lock

Problem

You can lock an issue. We'll need to support this for work items.

Proposal

Lock behavior should mirror existing behavior on Issues and MRs. As of !135754 (merged) all references should be to lock discussion of the object, rather than locking the object itself.

Criteria Reference Note
  1. Lock/unlock action in actions menu

image.png

image.png

  • Always "Lock discussion"
  • Uses loading state when transitioning states
  1. Toast on successful state change

Screenshot 2023-11-13 at 10.09.42 AM.png

  • "Discussion <locked|unlocked>."
  1. Lock badge in header area

image.png

image.png

  • orange-100 badge with orange-700 icon lock
  • Badge appears only when locked (no unlocked badge state)
  • Show tooltip "The discussion in this <object type> is locked. Only project members can comment." on hover
  1. Lock badge in activity area (project member)

image.png

image.png

  • If locked, not confidential, show locked warning
  • If both locked and confidential, show combination warning.
  • Only show comment box if user is still able to comment (e.g. not locked out)
  1. Lock badge in activity area (non-project member)

image.png

  • No comment box (user is locked out of discussion)
Edited by Nick Leonard