Skip to content

Conversation

morishin
Copy link
Collaborator

@morishin morishin commented Aug 1, 2025

Summary

  • Adds desktop notifications when query execution completes (both success and failure)
  • Only shows notifications when the application window is not focused (in background)
  • Includes relevant execution details: runtime and row count for successful queries, error messages for failed queries

Implementation

  • Added IPC communication between renderer and main process when queries complete
  • Used Electron's built-in Notification API for cross-platform desktop notifications
  • Implemented window focus detection to avoid showing notifications when app is active

Test plan

  • Run a query while app is focused - should not show notification
  • Run a query while app is in background - should show appropriate notification
  • Test both successful and failed query scenarios
    • failure
  • Verify notification content includes expected details (runtime, row count, error messages)

🤖 Generated with Claude Code

morishin and others added 3 commits August 1, 2025 11:20
- Send IPC message when query execution completes (success/failure)
- Display notification only when app window is not focused
- Include execution time and row count for successful queries
- Show error message excerpt for failed queries

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@morishin morishin merged commit 5abaaea into master Aug 1, 2025
2 checks passed
@morishin morishin deleted the notification branch August 1, 2025 04:49
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