プロジェクト

全般

プロフィール

Vote #79372

未完了

Option to collapse/expand issue sections

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
UI_10
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
33
issue_org_id:
29034
author_id:
107353
assigned_to_id:
0
comments:
21
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

In #29027, I've proposed to add an collapse/expand feature to issue sections.

Below there are 2 proposals:

  1. Collapse/expand only for the following sections: Description, Attachments (#29033), Subtasks and Relations.
    !{width:50%; border: 1px solid grey;}expand_collapse.png!

  2. Collapse/expand also for the Attributes section (this one requires more UI changes):
    !{width:50%; border: 1px solid grey;}with_attributes.png!


journals

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
First of all, this is overall a nice feature and I would be glad to have at least one option accepted.
If I could choose I would be in favor of the second option even if it leads to more changes. Like in #29033 the 'Attributes' heading gives the view more structure and divides the issue in logical sections. I think it gives the issue a nice looking header bar on top, too. The second advantage is that if the attributes page is collapsed it would release space to look at the other sections and don't have to scroll up and down to get to my information, especially on issues with many attributes. This could make a huge difference for people like me who are sitting in front of a Chromebook or small laptop with a lower resolution.

!small_screen.jpg!

As you can see the attributes section takes around 30% of the space dedicated to the issues information.

So plus one for the proposal and plus one for option 2.
+1
--------------------------------------------------------------------------------
Here is a patch that can be applied on top of #29033 and can be used to test this expand/collapse feature. If the feedback is positive, I'll add another patch that moves the attributes to their own section (like in the second proposal) and another one to memorise the state of the section using local storage.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
The attached patches:
- add the expand/collapse also for the issue attributes section
- add a 15x padding

With these 2 patches, my second proposal is almost ready.

Still on my to do list:
* memorise the state of the section using local storage
* add an option to expand/collapse all sections. Here I'll be happy to receive some UI proposals.

Please be aware that these patches base on #29263.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Thanks for the patches Marius!

The patches from #29033 and #29263 applied flawlessly and look good to me.
Somehow the patch attachment:0002-adds-some-padding-to-issue-section-content.patch refuses to apply in my environment.
Could you please check if its applying cleanly on your side?
--------------------------------------------------------------------------------
I also think there's some additional JavaScript magic necessary, isn't it?
Something like in source:trunk/app/views/versions/index.html.erb#L89 ...
--------------------------------------------------------------------------------
Bernhard Rohloff wrote:
> Could you please check if its applying cleanly on your side?

Thanks for testing it. Yes, I'll take a look these days.

> I also think there's some additional JavaScript magic necessary, isn't it?
> Something like in source:trunk/app/views/versions/index.html.erb#L89 ...

I'm not sure for why do you think that we need some additional JS magic. My fist patch (0001-option-to-collapse-expand-issue-description-files-fu.patch) already adds a new JS function to manage the toggles.
--------------------------------------------------------------------------------
Oh my, I shouldn't test patches after a hot summer day at work.
I totally oversaw the first patch. If it's applied everything else applies properly,too.
And so far it works great!

On the @collapse/expand all@ subject it's perhaps a good idea to make it similar to the existing feature in the issues list where you can expand/collapse all categories at once. I think this would be a very consistent experience.

!issues_collapsible_category.png!
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Space savers are definitely welcome.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Setting the target version to 4.1.0.
--------------------------------------------------------------------------------
I think we actually save space when we can collapse some sections +by default+. Having to collpase sections manually to save space each time we display an issue doesn't sound so much usefull to me.
Can we have more feedback on this proposed change?
--------------------------------------------------------------------------------


related_issues

relates,New,29027,Add more structure to the issues view by using tabs
relates,New,29321,Move the watchers list to issue section
relates,Closed,11988,Display additional attachments in the issue history only
relates,New,25925,Fold away "Change properties" when adding an issue note
blocks,Closed,29033,Move attachments to their own section in issue page
blocks,New,29263,Move issue attributes to their own section in issue page

Admin Redmine さんが3年以上前に更新

  • カテゴリUI_10 にセット
  • 対象バージョンCandidate for next minor release_33 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0