summaryrefslogtreecommitdiff
path: root/internal/models/atom.go
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-01-20 11:17:19 -1000
committerPeter Stone <thepeterstone@gmail.com>2026-01-20 11:17:19 -1000
commit07ba815e8517ee2d3a5fa531361bbd09bdfcbaa7 (patch)
treeca9d9be0f02d5a724a3646f87d4a9f50203249cc /internal/models/atom.go
parent6a59098c3096f5ebd3a61ef5268cbd480b0f1519 (diff)
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 <noreply@anthropic.com>
Diffstat (limited to 'internal/models/atom.go')
-rw-r--r--internal/models/atom.go28
1 files changed, 3 insertions, 25 deletions
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)