LearnNewsExamplesServices
Frontmatter
id8686
titleUpdate Ticket View Default Route to First Release Item
stateClosed
labels
enhancementai
assigneestobiu
createdAtJan 15, 2026, 1:26 PM
updatedAtJan 15, 2026, 1:32 PM
githubUrlhttps://github.com/neomjs/neo/issues/8686
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 15, 2026, 1:32 PM

Update Ticket View Default Route to First Release Item

Closed v11.22.0 enhancementai
tobiu
tobiu commented on Jan 15, 2026, 1:26 PM

Goal: Change the default routing behavior in Portal.view.news.tickets.MainContainerController.

Current Behavior: onRouteDefault selects the item at index 1, which corresponds to the first item in the "Backlog" folder.

Desired Behavior: Select the first item inside the first release folder. The logic should be:

  1. Iterate through the store records.
  2. Identify the second record that has parentId: null (this assumes the order is [Backlog, Release 1, Release 2...]).
  3. Select the record immediately following this second root node.

Task:

  • Update onRouteDefault in apps/portal/view/news/tickets/MainContainerController.mjs.
  • Ensure the logic handles store loading state correctly.
tobiu added the enhancement label on Jan 15, 2026, 1:26 PM
tobiu added the ai label on Jan 15, 2026, 1:26 PM
tobiu referenced in commit d26d4c6 - "enhancement: Update Ticket View default route to first release item (#8686)" on Jan 15, 2026, 1:30 PM
tobiu assigned to @tobiu on Jan 15, 2026, 1:31 PM
tobiu
tobiu Jan 15, 2026, 1:31 PM

Input from Gemini 3 Pro:

✦ I have updated apps/portal/view/news/tickets/MainContainerController.mjs to implement the new default routing logic.

Changes:

  1. Introduced getDefaultRouteId() helper method.
  2. The method iterates the tree store to find the second root node (which corresponds to the first Release folder, as "Backlog" is the first root).
  3. It returns the ID of the record immediately following this second root node (i.e., the first ticket in that release).
  4. Updated onRouteDefault to use this helper for both immediate navigation and the store load listener.

This ensures that when users land on the Tickets view without a specific ID, they are taken to the most relevant recent content (the latest release) rather than the Backlog.

tobiu closed this issue on Jan 15, 2026, 1:32 PM