diff --git a/cloud/social_profiles.py b/cloud/social_profiles.py index e472d9f..c75d840 100644 --- a/cloud/social_profiles.py +++ b/cloud/social_profiles.py @@ -80,7 +80,7 @@ async def get_connect_url(username: str) -> str: "redirectUrl": f"{settings.frontend_url}/#/account?connected=1", "redirectButtonText": "Back to OpenShorts", "platforms": CONNECT_PLATFORMS, - "showCalendar": False, # hide the scheduling calendar in the connect page + "showCalendar": True, # keep the scheduling calendar available in the page } async with httpx.AsyncClient(timeout=20) as client: resp = await client.post( diff --git a/dashboard/src/App.jsx b/dashboard/src/App.jsx index f3b99f8..a380677 100644 --- a/dashboard/src/App.jsx +++ b/dashboard/src/App.jsx @@ -360,6 +360,17 @@ function App() { } }; + // Open the Upload-Post white-label page (which includes the scheduling calendar) + // in a new tab, for consulting/managing scheduled posts from the dashboard. + const handleOpenCalendar = async () => { + try { + const { access_url } = await apiJson('/api/social/connect', { method: 'POST' }); + if (access_url) window.open(access_url, '_blank', 'noopener'); + } catch (e) { + alert('Could not open the calendar. Please try again.'); + } + }; + const handleProcess = async (data) => { // Hosted: must be signed in AND on an active plan/trial. Self-host: BYOK keys. if (billingEnabled) { @@ -696,9 +707,14 @@ function App() { fully managed — no API keys required. AI Shorts & dubbing use your own fal.ai / ElevenLabs keys (below). Connect your social accounts to publish directly.

- +
+ + +
) : billingEnabled ? (