Skip to content

Move history button into commit box on repository and blob pages

What does this MR do and why?

This MR moves the history button into commit box on larger screen. Since the box is not shown on narrow viewports, this keeps the button in the header in those case. A new design of the narrow viewport commit box is coming up in separate MRs.

This will close #421376 (closed) and the update for narrow viewports will be done in #504359 (closed)

Description MR

For both blob and repository view:

Move history button to commit box on larger viewport

Keep the button in header on small viewport

👈🏻 this MR

For repository page:

Add new Vue component in app/assets/javascripts/repository/components/ for narrow viewpoint

coming up!

For blob page:

Add new haml component in app/views/projects/commits/ for narrow viewpoint

coming up!

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.

Before After

Blob page

Note: this link is good as it has a commit message body to test the collapse/expand of commit message details

Screenshot 2024-11-12 at 1.47.59 AM.png

Screenshot 2024-11-13 at 7.31.45 PM.png

Blob page - narrow viewport

Note: this link is good as it has a commit message body to test the collapse/expand of commit message details

Screenshot 2024-11-12 at 1.48.58 AM.png

Screenshot 2024-11-13 at 7.33.08 PM.png

Repository page

Example link

Screenshot 2024-11-12 at 1.46.03 AM.png

Screenshot 2024-11-13 at 7.32.30 PM.png

Repository page - narrow viewport

Example link

Screenshot 2024-11-12 at 1.47.31 AM.png

Screenshot 2024-11-13 at 7.33.23 PM.png

Light 🔦 mode

Screenshot 2024-11-12 at 1.50.31 AM.png

Screenshot 2024-11-13 at 7.31.16 PM.png

How to set up and validate locally

  • Visit repository or blob page (see example url abolve)
  • Select history
  • Should be routed to the correct commit list

Related to #421376 (closed)

Edited by Chaoyue Zhao

Merge request reports

Loading