Skip to content

fix: sort packages panel list case-insensitively#10168

Merged
mscolnick merged 2 commits into
mainfrom
ms/fix/case-insensitive-package-sort
Jul 15, 2026
Merged

fix: sort packages panel list case-insensitively#10168
mscolnick merged 2 commits into
mainfrom
ms/fix/case-insensitive-package-sort

Conversation

@mscolnick

@mscolnick mscolnick commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

The packages panel rendered packages in the order returned by the backend, which sorts case-sensitively (uppercase before lowercase). This pushed capitalized package names above lowercase ones. Sort the list case-insensitively in the display layer so it is strictly alphabetical regardless of capitalization or package manager.

Closes MO-4893

The packages panel rendered packages in the order returned by the backend, which sorts case-sensitively (uppercase before lowercase). This pushed capitalized package names above lowercase ones. Sort the list case-insensitively in the display layer so it is strictly alphabetical regardless of capitalization or package manager.
Copilot AI review requested due to automatic review settings July 13, 2026 19:17
@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment Jul 13, 2026 7:27pm

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 fixes the ordering of packages in the editor’s Packages panel by ensuring the UI list is sorted case-insensitively, so capitalization differences from backend/package-manager output don’t affect the displayed order.

Changes:

  • Add a memoized, case-insensitive sort for the packages list in the display layer.
  • Render the table rows from the sorted list instead of the backend-provided order.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

1 issue found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="frontend/src/components/editor/chrome/panels/packages-panel.tsx">

<violation number="1" location="frontend/src/components/editor/chrome/panels/packages-panel.tsx:310">
P3: The uppercase/lowercase ordering fix is untested, so the exact regression this PR addresses can return without detection. A focused `PackagesList` test with mixed-case package names would preserve the display-order contract.

(Based on your team's feedback about regression tests for behavior fixes.) [FEEDBACK_USED].</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread frontend/src/components/editor/chrome/panels/packages-panel.tsx Outdated
@mscolnick mscolnick added the bug Something isn't working label Jul 13, 2026
@mscolnick
mscolnick merged commit e88024d into main Jul 15, 2026
32 of 33 checks passed
@mscolnick
mscolnick deleted the ms/fix/case-insensitive-package-sort branch July 15, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants