From 2146b09c29132e873ad5b5747b70fe33cb1057b1 Mon Sep 17 00:00:00 2001 From: davidmonterocrespo24 Date: Fri, 22 May 2026 19:39:10 -0300 Subject: [PATCH] feat(desktop): hide header strip, splash screen, native locale switcher MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three QoL fixes for the Tauri shell: 1. Hide the entire AppHeader strip in VITE_DESKTOP, not just the marketing nav. The previous gate left the black bar painting over the editor with the brand + auto-save + share + auth slot, all of which are irrelevant in desktop (cloud Pro features, license is handled by DesktopWelcomePage, the title bar already says "Velxio Desktop"). Return null at the top so the editor takes the full window height. 2. Splash screen during sidecar boot + Monaco hydration. Cold launch was a 3-8 s black window — now there's an inline SVG logo, "Velxio" wordmark, slogan, animated spinner, and a "Starting local backend…" caption. Lives in index.html as a fixed-position overlay with display:none by default; the inline script reveals it only when `window.__TAURI__` is present, so web users never see it. main.tsx fades it out (250 ms ease-out) after two animation frames — guarantees React's first paint has committed before the handoff, no black flash. Self-contained: inline styles, inline SVG, inline CSS keyframes, zero external requests. 3. Native locale switcher under View → Language. Emits `velxio://menu` with action='set-locale' + the locale code; the desktop/menu.ts handler navigates via history.pushState + popstate so React Router picks it up without a hard reload (Monaco + simulator state preserved). Locale list mirrors i18n/config.ts::LOCALES. Co-Authored-By: Claude Opus 4.7 (1M context) --- frontend/index.html | 34 ++++++++++++++++++ frontend/src/components/layout/AppHeader.tsx | 12 +++++++ frontend/src/desktop/menu.ts | 37 ++++++++++++++++++-- frontend/src/main.tsx | 17 +++++++++ 4 files changed, 97 insertions(+), 3 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index ee5d5e43..2381f26b 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -205,6 +205,40 @@ #root-seo { visibility: hidden; position: absolute; pointer-events: none; } + + +