Project

General

Profile

Actions

Patch #31066

closed

Show projects using a table instead of an unordered list in the user profile page

Added by Takenori TAKAKI almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
UI
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

I felt that the project list on the Profile page looks better 'table' style than 'ul' style. Especially on users with a large number of registered projects.

'ul' style 'table' style
==>

Files

users-memberships-ul.png (204 KB) users-memberships-ul.png Takenori TAKAKI, 2019-03-20 08:35
users-memberships-table.png (205 KB) users-memberships-table.png Takenori TAKAKI, 2019-03-20 08:36
31066.patch (2.18 KB) 31066.patch Takenori TAKAKI, 2019-03-20 09:11
projects-indented@2x.png (30.5 KB) projects-indented@2x.png Go MAEDA, 2019-03-20 15:11
users-memberships-indented-table.png (89.5 KB) users-memberships-indented-table.png Takenori TAKAKI, 2019-03-22 05:01
31066-indent-subproject.patch (2.4 KB) 31066-indent-subproject.patch Takenori TAKAKI, 2019-03-22 05:03
31066-fix-broken-tests.patch (2.41 KB) 31066-fix-broken-tests.patch Takenori TAKAKI, 2019-03-22 14:55
31066-group-memberships-by-project.patch (2.45 KB) 31066-group-memberships-by-project.patch Go MAEDA, 2019-03-26 03:37
Actions #1

Updated by Takenori TAKAKI almost 6 years ago

I made a patch and attached it.

Actions #2

Updated by Bernhard Rohloff almost 6 years ago

+1 Looks very clean.
I'll test it when I find a free time slot.

Actions #3

Updated by Go MAEDA almost 6 years ago

Thank you for submitting the patch.

Takenori Takaki, I think it will be even better if subprojects are indented like admin/projects page. Is it possible?

Actions #4

Updated by Takenori TAKAKI almost 6 years ago

Maeda-san, Thank you for your feedback!
I also think that indented lists are better to see.
It is possible to indent in subprojects, by changing like the attached patch.

Actions #5

Updated by Go MAEDA almost 6 years ago

Thank you for the really nice improvement! But I encountered the following error while running test suites. Could you look into this?

Failure:
UsersControllerTest#test_show_displays_memberships_based_on_project_visibility [/Users/maeda/redmines/redmine-trunk/test/functional/users_controller_test.rb:176]:
Expected at least 1 element matching "td:nth-of-type(1)>a", found 0..
Expected 0 to be >= 1.

bin/rails test test/functional/users_controller_test.rb:171
Actions #6

Updated by Takenori TAKAKI almost 6 years ago

Go MAEDA wrote:

Thank you for the really nice improvement! But I encountered the following error while running test suites. Could you look into this?

Oops...Sorry...I could't notice the test broken.
I repaired the broken tests.

Actions #7

Updated by Go MAEDA over 5 years ago

  • Target version changed from Candidate for next major release to 4.1.0

LGTM. Setting the target version to 4.1.0.

Actions #8

Updated by Go MAEDA over 5 years ago

  • File 31066-group-memberships-by-project.patch added

I have slightly changed 31066-fix-broken-tests.patch.

  • Use Enumerable#group_by outside the loop in order to avoid using Enumerable#select inside the loop. Maybe this is more efficient
  • Remove "members" class from the table because "width: 45%" for td.roles looks too wide
Actions #10

Updated by Go MAEDA over 5 years ago

  • File deleted (31066-group-memberships-by-project.patch)
Actions #11

Updated by Go MAEDA over 5 years ago

  • Subject changed from Change style of projects list from "ul" to "table", displayed on user profile to Show projects using a table instead of an unordered list in the user profile page
  • Status changed from New to Closed
  • Assignee set to Go MAEDA

Committed. Thanks.

Actions

Also available in: Atom PDF