Skip to content

Add sort-by-Release-Plan-ID option to Release Plan Dashboard#15527

Open
Copilot wants to merge 3 commits intomainfrom
copilot/add-sort-filter-release-plan-dashboard
Open

Add sort-by-Release-Plan-ID option to Release Plan Dashboard#15527
Copilot wants to merge 3 commits intomainfrom
copilot/add-sort-filter-release-plan-dashboard

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 6, 2026

The Release Plans tab only sorted by SDK Release Month. Users need to sort by Release Plan ID (descending) to quickly spot newly incoming releases.

Changes

  • Alpine store: Added sort: 'month' to filters (default unchanged)
  • UI: Added a <select> dropdown in the tab bar, visible only on the Release Plans tab, with options for "SDK Release Month" and "Release Plan ID"
  • Render logic: Introduced sortByReleasePlanId comparator (descending) and a sortFn selector that replaces hardcoded sortByReleaseMonth calls in splitByState
  • Reactivity: Registered store().filters.sort in the Alpine effect so sort changes trigger re-render
  • CSS: Added .global-sort-order to existing filter dropdown style rule

Adds an optional sort dropdown to the Release Plans tab allowing users
to sort by "SDK Release Month" (default) or "Release Plan ID" (newest
first). This helps users quickly identify and track newly incoming
releases.

Fixes #9874

Agent-Logs-Url: https://github.com/Azure/azure-sdk-tools/sessions/8a446f8a-c2be-4e01-8b4b-71e82fa6ca81

Co-authored-by: praveenkuttappan <55455725+praveenkuttappan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add sort and filter capability for release plan dashboard Add sort-by-Release-Plan-ID option to Release Plan Dashboard May 6, 2026
Copilot AI requested a review from praveenkuttappan May 6, 2026 19:36
@praveenkuttappan praveenkuttappan marked this pull request as ready for review May 6, 2026 20:42
Copilot AI review requested due to automatic review settings May 6, 2026 20:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Release Plan Dashboard UI/render pipeline to support sorting the Release Plans view either by SDK Release Month (existing behavior) or by Release Plan ID (new), enabling users to more easily spot newly added plans.

Changes:

  • Added a new filters.sort value in the Alpine store (defaulting to "month").
  • Added a Release Plans–only sort <select> in the tab bar and corresponding styling.
  • Updated render logic to select a sort comparator (month vs id) and wired sort changes into the Alpine reactive effect to trigger re-renders.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
tools/release-plan-dashboard/public/style.css Extends existing global filter dropdown styling to the new sort dropdown.
tools/release-plan-dashboard/public/index.html Adds filters.sort default and a Release Plans–only sort dropdown in the tab bar.
tools/release-plan-dashboard/public/app.js Introduces sort selection logic and registers sort as a reactive dependency for re-rendering.

Comment thread tools/release-plan-dashboard/public/app.js
Comment thread tools/release-plan-dashboard/public/app.js Outdated
Co-authored-by: Praveen Kuttappan <55455725+praveenkuttappan@users.noreply.github.com>
@praveenkuttappan praveenkuttappan added Release Plan Dashboard API Spec & SDK release process API Spec & SDK library creation, generation, and publishing processes. labels May 7, 2026
}

function sortByReleasePlanId(a, b) {
return (a.releasePlanId || 0) - (b.releasePlanId || 0);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm I don't think this is quite what we want assuming two things:

  1. releasePlanId is a string
  2. we want descending order (largest IDs first)

If (1) is true, any non-numeric strings will cause it to silently fail sorting (because they will end up as NaN). This may be fine if we truly expect IDs to be a stringified number but might as well be safe and avoid implicit casts

If (2) is true, then I think we need to flip a and b here (b - a) instead of (a - b)

I sketched out this playground to show what I mean which is hopefully helpful to clarify

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

Labels

API Spec & SDK release process API Spec & SDK library creation, generation, and publishing processes. Release Plan Dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Release Plan Dashboard: Provide sort and filter capability for the release plan

4 participants