From 0373c8571ba1821c90488d56b115818d46164576 Mon Sep 17 00:00:00 2001
From: "juancarlos.cavero"
Date: Thu, 16 Jul 2026 19:26:49 +0200
Subject: [PATCH] feat(social): keep scheduling calendar + add Content calendar
button in dashboard
- revert showCalendar to true (calendar stays available in the white-label page)
- add a 'Content calendar' button (opens the Upload-Post page in a new tab) so users
can consult/manage scheduled posts from the dashboard
---
cloud/social_profiles.py | 2 +-
dashboard/src/App.jsx | 22 +++++++++++++++++++---
2 files changed, 20 insertions(+), 4 deletions(-)
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.