-
Notifications
You must be signed in to change notification settings - Fork 29
Improve jumping between comments and skeletons #8689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
knollengewaechs
merged 14 commits into
master
from
improve-jumping-between-trees-and-comments
Jul 29, 2025
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
7558180
keep skeleton tab up to date with active tree
knollengewaechs bbd65f6
Merge branch 'master' into improve-jumping-between-trees-and-comments
knollengewaechs fe1891f
changelog
knollengewaechs 0741d6b
Merge branch 'master' into improve-jumping-between-trees-and-comments
knollengewaechs 8e24beb
add activeTree is null case to componentDidUpdate
knollengewaechs a060431
set longer delay for the first scroll in tree tab
knollengewaechs 1fdf5ff
add middleware to listen to redux actions in react components
knollengewaechs 4ea6808
add new action to focus trees
knollengewaechs 8c4e21f
Merge branch 'master' into improve-jumping-between-trees-and-comments
knollengewaechs 7cba7b6
clean up scrolling methods
knollengewaechs 101af55
improve redux action listener
knollengewaechs 670591e
improve function return type
knollengewaechs 624affe
improve typing of middleware
knollengewaechs 2e879e8
Merge branch 'master' into improve-jumping-between-trees-and-comments
knollengewaechs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { type Emitter, createNanoEvents } from "nanoevents"; | ||
|
||
type ActionPayload = { | ||
type: string; | ||
[key: string]: any; | ||
}; | ||
|
||
type Events = { | ||
[actionType: string]: (action: ActionPayload) => void; | ||
}; | ||
|
||
export const eventBus: Emitter<Events> = createNanoEvents<Events>(); |
11 changes: 11 additions & 0 deletions
11
frontend/javascripts/viewer/model/helpers/event_emitter_middleware.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { Dispatch } from "redux"; | ||
import type { Action } from "viewer/model/actions/actions"; | ||
import { eventBus } from "./event_bus"; | ||
|
||
export const eventEmitterMiddleware = | ||
<A extends Action>() => | ||
(next: Dispatch<A>) => | ||
(action: A) => { | ||
eventBus.emit(action.type, action); | ||
return next(action); | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
### Fixed | ||
- Fixed that the skeleton tab was not always reflecting the active tree. This makes it easier to navigate between comments and trees, for example. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.