Skip to content

Truncates package version in packages list page

What does this MR do and why?

Truncates package version in packages list page

Few other fixes:

  • Aligns version to center on mobile widths
  • Remove unnecessary HTML elements created by list_item.vue

Screenshots or screen recordings

Before After
Screenshot_2023-01-25_at_11.24.52_am Screenshot_2023-01-25_at_11.03.06_am
Screenshot_2023-01-25_at_11.25.02_am Screenshot_2023-01-25_at_11.03.13_am

How to set up and validate locally

  • Open the rails console

    rails c
  • Find one of your GDK projects. Project id can be found on the project home page

    p = Project.find(1)
  • Creates generic package with long version name

    FactoryBot.create(:generic_package, project: p, version: 'production-ee-e4405b4c3a0322db41d4258a3aae75bac25e7f13c6e1d0438d1c7b67e3229630')
  • Add this line if above fails during the creation of files

     def fixture_file_upload(*args, **kwargs)
       Rack::Test::UploadedFile.new(*args, **kwargs)
     end
  • Visit package registry list page for groups & projects.

  • Version number should be truncated if its long

  • You can try creating different packages following https://gitlab.com/gitlab-org/ci-cd/package-stage/package/-/wikis/Packages-Tips-&-Tricks

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Closes #368907 (closed)

Edited by Rahul Chanila

Merge request reports

Loading