Multi-tab workflow: status indicators, notifications, shortcuts, replay#21
Merged
Conversation
Each open tab now shows the aggregated status of its script's executions: a spinner while running, a check when finished, an error icon on failure. Adds an executions.getScriptStatus(scriptName) action (priority running > error > finished > none) consumed by ScriptTabs. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Notifications: ExecutionNotifier (mounted in MainApp) watches executor status transitions and shows an in-app snackbar when a script finishes or fails, plus a native browser Notification when the app isn't focused. Permission is requested from the Execute click (a user gesture). Keyboard shortcuts: - Ctrl/Cmd+Enter: run the current script (when enabled) - Alt+Left / Alt+Right: switch to the previous/next tab - Alt+W: close the active tab (Ctrl+W and Ctrl+Tab are reserved by the browser, so Alt-based combos are used.) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add a Replay button next to Execute that re-runs the current script with the parameter values of its most recent execution (from parameter history). The button only appears when history exists for the script. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
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
Builds on the in-app tabs (#20) to make working with several scripts at once smoother.
Changes
executions.getScriptStatus(scriptName)action (priority running > error > finished > none).ExecutionNotifier(mounted inMainApp) watches executor status transitions and shows an in-app snackbar when a script finishes or fails, plus a native browser notification when the app isn't focused. Permission requested from the Execute click (a user gesture).Ctrl/Cmd+Enterto run the current script;Alt+←/→to switch tabs;Alt+Wto close the active tab (Ctrl+W/Ctrl+Tabare reserved by the browser).Testing
npm run test:unit-ci— 1007 passed (+23 new:getScriptStatus×8,ScriptTabsrendering ×7,ExecutionNotifier×4, replay ×4).🤖 Generated with Claude Code