プロジェクト

全般

プロフィール

Vote #77493

完了

Links to issue notes should highlight the linked note

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

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
UI_10
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
99
issue_org_id:
22978
author_id:
4034
assigned_to_id:
1
comments:
15
status_id:
5
tracker_id:
2
plus1:
2
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

When I follow e.g. the link #4806#note-9, the issue page opens without any indication where the linked note is: The web browser cannot scroll it to the top, because it is one of the last notes.

It would be very helpful to have the linked note visually emphasized it this case, e.g. by using a lightly colored background.


journals

--------------------------------------------------------------------------------
I wrote a patch to implement this feature.
Please see the attached gif animation: attachment:click_the_link.gif
--------------------------------------------------------------------------------
I am sure this feature can improve UX. "Discourse":https://www.discourse.org/ (open source discussion board software) has similar feature. You can try highlight feature of Discourse by clicking https://meta.discourse.org/t/educate-users-about-paragraphs/65220/9 .

The patch from Mizuki Ishikawa looks good to me but I think it is safer to change the patch as follows:

<pre><code class="diff">
--- highlight_the_linked_note.patch.org 2017-06-28 13:44:46.000000000 +0900
+++ highlight_the_linked_note.patch 2017-06-28 13:45:00.000000000 +0900
@@ -12,7 +12,7 @@
+ $(window).on('load hashchange',function(){
+ var hash = location.hash;
+ if (hash){
-+ $('div' + hash).css('background-color', '#ffffdd').animate({backgroundColor: ''}, 2000);
++ $('#history div' + hash).css('background-color', '#ffffdd').animate({backgroundColor: ''}, 2000);
+ }
+ });
+});
</code></pre>

--------------------------------------------------------------------------------
+1 Nice improvement!
--------------------------------------------------------------------------------
I slightly changed the patch. The new patch checks if the format of the fragment identifier is "#change-nnn" or "#note-nnn".
--------------------------------------------------------------------------------
Updated my patch. Replaced a color value with a CSS class in the view.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
+1

--------------------------------------------------------------------------------
Committed, thanks. I've made the transition a bit longer and changed the color.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Thanks to everyone involved!
--------------------------------------------------------------------------------

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

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

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


related_issues

relates,Closed,28330,Links to wiki headings should highlight the linked heading
relates,Closed,30834,Links to forum replies should highlight the linked reply
duplicates,Closed,15410,Highlighting of comment anchors

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

  • カテゴリUI_10 にセット
  • 対象バージョン4.0.0_99 にセット

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

いいね!0
いいね!0