UI Polish projects page: text wrapping, alignment, and spacing
This MR is a part of the ✨ Beautifying our UI (15.5) ✨
What does this MR do and why?
This MR updates the projects list to achieve the following:
- Each project has a max of 2 lines of description
- After 2 lines, truncation occurs (in the form of an ellipsis
...
), even if those 2 lines occur due to a line break - Add more spacing between elements
- Update star icon to unfilled variant
- Change numbers of MRs, Issues, etc. from
3000
to3k
- If user has relative time format setting on, display "Last updated" in relative time format (e.g. "Last updated 8 days ago"). Pajamas guidelines
- The columns stay on their places while resizing
The projects
partial is used widely across the product:
/dashboard/projects page
/admin/users/<root>user_name>/projects
/<project-namespace>/-/forks
/search
/admin/projects
/admin/groups/<group_name>
-
/<user_name>
(user profile page) /users/root/projects
Screenshots or screen recordings
The reflow logic:
Views changed to list with a table view:
Before | After |
---|---|
Views changed to compact list with a table view:
Before | After |
---|---|
Views not changed, remaining a list:
Before | After |
---|---|
How to set up and validate locally
Check each of the listed pages:
/dashboard/projects page
/admin/users/<root>user_name>/projects
/<project-namespace>/-/forks
/search
/admin/projects
/admin/groups/<group_name>
-
/<user_name>
(user profile page) /users/root/projects
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Review progress:
-
UX review -
backend developer review -
backend maintainer review -
frontend developer review -
frontend maintainer review
Related to #375007 (closed) and #374580 (closed)
Edited by Anna Vovchenko