* feat: demo DB seed/regenerate, backup/restore/sync refinements, SSH/SSL polish - Demo SQLite DB: feature-rich seed (12 objects, 500-row audit log) + regenerate action in Settings - Backup/restore: headless-testable core logic, psql -f for plain dumps, sync passes --clean --if-exists - SSH/SSL runtime refinements and connection testing improvements - Data grid: DataTypeIcon component, FK popover, table tree polish - Docs: AGENTS.md/README updates, new screenshots, MIT LICENSE * chore: optimize README screenshots (4.7 MB → 916 KB via pngquant, quality 70-90) * v0.6.0: release workflow, constraint-aware cell editing, pending-cell styling - Bump version to 0.6.0 across package.json, Cargo.toml, tauri.conf.json - Add .github/workflows/release.yml: tag-triggered CI builds macOS (aarch64 + x64), Windows, and Linux installers into a draft GitHub Release - README: installer download table (unsigned note, per-platform files), "how releases are made" section - CellEditor: constraint-aware commit — empty input on nullable columns becomes NULL, NOT NULL text-like types fall back to empty string, all other types blocked with an inline error bubble; replace "Set NULL" checkbox with a NULL row in the FK dropdown / empty enum option - VirtualDataGrid: pending-edit dot → animated pending outline (ring) on staged cells; matching test updates - docs-coverage test: align with rewritten README comparison table
37 lines
1.8 KiB
TypeScript
37 lines
1.8 KiB
TypeScript
import { describe, it, expect } from "vitest";
|
|
// Import the docs as raw strings (vite/client declares `*?raw`); this keeps the
|
|
// test free of a `node:fs` dependency so `tsc` (bun run build) stays clean.
|
|
import agents from "../../AGENTS.md?raw";
|
|
import readme from "../../README.md?raw";
|
|
|
|
describe("v0.6.0 docs coverage", () => {
|
|
it("AGENTS.md marks inline cell editing complete", () => {
|
|
expect(agents).toContain("Inline cell editing");
|
|
expect(agents).toMatch(/Inline cell editing \| ✅/);
|
|
});
|
|
it("AGENTS.md marks indexes + constraints complete", () => {
|
|
expect(agents).toMatch(/Indexes \(per table\) \| ✅/);
|
|
expect(agents).toMatch(/Constraints \(CHECK, UNIQUE beyond PK\/FK\) \| ✅/);
|
|
});
|
|
it("AGENTS.md marks materialized views complete", () => {
|
|
expect(agents).toMatch(/Materialized views \| ✅/);
|
|
});
|
|
it("AGENTS.md marks stored procedures complete", () => {
|
|
expect(agents).toMatch(/Stored procedures \| ✅/);
|
|
});
|
|
it("AGENTS.md marks favorites + recents + status indicator complete", () => {
|
|
expect(agents).toMatch(/Favorites \/ Recent connections \| ✅/);
|
|
expect(agents).toMatch(/Connection status indicator on cards \| ✅/);
|
|
expect(agents).toMatch(/Move-to-folder bulk action \| ✅/);
|
|
});
|
|
it("README declares v0.6.0", () => {
|
|
expect(readme).toContain("0.6.0");
|
|
});
|
|
it("README marks inline editing complete (not Upcoming)", () => {
|
|
// Key Features lists inline editing as a shipped feature
|
|
expect(readme).toMatch(/- \*\*Inline cell editing\*\* —/);
|
|
// comparison-table row for the stage→commit queue carries the ✅ marker
|
|
expect(readme).toMatch(/Changes queue \(stage → commit\)\s*\|[^|]*❌[^|]*\|[^|]*❌[^|]*\|\s*\*\*✅ Queue → Commit All\*\*/);
|
|
expect(readme).not.toMatch(/Inline cell editing.*Upcoming/);
|
|
});
|
|
}); |