summaryrefslogtreecommitdiff
path: root/SESSION_STATE.md
blob: 4fa43bbc8e13765e0f8799bb3a0b87daf8a778e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Session State

**Current Phase:** Phase 2.5 - Visual Overhaul & Polish
**Goal:** Implement "Glassmorphism" UI and clean up technical debt.

## Current Context
We are addressing critical bugs before proceeding with the visual overhaul.

## Current Issues
1.  **[RESOLVED] Bug 002: Tab State Persistence**
    *   Issue: Tab selection is lost on page reload.
    *   Fix: Implemented URL query param syncing (`?tab=name`) and server-side restoration.
    *   Reference: `issues/bug_002_tab_state.md`.

2.  **[IN PROGRESS] Bug 001: Template Rendering**
    *   Issue: `notes-tab` template error.
    *   Fix: Ensure data passed to `notes-tab` includes `Errors` field.
    *   Reference: `issues/bug_001_template_rendering.md`.

## Immediate Next Steps
1.  **Fix Bug 001 (Template Rendering)**
    *   Create reproduction test `internal/handlers/template_test.go`.
    *   Modify `HandleNotes` (and other tab handlers) in `internal/handlers/tabs.go` to pass a struct with `Errors` field.
    *   Verify fix with test.

2.  **Resume Phase 2.5 (Visual Overhaul)**
    *   Step 1: Foundation (Tailwind Config + Base CSS).

## Active Files
*   `internal/handlers/tabs.go`
*   `web/templates/partials/notes-tab.html`
*   `issues/bug_001_template_rendering.md`