Repository navigation
[FIX] Logs page bugs - #440
Conversation
1. Switching sources won't reset current page number 2. Fix wording for empty list
WalkthroughUpdates in the logs feature adjust when the empty state message is shown in the table and expand the pagination-reset effect to also react to source changes. No public APIs changed. Changes
Sequence Diagram(s)sequenceDiagram
actor User
participant UI as LogsContent.tsx
participant Hook as useLogs()
participant Table as LogsTable
User->>UI: Change search/severity/source
UI->>Hook: Update params (searchQuery, severityFilter, source)
Hook->>Hook: Effect: if any param changes, reset page to 1
Hook-->>UI: New state (page, filters)
UI->>Table: Render with emptyMessage based on (searchQuery || severityFilter.length < 3)
alt No results
Table-->>User: "No logs match your search criteria" or "No logs found"
else Results present
Table-->>User: Display logs
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (8)**/*.{ts,tsx}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
frontend/src/**/*.{tsx,ts}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
frontend/src/**/*.tsx📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
frontend/src/**/*.{ts,tsx}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
**/*.{tsx,ts}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
frontend/src/**/[A-Z]*.tsx📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
frontend/src/**/use[A-Z]*.ts📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
**/[a-z][a-z0-9-]*.ts📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (2)
Comment |
Summary
Switching sources won't reset current page number
Fix wording for empty list
How did you test this change?
Tested locally.
Summary by CodeRabbit
Bug Fixes
New Features