From 7d337dfeeef8e03522c6b979663d918a4d8a32ca Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 11 Feb 2026 04:38:49 +0000 Subject: [PATCH 1/6] Initial plan From 350dd58a250003ee403d4bc0f257a0c543d5012d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 11 Feb 2026 04:51:38 +0000 Subject: [PATCH 2/6] Show helpful loading message when VIP link is unavailable Co-authored-by: Yashb404 <139128977+Yashb404@users.noreply.github.com> --- client/src/components/modal.rs | 82 +++++++++++++++++++++------------- 1 file changed, 52 insertions(+), 30 deletions(-) diff --git a/client/src/components/modal.rs b/client/src/components/modal.rs index 7e9d6d9..ccd5f57 100644 --- a/client/src/components/modal.rs +++ b/client/src/components/modal.rs @@ -134,36 +134,58 @@ pub fn EmbedModal( view! { "Placeholder" }.into_view() }} -
- "Share privately. This bypasses the Guest List and should never be embedded publicly." -
+ {move || { + let link = vip_link.get(); + let vip_link_for_input = vip_link.clone(); + let vip_link_for_button = vip_link_for_click.clone(); + if link.is_empty() { + view! { ++ "🔒 VIP link is being generated..." +
++ "Refresh this page to see your private VIP link once it's ready." +
++ "Share privately. This bypasses the Guest List and should never be embedded publicly." +
+ > + }.into_view() + } + }} // --- SECTION 3: SMART LINK --- From 3e820dbc049fcf7c220c2d221b0e79d6b5c79b6e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 11 Feb 2026 04:53:36 +0000 Subject: [PATCH 3/6] Run cargo fmt to fix formatting Co-authored-by: Yashb404 <139128977+Yashb404@users.noreply.github.com> --- client/src/api.rs | 2 +- client/src/app.rs | 12 +- client/src/components/limit.rs | 10 +- client/src/components/modal.rs | 10 +- client/src/components/protected.rs | 45 ++++---- client/src/components/terminal.rs | 48 ++++---- client/src/lib.rs | 24 ++-- client/src/pages/admin.rs | 70 ++++++++---- client/src/pages/analytics.rs | 125 +++++++++++---------- client/src/pages/blogs.rs | 43 +++---- client/src/pages/create.rs | 170 ++++++++++++++++------------ client/src/pages/dashboard.rs | 142 +++++++++++------------ client/src/pages/docs.rs | 63 ++++++----- client/src/pages/embed.rs | 38 ++++--- client/src/pages/home.rs | 91 +++++++-------- client/src/pages/policy.rs | 53 ++++----- client/src/pages/view.rs | 173 +++++++++++++++++------------ client/src/types.rs | 4 +- 18 files changed, 622 insertions(+), 501 deletions(-) diff --git a/client/src/api.rs b/client/src/api.rs index 4ca6589..5c23c84 100644 --- a/client/src/api.rs +++ b/client/src/api.rs @@ -1,4 +1,4 @@ -// CONFIGURATION HELPERS +// CONFIGURATION HELPERS pub fn api_base() -> &'static str { option_env!("API_URL").unwrap_or("http://localhost:3000") } diff --git a/client/src/app.rs b/client/src/app.rs index 776be65..b0cf2d2 100644 --- a/client/src/app.rs +++ b/client/src/app.rs @@ -1,7 +1,11 @@ +use crate::components::protected::ProtectedRoute; +use crate::pages::{ + admin::AdminPage, analytics::AnalyticsPage, blogs::BlogsPage, create::CreatePage, + dashboard::DashboardPage, docs::DocsPage, embed::EmbedPage, home::LandingPage, + policy::PolicyPage, view::ViewPage, +}; use leptos::*; use leptos_router::*; -use crate::components::protected::ProtectedRoute; -use crate::pages::{home::LandingPage, dashboard::DashboardPage, create::CreatePage, view::ViewPage, embed::EmbedPage, docs::DocsPage, blogs::BlogsPage, analytics::AnalyticsPage, admin::AdminPage, policy::PolicyPage}; #[component] pub fn App() -> impl IntoView { @@ -23,8 +27,8 @@ pub fn App() -> impl IntoView {"Are you the owner?"
- "Request More Compute" - @@ -34,4 +34,4 @@ pub fn LimitReached() -> impl IntoView {