Skip to content

Comments

feat: add pause and clear#15

Merged
mickamy merged 1 commit intomainfrom
feature/pause
Feb 21, 2026
Merged

feat: add pause and clear#15
mickamy merged 1 commit intomainfrom
feature/pause

Conversation

@mickamy
Copy link
Owner

@mickamy mickamy commented Feb 21, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 21, 2026 03:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds pause and clear functionality to both the web UI and TUI (terminal UI) interfaces of sql-tap. The pause feature allows users to temporarily stop receiving new query events while continuing to analyze existing ones, and the clear feature enables users to reset the event list.

Changes:

  • Added pause and clear control buttons to the web interface with visual feedback when paused
  • Implemented keyboard shortcuts (p for pause, ctrl+l for clear) in the TUI
  • Added render debouncing with requestAnimationFrame to optimize web UI performance during rapid updates

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
web/static/style.css Added CSS styles for control buttons (.ctrl-btn) with hover and active states
web/static/index.html Added pause and clear buttons in a control-group container
web/static/app.js Implemented pause/clear functions, added paused state variable, render debouncing with requestAnimationFrame, and paused indicator in events view
tui/model.go Added paused state field, pause toggle (p key), clear function (ctrl+l), paused indicator in footer, and event filtering when paused
tui/list.go Added paused indicator to title display

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mickamy mickamy merged commit 65a7d6f into main Feb 21, 2026
11 checks passed
@mickamy mickamy deleted the feature/pause branch February 21, 2026 03:24
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