Skip to content

feat(web-console): dynamic query status indicators, run button per query, run all queries in tab#437

Merged
bluestreak01 merged 60 commits intomainfrom
feat/multiple-run-buttons
Jul 3, 2025
Merged

feat(web-console): dynamic query status indicators, run button per query, run all queries in tab#437
bluestreak01 merged 60 commits intomainfrom
feat/multiple-run-buttons

Conversation

@emrberk
Copy link
Copy Markdown
Collaborator

@emrberk emrberk commented May 29, 2025

  • Extracts all queries in a tab and creates Run buttons indicating the status of queries
  • Adds an option to get query plan for queries from right-click dropdown in run buttons
  • Tracks the cursor position to show the latest execution information in the query log
  • Keeps error markers and line decorations per query, instead of keeping a single marker for editor
  • Tracks notifications per tab, clears/expands the information in the query log per tab
  • Handles multiple queries starting from the same line, by providing query picker
  • Adds support for running multiple selected queries
  • Keeps track of selection results and highlights selected query status with slight green/red background
  • Provides an option to run all queries in a tab
  • Provides an option to stop running all queries in a tab in case of a failure

@emrberk emrberk marked this pull request as ready for review June 12, 2025 15:47
@emrberk emrberk changed the title feat(web-console): individual run button for each query feat(web-console): multiple run buttons with dynamic error indicators Jun 13, 2025
@emrberk emrberk changed the title feat(web-console): multiple run buttons with dynamic error indicators feat(web-console): track status of multiple queries, provide options for running all queries in a tab and running multiple queries from selection at once, add get query plan option Jul 2, 2025
@emrberk emrberk changed the title feat(web-console): track status of multiple queries, provide options for running all queries in a tab and running multiple queries from selection at once, add get query plan option feat(web-console): dynamic query status indicators, run button per query, run all queries in tab Jul 2, 2025
@bluestreak01 bluestreak01 requested a review from Copilot July 3, 2025 01:52
bluestreak01
bluestreak01 previously approved these changes Jul 3, 2025
Copy link
Copy Markdown
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 PR adds per-query run controls, dynamic status indicators, and script execution features in the web console editor, along with query-specific notifications and logging improvements.

  • Introduces new action types, state shape, and selectors to track query notifications and execution state per buffer.
  • Adds UI components (ButtonBar, QueryDropdown, LoadingNotification) and integrates run/explain buttons for individual queries and whole-script execution.
  • Extends the Monaco editor helpers to detect, run, and highlight multiple queries, including selections and error ranges.

Reviewed Changes

Copilot reviewed 34 out of 69 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
packages/web-console/src/store/Query/types.ts Expanded QueryStateShape, added new types (RunningType, QueryKey, QueriesToRun).
packages/web-console/src/store/Query/selectors.ts New selectors for queryNotifications, activeNotification, queriesToRun.
packages/web-console/src/store/Query/reducers.ts Refactored notification handling, per-buffer storage, and running enum.
packages/web-console/src/scenes/Schema/VirtualTables/index.tsx Switched from dispatching notifications to toasts for schema actions; removed user feedback on column errors.
packages/web-console/src/scenes/Notifications/index.tsx Scoped notifications per buffer, added clear-per-buffer callback.
packages/web-console/src/scenes/Editor/Monaco/utils.ts Massive updates to query parsing/utilities for multi-query support.
packages/web-console/src/scenes/Editor/ButtonBar/index.tsx New ButtonBar component for run controls with dropdown options.
Files not reviewed (1)
  • .pnp.cjs: Language not supported
Comments suppressed due to low confidence (1)

packages/web-console/src/theme/index.ts:47

  • [nitpick] The new color key greenDarker could be inconsistent with other naming (e.g., greenDark). Verify that naming conventions for shade modifiers are consistent across the theme.
  greenDarker: "#00aa3b",

@bluestreak01 bluestreak01 merged commit 4b19001 into main Jul 3, 2025
4 checks passed
@bluestreak01 bluestreak01 deleted the feat/multiple-run-buttons branch July 3, 2025 11:46
Vaibhav91one pushed a commit to Vaibhav91one/ui that referenced this pull request Oct 28, 2025
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.

3 participants