feat: improve drafts and diffs (#2534)

* feat: improve drafts and diffs

* feat: add scripts diff button

* fix: remove diff drawer in scripts/add

* fix: nits

* feat: diffs for flows and apps w/ deep comparison

* fix: flow preview buttons height

* fix: use ordered json stringify

* fix: code view

* fix: temp flow diffs

* fix: flow diffs merge conflict
This commit is contained in:
HugoCasa
2023-11-04 08:45:03 +01:00
committed by GitHub
parent 543fae77a7
commit 3bfc2c81d2
31 changed files with 1140 additions and 256 deletions

View File

@@ -2,7 +2,6 @@
import { insertNewGridItem, appComponentFromType } from '$lib/components/apps/editor/appUtils'
import type { AppComponent, TypedComponent } from '$lib/components/apps/editor/component'
import type { AppViewerContext, AppEditorContext } from '$lib/components/apps/types'
import { dirtyStore } from '$lib/components/common/confirmationModal/dirtyStore'
import { push } from '$lib/history'
import { getContext } from 'svelte'
import Tutorial from '../Tutorial.svelte'
@@ -31,8 +30,6 @@
function addComponent(appComponentType: TypedComponent['type']): void {
push(history, $app)
$dirtyStore = true
const id = insertNewGridItem(
$app,
appComponentFromType(appComponentType) as (id: string) => AppComponent,

View File

@@ -2,7 +2,6 @@
import { insertNewGridItem, appComponentFromType } from '$lib/components/apps/editor/appUtils'
import type { AppComponent } from '$lib/components/apps/editor/component'
import type { AppViewerContext, AppEditorContext } from '$lib/components/apps/types'
import { dirtyStore } from '$lib/components/common/confirmationModal/dirtyStore'
import { push } from '$lib/history'
import { getContext } from 'svelte'
import Tutorial from '../Tutorial.svelte'
@@ -24,8 +23,6 @@
function addComponent(): void {
push(history, $app)
$dirtyStore = true
const id = insertNewGridItem(
$app,
appComponentFromType('textcomponent') as (id: string) => AppComponent,