update: removed dashboard and setting from web app#81
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (9)
📝 WalkthroughWalkthroughThe pull request introduces runtime environment detection to conditionally enable app routes (setup, dashboard, settings) based on the execution context. A new Changes
Sequence Diagram(s)sequenceDiagram
participant Browser as Browser Init
participant RT as runtimeTarget
participant App as App.tsx
participant UI as TopMenu/Routes
participant Landing as LandingPage
Browser->>RT: Check window.__TAURI_INTERNALS__
RT->>RT: isTauriApp() returns false (browser env)
Browser->>RT: Check import.meta.env.VITE_ENABLE_APP_ROUTES_IN_BROWSER
RT->>RT: isMarketingWebsite() returns true (flag not set)
Browser->>App: Render with marketingSite=true
App->>UI: StartupDashboardRedirect disabled
App->>UI: /setup, /dashboard, /settings routes hidden
App->>Landing: Render LandingPage
Landing->>Landing: Show DownloadLatestButton instead of /setup link
Landing->>Landing: Render "About" section with AboutLegalContent
UI->>UI: TopMenu displays marketingNavLinks only
Estimated Code Review Effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly Related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
Release Notes
New Features
Refactor