libredb / libredb/libredb-studio
Schema Diff's generated migration SQL has no copy button
- Dominant language
- TypeScript
- Stars
- 726
- Forks
- 119
- Avg merge
- 7h 47m
- Merged PRs (30d)
- 265
Description
`src/components/SchemaDiff.tsx`'s "SQL Migration" view renders `generateMigrationSQL()`'s output in a bare `
` block with no way to copy it except a manual text selection, confirmed by reading the file. `src/components/copy-button.tsx` is a shared `CopyButton` already used for exactly this in `CodeGenerator.tsx`, `TestDataGenerator.tsx`, `DataImportModal.tsx` and `QueryEditor.tsx`.**Done when:**
- The migration SQL view carries the shared `CopyButton`, matching how the other four call sites already use it.
- No new clipboard code is written for this.---
Curated for Hacktoberfest 2026. Comment to claim the issue before you start so two people do not
work on the same change. A PR must reference the issue and include tests for executable changes;
see [CONTRIBUTING.md](https://github.com/libredb/libredb-studio/blob/main/CONTRIBUTING.md).
Run `bun run test`, never bare `bun test`, so component
tests use their isolated execution groups. The 100% line-coverage gate must stay green.**CI is the merge gate.** If you cannot run a command locally, list that command and the reason
under a `Testing` heading in your PR body; submit the PR, and a maintainer will approve the fork's
workflow run so CI can verify it. You do not need to withdraw correct work because a local tool
is unavailable.If your sandbox can reach the npm registry, `npm install -g bun` is another way to install Bun.
Helm is only needed for the chart tests in the test suite. The repository's devcontainer provides
Bun and Helm and installs the JavaScript and chart dependencies automatically.
Contributor guide
Assessment
This issue has not been assessed yet.