diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-01-20 11:17:19 -1000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-01-20 11:17:19 -1000 |
| commit | 07ba815e8517ee2d3a5fa531361bbd09bdfcbaa7 (patch) | |
| tree | ca9d9be0f02d5a724a3646f87d4a9f50203249cc /internal/models | |
| parent | 6a59098c3096f5ebd3a61ef5268cbd480b0f1519 (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')
| -rw-r--r-- | internal/models/atom.go | 28 | ||||
| -rw-r--r-- | internal/models/types.go | 11 |
2 files changed, 3 insertions, 36 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) diff --git a/internal/models/types.go b/internal/models/types.go index fab732f..d9e955b 100644 --- a/internal/models/types.go +++ b/internal/models/types.go @@ -17,16 +17,6 @@ type Task struct { CreatedAt time.Time `json:"created_at"` } -// Note represents a note from Obsidian -type Note struct { - Filename string `json:"filename"` - Title string `json:"title"` - Content string `json:"content"` // First 200 chars or full content - Modified time.Time `json:"modified"` - Path string `json:"path"` - Tags []string `json:"tags"` -} - // Meal represents a meal from PlanToEat type Meal struct { ID string `json:"id"` @@ -83,7 +73,6 @@ func (cm *CacheMetadata) IsCacheValid() bool { // DashboardData aggregates all data for the main view type DashboardData struct { Tasks []Task `json:"tasks"` - Notes []Note `json:"notes"` Meals []Meal `json:"meals"` Boards []Board `json:"boards,omitempty"` TrelloTasks []Card `json:"trello_tasks,omitempty"` |
