From 597672b6aea59ced375517cf7c03a04b0943e7ce Mon Sep 17 00:00:00 2001 From: Jonas B <97200640+SmiteDeluxe@users.noreply.github.com> Date: Mon, 24 Jun 2024 14:32:10 +0200 Subject: [PATCH] feat: eda history basic setup (#1212) Closes #1211 ### Summary of Changes Fully basic history, with undo, redo and history display where user can skip to any other step. My Miro notes, not summarized for times sake: ![image](https://github.com/Safe-DS/DSL/assets/97200640/04b6b130-29bd-4794-a0c8-7ec9216e1ab8) --- packages/safe-ds-eda/src/App.svelte | 22 +- packages/safe-ds-eda/src/apis/extensionApi.ts | 60 ++ packages/safe-ds-eda/src/apis/historyApi.ts | 714 ++++++++++++++++-- .../safe-ds-eda/src/components/History.svelte | 88 +++ .../safe-ds-eda/src/components/Sidebar.svelte | 85 ++- .../src/components/TableView.svelte | 67 +- .../components/profiling/ProfilingInfo.svelte | 2 +- .../src/components/tabs/TabContent.svelte | 12 +- packages/safe-ds-eda/src/icons/History.svelte | 15 +- packages/safe-ds-eda/src/icons/Undo.svelte | 6 +- packages/safe-ds-eda/src/webviewState.ts | 78 +- packages/safe-ds-eda/types/messaging.ts | 56 +- packages/safe-ds-eda/types/state.ts | 21 +- .../src/extension/eda/apis/runnerApi.ts | 298 +++++++- .../src/extension/eda/edaPanel.ts | 85 +++ 15 files changed, 1435 insertions(+), 174 deletions(-) create mode 100644 packages/safe-ds-eda/src/components/History.svelte diff --git a/packages/safe-ds-eda/src/App.svelte b/packages/safe-ds-eda/src/App.svelte index e254a06d6..3f18b3204 100644 --- a/packages/safe-ds-eda/src/App.svelte +++ b/packages/safe-ds-eda/src/App.svelte @@ -2,7 +2,7 @@ import TableView from './components/TableView.svelte'; import Sidebar from './components/Sidebar.svelte'; import { throttle } from 'lodash'; - import { currentTabIndex, tabs } from './webviewState'; + import { currentTabIndex, tableKey, tabs } from './webviewState'; import TabContent from './components/tabs/TabContent.svelte'; let sidebarWidth = 307; // Initial width of the sidebar in pixels @@ -45,15 +45,19 @@