Skip to content

fix: stabilize log category sorting in settings logs#526

Merged
everpcpc merged 1 commit intomainfrom
codex/fix-log-category-db-order
Feb 20, 2026
Merged

fix: stabilize log category sorting in settings logs#526
everpcpc merged 1 commit intomainfrom
codex/fix-log-category-db-order

Conversation

@everpcpc
Copy link
Copy Markdown
Owner

Summary

  • Move log category count sorting to database query with deterministic ordering: count DESC, category ASC.
  • Change LogStore.categoryCounts to return an ordered CategoryCount array instead of a dictionary.
  • Simplify SettingsLogsView to consume ordered category counts directly and remove redundant UI-side sorting wrapper.

Testing

  • make format
  • make build-macos

Move category count ordering into LogStore so equal-count categories are sorted deterministically by category name.

Return an ordered CategoryCount array instead of a dictionary, and simplify SettingsLogsView to consume the ordered result directly.
@everpcpc everpcpc merged commit 6544467 into main Feb 20, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/fix-log-category-db-order branch February 20, 2026 10:35
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