Open
Conversation
…trics Adds a stats panel (Ctrl+Shift+S) showing session and all-time query statistics including total queries, success rate, min/max/avg execution times. The status bar also shows live session query count and average time after the first query is executed. Closes #38 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Run cargo fmt for consistent code formatting. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ctrl+Shift+Sshowing session and all-time query execution metricsImplementation Details
src/ui/app.rsStatsPanelvariant to theFocusenumQueryStatsstruct withrecord_query(),avg_time_ms(),success_rate(), andsession_avg_time_ms()methodsquery_statsandstats_scrollfields toApphandle_stats_input()for panel navigationexecute_query()flowCtrl+Shift+Skeyboard shortcut to open stats panelsrc/ui/components.rsdraw_stats_panel()function rendering a centered overlay with session and all-time statisticsdraw()to render stats panel when focuseddraw_status_bar()to show session query count and average timeCtrl+Shift+Sto help overlayTest plan
cargo buildcompiles without errorscargo test- all 228 tests passCloses #38
🤖 Generated with Claude Code