From 42a4e32daca13b518e64e5821080ff3d6adf0e39 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Mon, 26 Jan 2026 16:49:44 -1000 Subject: Use configured timezone throughout codebase - Add config/timezone.go with timezone utilities: - SetDisplayTimezone(), GetDisplayTimezone() - Now(), Today() - current time/date in display TZ - ParseDateInDisplayTZ(), ToDisplayTZ() - parsing helpers - Initialize timezone at startup in main.go - Update all datetime logic to use configured timezone: - handlers/handlers.go - all time.Now() calls - handlers/timeline.go - date parsing - handlers/timeline_logic.go - now calculation - models/atom.go - ComputeUIFields() - models/timeline.go - ComputeDaySection() - api/plantoeat.go - meal date parsing - api/todoist.go - due date parsing - api/trello.go - due date parsing This ensures all dates/times display correctly regardless of server timezone setting. Co-Authored-By: Claude Opus 4.5 --- issues/004-integrate-terst-org.md | 62 --------------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 issues/004-integrate-terst-org.md (limited to 'issues/004-integrate-terst-org.md') diff --git a/issues/004-integrate-terst-org.md b/issues/004-integrate-terst-org.md deleted file mode 100644 index 9ec79bf..0000000 --- a/issues/004-integrate-terst-org.md +++ /dev/null @@ -1,62 +0,0 @@ -# [FEATURE] Integrate terst.org start page and styling - -## Description -Integrate terst.org start page widgets and visual styling. - -## User Story -As a user, I want the dashboard to incorporate my terst.org start page widgets and match its visual styling for a unified experience. - -## Technical Context -- Two aspects: visual styling + widget integration -- Requires understanding terst.org's current design system and widget architecture -- May need API access or scraping depending on terst.org implementation - -## Test Strategy - -### E2E Test (Red) -``` -1. Load dashboard -2. Assert color scheme matches terst.org (primary colors, fonts) -3. Assert expected widgets render (TBD based on widget inventory) -``` - -## Proposed Approach - -### Phase 1: Visual Styling -1. **Audit terst.org design:** - - Extract color palette (primary, secondary, accent) - - Identify fonts and typography scale - - Note spacing/layout patterns -2. **Update Tailwind config:** - - Add terst.org colors to theme - - Update default styles to match -3. **Apply to existing components** - -### Phase 2: Widget Integration -1. **Inventory terst.org widgets:** - - What widgets exist? (clock, weather, links, etc.) - - How are they implemented? (static HTML, JS, API-backed?) -2. **Integration options:** - - Option A: Embed via iframe (quick but limited) - - Option B: Recreate widgets natively (more work, better integration) - - Option C: API calls to terst.org backend (if available) -3. **Implement priority widgets first** - -## Discovery Required -- [ ] Access terst.org to inventory widgets -- [ ] Extract color palette and design tokens -- [ ] Determine widget data sources - -## Affected Components -- `tailwind.config.js` (theme colors) -- `web/static/css/` (global styles) -- `web/templates/index.html` (widget containers) -- `web/templates/partials/` (new widget partials) -- Potentially `internal/handlers/` (widget data endpoints) - -## Definition of Done -- [ ] Color scheme matches terst.org -- [ ] Typography matches terst.org -- [ ] Priority widgets integrated -- [ ] Responsive layout preserved -- [ ] E2E test verifies styling -- cgit v1.2.3