Project

General

Profile

Actions

Feature #43462

open

Quick Jump feature for read-up on long issues

Added by Jimmy Westberg 4 days ago. Updated about 3 hours ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

I have created a JS-injection script (using View Customize) that does all this... It's a hack I know but as a proof of concept for you to consider if this should/could be a standard feature. See generated brain dump info below, since AI might have messed up the code I added the original JS code (Swedish text) as original_js_code.txt


Files

Actions #2

Updated by Jimmy Westberg 3 days ago

It's possible to test the code by simply copy and paste it into the browsers console and hit enter.

Just make sure you're on a issue page with somewhat many notes. To open the menu you need to hover in the bottom middle of the window. You'll see a button appear (Snabbhopp = Quick Jump).

Actions #3

Updated by Jimmy Westberg 3 days ago

https://www.dropbox.com/t/iWRJ785Jxdu6wExp <-- Link to video, share will expire 2025-11-19

Actions #4

Updated by Jimmy Westberg 1 day ago

I've updated the script to work with current Redmine.org-html-syntax:

// const NOTE_SEL = '.note[id^="note-"]'; // work with Redmine 6.0
const NOTE_SEL = 'div[id^="note-"]'; // work with older Redmine installations

Actions #6

Updated by Jimmy Westberg 1 day ago

I have now made the script respect any underlaying themes and I have also made the settings better so it should be fairly easy to implement.

Actions #8

Updated by Jimmy Westberg about 13 hours ago

Added Title to the "long notes" option and added tab into the highlight ring..

Actions #9

Updated by Jimmy Westberg about 13 hours ago

I'm working on a setting that can over run "Lazy Load" if wanted. Will get back to you on that later this week.

Actions #10

Updated by Jimmy Westberg about 3 hours ago

// Lazy-load policy
// false = do nothing extra, respect Redmine's lazy load (default, unchanged behavior)
// true = QuickJump will trigger loading more history in steps + show indicator
OVERRIDE_DEFAULT_LAZY_LOAD: false,

Default the scroll to note will repeatedly try to scroll the wanted note into view. If you override it the full page will be loaded into the DOM and hopefully make the scroll much faster. I have set some other settings for testing if this isn't behaving on other's machines.

Actions

Also available in: Atom PDF