Add WebIDE and Gitpod buttons to Compact Code Dropdown

What does this MR do and why?

Add WebIDE and Gitpod buttons to Compact Code Dropdown

This feature is behind "directory_code_dropdown_updates" feature flag

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

directory_code_dropdown_updates flag OFF directory_code_dropdown_updates flag ON
directory

Screenshot 2025-02-06 at 9.58.06 AM.png

🗒️ : the edit button does not show here as there're no longer any items under it. the your workspaces section is being worked on in #513135 (closed)

Screenshot 2025-02-06 at 9.58.06 AM.png

blob

Screenshot 2025-02-06 at 9.58.21 AM.png🗒️ : no change in this view. both buttons remain in blob edit dropdown.

Screenshot 2025-02-06 at 9.58.21 AM.png

project overview

Screenshot 2025-02-06 at 10.00.10 AM.png

Screenshot 2025-02-06 at 10.00.10 AM.png

mobile

Screenshot 2025-02-06 at 9.59.24 AM.png

🗒️ : the layout here is different from final design. those will be worked on in separate MRs.

Screenshot 2025-02-06 at 10.01.18 AM.png

How to set up and validate locally

  1. Enable directory_code_dropdown_updates and blob_repository_vue_header_app feature flag

       Feature.enable(:directory_code_dropdown_updates)
       Feature.enable(:blob_repository_vue_header_app)
  2. Select a directory

  3. Select a file

  4. WebIDE should open either a) Select WebIDE in dropdown b) Shortcut .

  5. Enable Gitpod for both the instance and user, Gitpod should render the dropdown and can be opened by selecting Gitpod

Related to #450667 (closed)

Resolves #513135 (closed)

Edited by Chaoyue Zhao

Merge request reports

Loading