Skip to content

feat(frontend): apply / discard staging bar - #1995

Merged
ZhuchkaTriplesix merged 1 commit into
epic/tauri-migrationfrom
issue/1891-staging-apply-discard-bar
Nov 15, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
epic/tauri-migrationfrom
issue/1891-staging-apply-discard-bar

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • Staging toolbar above the result grid: Add/Delete row, pending badge, Revert All, Save Changes
  • New db_apply_staging IPC rebuilds a Rust StagingBuffer from the frontend snapshot and applies in a transaction (SQLite / Postgres / MySQL)
  • Table Data view sets connection/table/PK target; successful Save reloads the grid

Depends on #1994 (grid dirty markers).

Test plan

  • pnpm exec vitest run src/staging src/stores/gridStaging.test.ts
  • pnpm exec vue-tsc --noEmit
  • cargo test --manifest-path apps/tauri/src-tauri/Cargo.toml --lib
  • Open a table with a PK, edit a cell → Revert restores; Save persists and refreshes
  • Save without PK stays disabled with tooltip

Closes #1891

@github-actions github-actions Bot added frontend Theme parser epic label: frontend ui User interface components and widgets data-grid Interactive data grid, cell editor, filtering, groupings P2 Medium priority / Parity & Refactoring tauri Tauri 2 / apps/tauri migration track labels Nov 15, 2026
@github-actions github-actions Bot added this to the Tauri migration milestone Nov 15, 2026
Add GridStagingToolbar (revert + save), db_apply_staging command that
rebuilds the Rust buffer from a TS snapshot, and table-target wiring so
Save refreshes Data after a successful transaction.

Closes #1891
@ZhuchkaTriplesix
ZhuchkaTriplesix force-pushed the issue/1891-staging-apply-discard-bar branch from 9d1f2dc to 56607bd Compare November 15, 2026 14:27
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 07d9d3d into epic/tauri-migration Nov 15, 2026
3 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1891-staging-apply-discard-bar branch November 15, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data-grid Interactive data grid, cell editor, filtering, groupings frontend Theme parser epic label: frontend P2 Medium priority / Parity & Refactoring tauri Tauri 2 / apps/tauri migration track ui User interface components and widgets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant