[go: up one dir, main page]

Skip to content

Show a toast after locking a directory from repository overflow menu

The following discussion from !183672 (merged) should be addressed:

  • @alyssatrinh started a discussion:

    @psjakubowska woops my bad for the scope creep! Thank you for answering my questions anyway.

    we can't show the toast at this point, as we reload the page after a user confirms locking in the modal

    out-of-scope idea what do you think about showing a toast after we reload the page? It would be helpful to give users confirmation. In the previous lock button placement, users had the visual indication of the button changing from Lock to Unlock, but since the button is in the overflow menu that visual confirmation no longer exists. If you're aligned with this I can create a new issue.

    [Draft] toast text for locking/unlocking confirmation

    • File successfully locked
    • File successfully unlocked
    • Directory successfully locked
    • Directory successfully unlocked

Scope

When on a tree page locking a directory, add a toast confirming the action. The copy:

  • Directory successfully locked
  • Directory successfully unlocked

Technical limitations

Locking a directory causes a page reload, because we need to update the list of the directory content and add lock icons there. The problem is that they are two separate Vue applications that do not communicate at the moment.

locking directory - page reload Vue application structure
Screen_Recording_2025-04-11_at_12.11.40 Screen_Recording_2025-04-11_at_12.12.45

Given that we first need to tackle the communication between the two application or alternatively refactor the page to be one Vue application (this is of course much bigger effort).

Edited by Paulina Sedlak-Jakubowska