Skip to content

Create SSoT for issuable sidebar toggling

Tom Quirk requested to merge 331778-improve-sidebar-toggle-logic into master

What does this MR do?

Follow up from !60092 (merged) (#331778 (closed)), this MR cleans up the sidebar-toggling logic in issuable_sidebar_root.vue.

Requirement: we need to be able to toggle the sidebar from within the right-sidebar-items slot of issuable_sidebar_root.vue.

Previously, in derivates of the issuable_show_root component (which uses issuable_sidebar_root internally), we were manually dispatching click events on the sidebar toggle button. This has been refactored away in favor of a slot-based approach, where we pass a toggleSidebar method to the right-sidebar-items slot. Then, the slot content can emit an event to trigger this toggleSidebar method.

There are no user-facing changes with this MR (~"technical debt" only).

Screenshots (strongly suggested)

Jira Issues sidebar Test cases sidebar (includes demo of page refresh)
jira-sidebar-after test-cae-sidebar-after

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #331778 (closed)

Edited by Tom Quirk

Merge request reports

Loading