your-ai-workflow-firebase-os 1.2.20 → 1.2.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -119,14 +119,19 @@ export function TemplateCalendar({
119
119
  const [userProfile, setUserProfile] = useState<any>(null);
120
120
  const [authReady, setAuthReady] = useState(false);
121
121
 
122
- // 12/24h toggle
122
+ // 12/24h toggle (per-calendar preference)
123
+ const timeFormatKey = `cal_24h_${eventsCollection}`;
123
124
  const [use24Hour, setUse24Hour] = useState(() => {
124
- try { return localStorage.getItem('calendar_use_24h') === 'true'; } catch { return defaultTimeFormat === '24h'; }
125
+ try {
126
+ const stored = localStorage.getItem(timeFormatKey);
127
+ if (stored !== null) return stored === 'true';
128
+ } catch {}
129
+ return defaultTimeFormat === '24h';
125
130
  });
126
131
  const handleToggle24Hour = () => {
127
132
  const next = !use24Hour;
128
133
  setUse24Hour(next);
129
- try { localStorage.setItem('calendar_use_24h', String(next)); } catch {}
134
+ try { localStorage.setItem(timeFormatKey, String(next)); } catch {}
130
135
  };
131
136
 
132
137
  useEffect(() => {
@@ -768,7 +773,7 @@ export function TemplateCalendar({
768
773
  <ConfirmModal
769
774
  isOpen={!!confirmDeleteEvent}
770
775
  title="Confirm Deletion"
771
- message={<>Are you entirely sure you wish to delete <strong>{confirmDeleteEvent?.title}</strong>? This action is permanent.</>}
776
+ message={<>Are you sure you want to delete <strong className="text-foreground block my-0.5 text-left overflow-hidden text-ellipsis whitespace-nowrap max-w-full">{confirmDeleteEvent?.title}</strong> This action is permanent.</>}
772
777
  onConfirm={handleDeleteEvent}
773
778
  onCancel={() => { setConfirmDeleteEvent(null); }}
774
779
  isProcessing={isDeleting}
@@ -279,7 +279,16 @@ export function TemplateTable({
279
279
  <ArrowLeft className="w-4 h-4" /> <span className="hidden sm:inline">Go Back</span>
280
280
  </Link>
281
281
  )}
282
- {isTabMode && <div />}
282
+ {isTabMode && (
283
+ <div className="flex-1 min-w-0">
284
+ <h2 className="text-xl font-extrabold text-foreground tracking-tight truncate">
285
+ {config?.tabTitle || config?.tabName || title}
286
+ </h2>
287
+ <p className="text-[13px] font-medium text-foreground/50 mt-1">
288
+ {tables.length} {tables.length === 1 ? 'table' : 'tables'}
289
+ </p>
290
+ </div>
291
+ )}
283
292
  <div className="flex gap-2 shrink-0">
284
293
  {showPrompt && (
285
294
  <motion.button