Skip to content

Vue Shared - Shared popover component

Zack Cuddy requested to merge zcuddy-vue-js-popover into master

What does this MR do and why?

Closes #462498 (closed)

This change implements a lightweight way to include a GlPopover in a HAML file without needing to create an entire Vue app or full page migration. This will be really helpful as we implement more disabled settings with our locked settings UX guidance.

This change was heavily inspired by a similar component vue_alerts.js.

First Usage

Included with this change is also a first usage originally implemented for #421310 (closed)

Screenshots or screen recordings

Locked Setting Unlocked Setting
Screen_Recording_2024-05-31_at_12.21.41_PM Screenshot_2024-05-31_at_12.22.17_PM

How to set up and validate locally

  1. License your GDK to Premium+
  2. Enable feature flag disallow_private_profiles
  3. Go to Admin -> Settings -> General
  4. Expand Account and limit (2nd collapsable) and scroll to the bottom section of that panel
  5. Disable or Enable Allow users to make their profiles private checkbox and save
  6. Important: Sometimes when toggling settings in the GDK there is a delay, restarting your GDK here may help
  7. Impersonate a non-admin user
  8. Click your profile image in the sidebar and click Edit profile
  9. Scroll to bottom and find Private profile section
  10. Ensure the checkbox either works or is disabled with a popover on the lock icon depending on the setting you chose in the admin
Edited by Zack Cuddy

Merge request reports