summaryrefslogtreecommitdiff
path: root/internal/models
diff options
context:
space:
mode:
Diffstat (limited to 'internal/models')
-rw-r--r--internal/models/atom.go28
-rw-r--r--internal/models/types.go11
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"`