From b11900064d909f21202d0298de044ade10488298 Mon Sep 17 00:00:00 2001 From: shay <43248357+shayypy@users.noreply.github.com> Date: Mon, 10 Mar 2025 13:43:18 -0500 Subject: [PATCH 1/3] Migration banner --- modules/editor/Editor.tsx | 57 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/modules/editor/Editor.tsx b/modules/editor/Editor.tsx index 35f01680..4fff4680 100644 --- a/modules/editor/Editor.tsx +++ b/modules/editor/Editor.tsx @@ -48,6 +48,21 @@ const JavaScriptWarning = styled.noscript` line-height: 1.375; ` +const MigrateNotice = styled.div` + display: block; + + margin-bottom: 16px; + padding: 0px 16px; + border-radius: 4px; + + border: 2px solid ${({ theme }) => theme.accent.primary}; + background: ${({ theme }) => transparentize(0.75, theme.accent.primary)}; + + color: ${({ theme }) => theme.header.primary}; + font-weight: 500; + line-height: 1.375; +` + export function Editor() { const editorManager = useRequiredContext(EditorManagerContext) @@ -91,6 +106,48 @@ export function Editor() { } /> + +

+ Hey! Discohook is moving to discohook.app. You can view the current + message on the new domain{" "} + { + const search = new URLSearchParams(location.search) + const appUrl = `https://discohook.app/?${search.toString()}` + open(appUrl, "_blank") + }} + > + by clicking here + + . If you can't access it, please{" "} + + let us know + + ! +

+

+ + Read More + {" "} + •{" "} + + Migrate Backups + +

+
spawnBackupsModal()}> Backups From abe376a9e4219dfff95d0bf5fc9d0620538a9dba Mon Sep 17 00:00:00 2001 From: shay <43248357+shayypy@users.noreply.github.com> Date: Mon, 10 Mar 2025 13:46:42 -0500 Subject: [PATCH 2/3] Remove app URL redundancy --- modules/editor/Editor.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/editor/Editor.tsx b/modules/editor/Editor.tsx index 4fff4680..0ea34007 100644 --- a/modules/editor/Editor.tsx +++ b/modules/editor/Editor.tsx @@ -113,9 +113,7 @@ export function Editor() { { - const search = new URLSearchParams(location.search) - const appUrl = `https://discohook.app/?${search.toString()}` - open(appUrl, "_blank") + open(`https://discohook.app/${location.search}`, "_blank") }} > by clicking here From 2c18f965ba16f146cdd13e476409ceeacddb7496 Mon Sep 17 00:00:00 2001 From: shay <43248357+shayypy@users.noreply.github.com> Date: Mon, 10 Mar 2025 13:49:34 -0500 Subject: [PATCH 3/3] Upgrade actions/cache https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5df8fd6c..05c7178b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: check-latest: true - name: Setup cache - uses: actions/cache@v2 + uses: actions/cache@v4.2.0 id: cache with: path: | @@ -57,7 +57,7 @@ jobs: node-version: ${{ matrix.node }} - name: Setup cache - uses: actions/cache@v2 + uses: actions/cache@v4.2.0 with: path: | node_modules @@ -92,7 +92,7 @@ jobs: node-version: ${{ matrix.node }} - name: Setup cache - uses: actions/cache@v2 + uses: actions/cache@v4.2.0 id: cache with: path: | @@ -122,7 +122,7 @@ jobs: node-version: ${{ matrix.node }} - name: Setup cache - uses: actions/cache@v2 + uses: actions/cache@v4.2.0 id: cache with: path: |