Skip to content

feat(inspector): sortable maintainer actions + run-publint-all#166

Merged
antfu merged 1 commit into
mainfrom
antfu/maintainer-actions-sort
May 19, 2026
Merged

feat(inspector): sortable maintainer actions + run-publint-all#166
antfu merged 1 commit into
mainfrom
antfu/maintainer-actions-sort

Conversation

@antfu
Copy link
Copy Markdown
Owner

@antfu antfu commented May 19, 2026

Summary

  • Add sort modes for the Maintainer Actions groups — Depth (default), Migration rate, Latest released — exposed via an OptionSelectGroup and persisted in the URL hash as action-sort. "Latest released" sorts by the consumer package's own publish time.
  • Sort the maintainer filter chips by the number of action groups each maintainer is associated with (desc, alphabetical tie-break) instead of alphabetically.
  • Group header now shows the consumer's update indicator (DisplayVersionWithUpdates with new display-version=false prop) and publish-time badge; clicking the package spec also sets selectedNode so it's highlighted elsewhere.
  • New "Run Publint for all packages" button (visible only on dynamic backends with publint enabled) batches fetchPublintMessages across pending candidates with a (done/total) progress label, and hides itself once everything is cached.

Test plan

  • Open Maintainer Actions in a workspace with multiple groups; switch between Depth / Migration rate / Latest released and confirm reorder + action-sort query param.
  • Confirm maintainer chips are ordered by group count, and filter + sort combine correctly.
  • Confirm group header shows the update arrow + tooltip and publish-time badge for the consumer; clicking the spec highlights the package.
  • On a dev backend with publint: true, click "Run Publint for all packages" and verify progress, cached short-circuit, and that the button disappears once all candidates are publinted.

- Add sort modes (Depth / Migration rate / Latest released) for maintainer
  action groups, persisted via the `action-sort` URL hash param.
- Sort maintainer filter chips by the number of action groups each maintainer
  is associated with (desc), with alphabetical tie-break.
- Show the consumer's version-update indicator and publish-time badge in each
  group header; pass `display-version=false` to reuse VersionWithUpdates
  without duplicating the version already rendered by DisplayPackageSpec.
- Clicking a group's package spec now also sets `selectedNode` so the package
  is highlighted across the rest of the UI.
- Add a "Run Publint for all packages" action that runs publint across the
  filtered, non-workspace, non-private packages with a filepath; visible only
  on dynamic backends with publint enabled, and hidden once every candidate
  has cached results.
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 19, 2026

Open in StackBlitz

npm i https://pkg.pr.new/node-modules-inspector@166
npm i https://pkg.pr.new/node-modules-tools@166

commit: 3f845f0

@antfu antfu merged commit 1305fdb into main May 19, 2026
11 checks passed
@antfu antfu deleted the antfu/maintainer-actions-sort branch May 19, 2026 18:52
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.

1 participant