From 55d9bd043f8ffebd9b4c01bcebd1ec5aa9c6c994 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Fri, 29 May 2026 15:49:44 +0530 Subject: [PATCH] refactor: Inline editor chooser modal content Remove the separate testB component now that the A/B test is over. Co-authored-by: Cursor --- .../migration/EditorChooserModal.svelte | 75 ++++++++++++++++- .../migration/EditorChooserTestB.svelte | 80 ------------------- .../migration/editorChooserActions.ts | 4 - 3 files changed, 73 insertions(+), 86 deletions(-) delete mode 100644 src/lib/components/migration/EditorChooserTestB.svelte diff --git a/src/lib/components/migration/EditorChooserModal.svelte b/src/lib/components/migration/EditorChooserModal.svelte index ee2ed9fc..b4e424ff 100644 --- a/src/lib/components/migration/EditorChooserModal.svelte +++ b/src/lib/components/migration/EditorChooserModal.svelte @@ -1,7 +1,15 @@ - + + + + Try the full Mermaid experience + + Free forever, with Plus features free for 7 days. + + + +
    + {#each features as feature (feature.title)} +
  • + +
    +

    {feature.title}

    +

    {feature.description}

    +
    +
  • + {/each} +
+ +
+ + + + +
+ +
+

Trusted by 5M people and over 200k companies

+
+ {#each trustedLogos as logo (logo.name)} + + {/each} +
+
+ + +
diff --git a/src/lib/components/migration/EditorChooserTestB.svelte b/src/lib/components/migration/EditorChooserTestB.svelte deleted file mode 100644 index 14e423b9..00000000 --- a/src/lib/components/migration/EditorChooserTestB.svelte +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - Try the full Mermaid experience - - Free forever, with Plus features free for 7 days. - - - -
    - {#each features as feature (feature.title)} -
  • - -
    -

    {feature.title}

    -

    {feature.description}

    -
    -
  • - {/each} -
- -
- - - - -
- -
-

Trusted by 5M people and over 200k companies

-
- {#each trustedLogos as logo (logo.name)} - - {/each} -
-
- - -
diff --git a/src/lib/components/migration/editorChooserActions.ts b/src/lib/components/migration/editorChooserActions.ts index b5c28370..07a8241c 100644 --- a/src/lib/components/migration/editorChooserActions.ts +++ b/src/lib/components/migration/editorChooserActions.ts @@ -11,10 +11,6 @@ export interface EditorChooserActions { openMermaidAiLive: (buttonClick: string) => void; } -export interface EditorChooserProps { - actions: EditorChooserActions; -} - export const createEditorChooserActions = (close: () => void): EditorChooserActions => { const log = (buttonClick: string) => { logEvent('chooseEditor', { buttonClick });