From 07ba815e8517ee2d3a5fa531361bbd09bdfcbaa7 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Tue, 20 Jan 2026 11:17:19 -1000 Subject: Remove Obsidian integration for public server deployment Obsidian relied on local filesystem access which is incompatible with public server deployment. This removes all Obsidian-related code including: - API client and interface - Store layer methods (SaveNotes, GetNotes, SearchNotes) - Handler methods and routes - UI tab and templates - Configuration fields - Related tests Co-Authored-By: Claude Opus 4.5 --- internal/models/atom.go | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) (limited to 'internal/models/atom.go') diff --git a/internal/models/atom.go b/internal/models/atom.go index 47695d9..fe40962 100644 --- a/internal/models/atom.go +++ b/internal/models/atom.go @@ -5,10 +5,9 @@ import "time" type AtomSource string const ( - SourceTrello AtomSource = "trello" - SourceTodoist AtomSource = "todoist" - SourceObsidian AtomSource = "obsidian" - SourceMeal AtomSource = "plantoeat" + SourceTrello AtomSource = "trello" + SourceTodoist AtomSource = "todoist" + SourceMeal AtomSource = "plantoeat" ) type AtomType string @@ -92,27 +91,6 @@ func CardToAtom(c Card) Atom { } } -// NoteToAtom converts an Obsidian Note to an Atom -func NoteToAtom(n Note) Atom { - // Notes don't have priority, default to low (1) - priority := 1 - - return Atom{ - ID: n.Path, // Use path as unique ID - Title: n.Title, - Description: n.Content, - Source: SourceObsidian, - Type: TypeNote, - URL: "", // Obsidian notes don't have URLs - DueDate: nil, // Notes typically don't have due dates - CreatedAt: n.Modified, // Use modified time as created time - Priority: priority, - SourceIcon: "📝", // Memo emoji for notes - ColorClass: "border-purple-500", - Raw: n, - } -} - // MealToAtom converts a PlanToEat Meal to an Atom func MealToAtom(m Meal) Atom { // Meals don't have priority, default to low (1) -- cgit v1.2.3