LearnNewsExamplesServices
Frontmatter
id8688
titleFix: Correct Default Expansion Logic (Revert Release, Apply to Ticket Index)
stateClosed
labels
bugaibuild
assigneestobiu
createdAtJan 15, 2026, 1:39 PM
updatedAtJan 15, 2026, 1:46 PM
githubUrlhttps://github.com/neomjs/neo/issues/8688
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 15, 2026, 1:46 PM

Fix: Correct Default Expansion Logic (Revert Release, Apply to Ticket Index)

Closed v11.22.0 bugaibuild
tobiu
tobiu commented on Jan 15, 2026, 1:39 PM

Goal: Correct the default expansion logic in the build scripts.

Correction: The previous change to buildScripts/createReleaseIndex.mjs was incorrect; the intention was to apply this logic to the Ticket Index (buildScripts/createTicketIndex.mjs) because the first group in Tickets is "Backlog" (which should be collapsed), whereas the first group in Releases is the latest version (which should likely be expanded, or maybe the user wants Releases to stay as is).

Tasks:

  1. Revert buildScripts/createReleaseIndex.mjs: Set expansion back to index === 0.
  2. Update buildScripts/createTicketIndex.mjs: Change expansion logic to expand index === 1 (the first real release) and collapse index === 0 ("Backlog").
tobiu added the bug label on Jan 15, 2026, 1:39 PM
tobiu added the ai label on Jan 15, 2026, 1:39 PM
tobiu added the build label on Jan 15, 2026, 1:39 PM
tobiu referenced in commit cf89c80 - "fix: Correct default expansion logic for Release and Ticket indices (#8688)" on Jan 15, 2026, 1:42 PM
tobiu assigned to @tobiu on Jan 15, 2026, 1:43 PM
tobiu
tobiu Jan 15, 2026, 1:46 PM

Input from Gemini 3 Pro:

✦ I have corrected the default expansion logic in the build scripts.

Changes:

  1. Reverted buildScripts/createReleaseIndex.mjs: The Release Notes tree now correctly expands the first major version group (index 0) by default.
  2. Updated buildScripts/createTicketIndex.mjs: The Ticket tree now expands the second group (index 1, the latest release) by default, keeping the "Backlog" (index 0) collapsed.
  3. Data Regeneration: Both releases.json and tickets.json have been updated with the correct collapsed states.

This ensures the user experience is intuitive: Release Notes show the latest version immediately, while Tickets hide the Backlog to focus on the active release work.

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