Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(desktop/setup): improve waiting display
Elian Doran46b478ec1740
diff --git a/apps/client/src/setup.css b/apps/client/src/setup.cssindex 767fe50c3c..cf17b810b2 100644--- a/apps/client/src/setup.css+++ b/apps/client/src/setup.css@@ -305,11 +305,25 @@ body.setup {}.page.sync-from-desktop {- &> main {- flex-direction: row !important;+ .card-columns {+ display: flex;+ flex-direction: row;gap: 1.5rem;}+ .sync-from-desktop-waiting {+ margin-top: 2rem;+ text-align: center;++ .main {+ font-size: 1.35em;+ }++ .subtle {+ color: var(--muted-text-color);+ }+ }+.ip-addresses {min-width: 250px;user-select: text;diff --git a/apps/client/src/setup.tsx b/apps/client/src/setup.tsxindex 916671e1b5..0473c8eba8 100644--- a/apps/client/src/setup.tsx+++ b/apps/client/src/setup.tsx@@ -363,16 +363,14 @@ function SyncFromDesktop({ setState }: { setState: (state: State) => void }) {title={t("setup.sync-from-desktop")}illustration={<SyncIllustration targetDevice="desktop" />}onBack={() => setState("firstOptions")}- footer={<Button icon="bx-loader bx-spin" text={t("setup.sync-from-desktop-waiting")} kind="primary" disabled />}>+ <div class="card-columns"><Card heading="On the other device"><CardSection>1. {t("setup.sync-from-desktop-step1")}</CardSection><CardSection>2. {t("setup.sync-from-desktop-step2")}</CardSection><CardSection>3. {t("setup.sync-from-desktop-step3")}</CardSection><CardSection>4. {t("setup.sync-from-desktop-step4", { protocol: location.protocol, port: location.port })}</CardSection><CardSection>5. {t("setup.sync-from-desktop-step5")}</CardSection>-- {t("setup.sync-from-desktop-final")}</Card>{networkAddresses.length > 0 && (@@ -382,6 +380,12 @@ function SyncFromDesktop({ setState }: { setState: (state: State) => void }) {))}</Card>)}+ </div>++ <div class="sync-from-desktop-waiting">+ <div class="main"><Icon icon="bx bx-loader-circle bx-spin" />{" "} {t("setup.sync-from-desktop-waiting")}</div>+ <div class="subtle">{t("setup.sync-from-desktop-warning")}</div>+ </div></SetupPage>);}diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.jsonindex dafbb6602c..2c8528d486 100644--- a/apps/client/src/translations/en/translation.json+++ b/apps/client/src/translations/en/translation.json@@ -2266,7 +2266,7 @@"sync-from-desktop-step3": "Click on Sync category in the note tree.","sync-from-desktop-step4": "Change server instance address to point to this device: \"{{protocol}}//<hostname>:{{- port}}\" and click Save.","sync-from-desktop-step5": "Click \"Test sync\" button to verify connection is successful.",- "sync-from-desktop-final": "Once you've completed these steps, you can proceed to the next step.",+ "sync-from-desktop-warning": "Make sure both devices are on the same network.","sync-from-desktop-waiting": "Waiting for connection...","advanced-options": "Advanced options","sync-failed": "Failed to sync: {{message}}",