From fc9362011831c237cc34a5a27d10a8cf5e0a9c81 Mon Sep 17 00:00:00 2001 From: timmy Date: Sat, 22 Aug 2026 09:44:28 +0000 Subject: [PATCH] feat: persist calendar free windows with Week Ahead (Closes #1258) --- frontend/dashboard.css | 4 ++ frontend/index.html | 5 +- frontend/week-calendar-import.js | 11 ++++- frontend/week-plan.js | 15 ++++-- src/main.py | 8 +++- src/today_store.py | 27 +++++++++++ tests/e2e/test_mobile_week_ahead_release.py | 5 ++ tests/test_week_calendar_import.py | 32 +++++++++++++ tests/test_week_plan.py | 51 +++++++++++++++++++++ tests/test_week_plan_frontend.py | 27 +++++++++++ 10 files changed, 178 insertions(+), 7 deletions(-) diff --git a/frontend/dashboard.css b/frontend/dashboard.css index e83763f..07066fd 100644 --- a/frontend/dashboard.css +++ b/frontend/dashboard.css @@ -391,6 +391,10 @@ textarea { resize: vertical; min-height: 120px; } .week-capacity-day { display:grid; min-width:0; gap:3px; padding:10px; border:1px solid #31577f; border-radius:10px; background:#10233a; overflow-wrap:anywhere; } .week-capacity-day span { color:#bfdbfe; font-weight:700; } .week-capacity-day small { color:#a9bdd3; } +.week-free-times-consent { display:flex; align-items:flex-start; gap:10px; min-width:0; margin:12px 0; padding:10px; border:1px solid #31577f; border-radius:10px; } +.week-free-times-consent input { flex:0 0 44px; width:44px; margin:0; } +.week-free-times-consent span { display:grid; min-width:0; gap:4px; overflow-wrap:anywhere; } +.week-free-times-consent small { color:#a9bdd3; } #apply-week-capacities { width:100%; min-height:48px; position:sticky; bottom:0; } .week-availability-editor { margin:12px 0; padding:12px; border:1px solid #31577f; border-radius:12px; background:#10233a; } #open-week-availability { min-height:44px; } diff --git a/frontend/index.html b/frontend/index.html index 9203d8d..964927b 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -578,13 +578,16 @@