Repository navigation
feat(workflow,sql-editor): add DBA sample workflows and enhance pipe/SQL editor UX - #647
Merged
Merged
Conversation
…SQL editor UX - Add 3 practical Database Admin (DBA) sample workflows in workflowSamples.ts: - sample-dba-schema-health-audit (catalog PRIMARY KEY & index coverage audit) - sample-dba-table-retention-maintenance (staged archive-before-purge + ANALYZE/optimize) - sample-dba-ledger-verify-quarantine (staging integrity verify, quarantine & reconciliation) - Fix workflow & auth UX bugs: - Separate capsLock state from DOM inputProps in useCapsLock() - Omit w-full in workflow Select/Input when explicit width utility is passed and allow .canvas-toolbar to wrap cleanly - Guard against self-loops and cyclic connections in WorkflowDesigner onConnect via wouldCreateCycle() - Commit Inspector Pipe name immediately on input change and trim on blur - Track unsaved workflow document changes with an Unsaved badge and beforeunload warning - Enhance Workflow Pipe Editors, Runs/Workflows panels, and SQL Editor UI: - Add DBA/Samples/Scheduled category filter chips and 1-click Run button in WorkflowsPanel - Add Re-run and Open workflow buttons in RunsPanel detail header - Include catalog tags in Palette search filtering - Add Format SQL, Expand/Compact toggle, DBA templates, parameter tokens, createTableIfMissing, and transaction controls to SqlPipeEditor - Add starter JS transform snippets, Expand/Compact toggle, and raw JSON formatter to Inspector - Summarize sink.db.mapped-insert, workflow.sub, and human.gate nodes on canvas - Add view-wide Cmd/Ctrl+S, Cmd/Ctrl+Shift+F, and Cmd/Ctrl+Shift+S shortcuts and 1-click Editor/Results split ratio presets in SqlEditorView - Regenerate test-ID catalog and add unit tests
Contributor
Test IDsAdded (29)
|
Contributor
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: f4f3fd27-1656-401d-a3a0-c3c9fad20490) |
…s and all-dialect tests - Add transform.dedupe (DedupePipe), transform.aggregate (AggregatePipe), and transform.redact (RedactPipe) in packages/workflow-engine - Add dedicated Inspector visual editors, default canvas configs, and PipeNode summaries for the 3 new pipes - Add sample-dba-pii-redact-dedupe-aggregate DBA workflow sample and include all 4 DBA samples in workflow-samples.test.ts - Add all-dialects test suites for SQL workflow pipes (14 SQL dialects in sql.test.ts) and SQL Editor (16 dialects in EditorTabBar.test.tsx) - Regenerate test-ID catalog
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
workflowSamples.ts)sample-dba-schema-health-audit: Catalog PRIMARY KEY & secondary index coverage audit oversqlite_master, severity branching,dba_schema_findingspersistence, and CSV report export.sample-dba-table-retention-maintenance: Multi-stage retention runbook (archive_before_purge→purge_and_analyze,on: 'success') that archives aged rows + backup CSV before transactionalDELETE,ANALYZE, andPRAGMA optimize.sample-dba-ledger-verify-quarantine: Staging ledger verification viatransform.verify, clean ledger promotion + currency reconciliation totals, and rejected-row quarantine table + CSV export.capsLockstate from DOMinputPropsinuseCapsLock()to eliminate React unknown-prop warnings on password inputs..canvas-toolbarselect/input width overrides (controls.tsx,workflow.css,WorkflowDesigner.tsx) so toolbar pickers and stage controls wrap cleanly instead of clipping or overflowing.WorkflowDesigner(wouldCreateCycle()).Pipe nameedits immediately on input change (and trim on blur) soCmd/Ctrl+Snever saves a stale name.Unsavedbadge +beforeunloadwarning).All,DBA & SQL,Samples,Scheduled / Webhook) and 1-click Run button inWorkflowsPanel.RunsPanel, and include catalogtagsinPalettesearch.SqlPipeEditor: add Format SQL, Expand / Compact height toggle, 1-click DBA templates (+ Catalog Audit,+ Row Count Check) and parameter chips (+ {{record.id}},+ {{vars.env}}), plus inlineCreate table automatically if missingandRun statements in a single transactioncheckboxes.Inspector: addtransform.scriptstarter snippet pills (+ Map fields,+ Filter rows,+ Dedupe by ID,+ Group / Rollup), Expand / Compact toggle, and Format JSON in raw config view.PipeNode: summarizesink.db.mapped-insert,workflow.sub, andhuman.gatenodes on the canvas.SqlEditorView: supportCmd/Ctrl+S(Bookmark),Cmd/Ctrl+Shift+F(Format SQL+JS), andCmd/Ctrl+Shift+S(Safe mode) across the view outside Monaco focus, and add 1-click status-bar split ratio presets (Editor 75%,50:50,Results 78%).Verification
npm run test-idscd apps/web && npx tsc --noEmitnpm run lint && npm run lint:securitynpx vitest runon workflow, SQL editor, auth, architecture, naming, and test-ID catalog suites (100 test files, 953 tests passing)Note
Medium Risk
New engine transform pipes and SQL sink options (transactions, auto-create tables) change how workflow data is written and sanitized; client-side cycle blocking and rerun actions affect designer graph integrity and execution triggers.
Overview
Adds
transform.dedupe,transform.aggregate, andtransform.redactto the workflow engine (with rejects port on dedupe), registers them in the default catalog, and wires visual inspectors, pipe summaries, and four DBA sample workflows (schema audit, staged retention, quarantine/reconcile, PII dedupe/rollup).Workflow & SQL UX:
SqlPipeEditorgains format/expand controls, DBA SQL templates, parameter tokens, create-table-if-missing, and transaction toggles; the inspector gets script snippets, expandable editors, raw Format JSON, and live pipe-name updates with an Unsaved badge and unload warning; the designer blocks self-links and cycles; the workflows list adds category filters and Run; runs detail adds Open workflow and Re-run.SQL editor: Status-bar split presets and global Cmd/Ctrl+S / Shift+S / Shift+F shortcuts (outside Monaco).
Auth fix:
useCapsLock()now spreads onlyinputPropssocapsLockis not applied as a DOM attribute on password fields.E2E test IDs and unit tests were extended for the new controls and behaviors.
Reviewed by Cursor Bugbot for commit 9323277. Bugbot is set up for automated code reviews on this repo. Configure here.