Skip to content

feat(workspace): open history in editable console - #2299

Merged
openai0229 merged 1 commit into
mainfrom
feat/2242-open-history-editable-console
Jul 28, 2026
Merged

feat(workspace): open history in editable console#2299
openai0229 merged 1 commit into
mainfrom
feat/2242-open-history-editable-console

Conversation

@openai0229

Copy link
Copy Markdown
Contributor

Related issue

Closes #2242

Summary

Adds an explicit action to open an execution-history record in a new editable SQL console. The temporary console carries over the original SQL, data source, database, schema, database type, and connection metadata while remaining independent from the immutable history record.

The existing row click continues to open the read-only history view. A Lucide open-in-new icon next to the copy action creates the editable draft instead.

Affected surfaces

  • Frontend / Web
  • Backend / API / Storage
  • Database plugin / Driver
  • JCEF / Desktop packaging
  • CI / Build / Release
  • Documentation only

Verification

  • Commands and results:
    • yarn eslint src/components/Output/index.tsx --max-warnings=0 - passed
    • yarn test:i18n --write-source-hashes - passed; validated 25 frontend modules, 2 properties bundles, and 5 READMEs
    • yarn lint - passed
    • yarn build:web:community --app_version=5.3.0 - passed, including configured prebuild tests
    • git diff --check - passed
  • Manual verification: Verified on the local Community runtime that the new action opens an editable temporary SQL tab with the original connection context and does not change the read-only history view.
  • UI evidence: N/A - verified interactively; no screenshot was captured.

Risk and compatibility

  • Public API or stored data: N/A - no API or persisted history contract changes.
  • Database or driver compatibility: N/A - the existing history metadata is copied without database-specific behavior changes.
  • Network, privacy, or security: N/A - no new requests or data exposure paths.
  • Community / Local / Pro boundary: The shared frontend component changes only the history-to-console interaction and does not add edition-specific behavior.
  • Backward compatibility: Existing history row clicks and copy actions are unchanged.

Reviewer map

  • Start here: chat2db-community-client/src/components/Output/index.tsx, especially openHistoryConsole and the new record action.
  • Failure condition: The new action opens a read-only tab, loses the original data source/database/schema binding, or mutates the execution-history record.
  • Rollback or disable path: Revert this PR; the existing read-only history view and copy action remain the fallback workflow.

Contributor declaration

  • I linked the Issue that defines this change.
  • I tested the affected behavior and reported the actual results above.
  • I did not include credentials, private data, or generated build output.
  • I disclosed substantial AI assistance below, or this PR contains no substantial AI-generated code.

AI assistance: Codex implemented and verified the change under maintainer direction.

@openai0229 openai0229 moved this to In Review in Chat2DB Community Jul 28, 2026
@openai0229
openai0229 merged commit 7279bad into main Jul 28, 2026
16 checks passed
@openai0229
openai0229 deleted the feat/2242-open-history-editable-console branch July 28, 2026 03:17
@openai0229 openai0229 moved this from In Review to Done in Chat2DB Community Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Open execution history records as editable SQL consoles

1 participant