Skip to content

feat(tracker): previous/next navigation in the issue panel - #11134

Open
MichaelUray wants to merge 1 commit into
hcengineering:developfrom
MichaelUray:feat/issue-prev-next-navigation
Open

MichaelUray wants to merge 1 commit into
hcengineering:developfrom
MichaelUray:feat/issue-prev-next-navigation

Conversation

@MichaelUray

Copy link
Copy Markdown
Contributor

Fixes #9510

Problem and change

An opened issue could only be left by going back to the list, there was no way to step to the neighbouring issue. The view UpDownNavigator component still existed but was no longer used since the panel header redesign dropped the navigator slot, and it relied on the global focus provider, which is taken over by the sub-issue list inside the issue panel.

UpDownNavigator now looks up the list that contains the opened document (ListSelectionProvider.Find), lets that list resolve the previous/next item so grouping and sorting are respected, and opens it. The buttons are only shown while such a list is present and navigation is not restricted. Alt+ArrowUp / Alt+ArrowDown do the same unless the user is editing text. EditIssue shows the navigator in the panel header.

Tests

New unit tests plugins/view-resources/src/__tests__/upDownNavigation.test.ts. Checked manually on a self-hosted instance: the arrows in the issue panel header and Alt+Up/Alt+Down move to the previous/next issue of the list behind the panel, also across group boundaries; nothing happens while typing in the description; hovering the sub-issue list inside the panel does not change the target.

Notes

The order is the list's own keyboard navigation order (the same as ArrowUp/ArrowDown in the list). In grouped lists that order can differ from the rendered order in some cases; that is existing list behaviour and not changed here.

An opened issue could only be left by going back to the list, there was no way to step to the neighbouring issue. The view UpDownNavigator component still existed but was no longer used since the panel header redesign dropped the navigator slot, and it relied on the global focus provider, which is taken over by the sub-issue list inside the issue panel.

UpDownNavigator now looks up the list that contains the opened document (ListSelectionProvider.Find), lets that list resolve the previous/next item so grouping and sorting are respected, and opens it. The buttons are only shown while such a list is present and navigation is not restricted. Alt+ArrowUp / Alt+ArrowDown do the same unless the user is editing text. EditIssue shows the navigator in the panel header.

Fixes hcengineering#9510

Signed-off-by: Michael Uray <michaeluray@users.noreply.github.com>
@MichaelUray
MichaelUray force-pushed the feat/issue-prev-next-navigation branch from 75f738e to 823f1ee Compare October 26, 2026 11:28

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Next Issue navigation

1 participant