summaryrefslogtreecommitdiff
path: root/issues/task_001_remove_obsidian.md
blob: c02a7855b2b4469fb400e7b5c4d444c4e27a2848 (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
33
34
35
36
37
# Remove Obsidian Functionality (COMPLETED)

**Description:**
Remove all code related to Obsidian integration to prepare for public server deployment. Obsidian relies on local filesystem access, which is not suitable for a public web server environment.

**Status:**
✅ COMPLETED

**Changes Made:**
1.  **Core Logic:**
    *   Deleted `internal/api/obsidian.go` and `internal/api/obsidian_test.go`.
    *   Removed `ObsidianAPI` interface from `internal/api/interfaces.go`.
    *   Removed `Note` struct from `internal/models/types.go`.
    *   Removed `SourceObsidian` and `NoteToAtom` from `internal/models/atom.go`.

2.  **Configuration:**
    *   Removed `ObsidianVaultPath` and `HasObsidian()` from `internal/config/config.go`.
    *   Removed `OBSIDIAN_VAULT_PATH` from `.env.example`.

3.  **Handlers:**
    *   Removed `obsidianClient` field from `Handler` struct in `internal/handlers/handlers.go`.
    *   Updated `New` function signature.
    *   Removed `HandleNotesTab` and `fetchNotes` methods.
    *   Removed `HandleNotes` from `internal/handlers/tabs.go`.
    *   Removed `obsidian` logic from `aggregateData`.

4.  **UI:**
    *   Removed `web/templates/partials/obsidian-notes.html`.
    *   Removed `web/templates/partials/notes-tab.html`.
    *   Removed "Notes" tab button from `web/templates/index.html`.
    *   Removed `obsidian` color from `tailwind.config.js`.

5.  **Main Entry Point:**
    *   Updated `cmd/dashboard/main.go` (Handled by Implementor).

6.  **Tests:**
    *   Updated `test/acceptance_test.go` and `internal/handlers/handlers_test.go`.