Skip to content

feat(reports): unify software search results into single sortable table#202

Merged
simonjcarr merged 1 commit into
mainfrom
feat/software-report-unified-table
Apr 15, 2026
Merged

feat(reports): unify software search results into single sortable table#202
simonjcarr merged 1 commit into
mainfrom
feat/software-report-unified-table

Conversation

@simonjcarr
Copy link
Copy Markdown
Collaborator

Summary

  • Replace per-version tables on the Installed Software search view with a single unified table that includes a new Version column — removes the repeated header rows shown in the screenshot issue.
  • All columns are sortable (Host, OS, Version, Source, Architecture, Last seen). Default sort is Version desc, matching the prior ordering.
  • Version sort reuses the existing compareVersions util (apps/web/lib/version-compare.ts) so semver / RPM epoch / Debian suffix / natural ordering all work correctly (e.g. 3.12.12-3.el10_1.2 sorts above 3.9.25-3.el9_7.2).
  • Summary counts (N hosts with this package, N versions) now derive from the displayed rows, so they reflect the active version filter.

No server-action, schema, or export changes — pure UI refactor of apps/web/app/(dashboard)/reports/software/software-report-client.tsx. The CSV/PDF export route is unaffected (it uses a separate query).

Test plan

  • pnpm run build passes (verified locally)
  • /reports/software → search python3: single table with Version column, default sort Version desc
  • Click each column header: asc/desc toggle, chevron icon updates
  • Version filters (exact / starts with / between) filter rows correctly and summary counts update
  • Empty state renders when no rows match
  • CSV and PDF export still work

🤖 Generated with Claude Code

…able

Replace the per-version tables on the Installed Software search view with a
single unified table that includes a Version column. All columns (Host, OS,
Version, Source, Architecture, Last seen) are now sortable, with version
sort using the existing compareVersions util so semver/RPM/Debian versions
order correctly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@simonjcarr simonjcarr merged commit 5ad70bb into main Apr 15, 2026
8 checks passed
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