[object Object]

← back to Dw Activation Calendar

Default calendar to populated SKU Activation tab on first load (Google tab is empty until OAuth connect)

b585adfe7d873d5dbd02fe7ecabc38fcb238f418 · 2026-06-24 14:13:10 -0700 · Steve

Files touched

Diff

commit b585adfe7d873d5dbd02fe7ecabc38fcb238f418
Author: Steve <steve@designerwallcoverings.com>
Date:   Wed Jun 24 14:13:10 2026 -0700

    Default calendar to populated SKU Activation tab on first load (Google tab is empty until OAuth connect)
---
 public/index.html | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/public/index.html b/public/index.html
index fd7f57f..fd6ac9b 100644
--- a/public/index.html
+++ b/public/index.html
@@ -507,8 +507,12 @@ document.getElementById('next').onclick=()=>{viewMonth=new Date(viewMonth.getFul
 document.getElementById('apply').onclick=load;
 
 /* ======================= boot ======================= */
+// Default to the populated SKU Activation tab so the page shows content on first
+// load. The Google Calendar tab is empty until Steve connects OAuth (gated), so
+// landing there first looks broken. After a successful connect (?connected=1) we
+// land on gcal; a returning visitor's remembered tab still wins.
 const initialTab = (new URLSearchParams(location.search).has('connected')) ? 'gcal'
-  : (localStorage.getItem('dwcal_tab') || 'gcal');
+  : (localStorage.getItem('dwcal_tab') || 'sku');
 setTab(initialTab);
 </script>
 </body>

← 73ec16d Restyle DW Calendar to luxe Figma spec (Cormorant/Inter, plu  ·  back to Dw Activation Calendar  ·  Google Calendar tab: fall back to SKU activation rollout whe a3d864f →