summaryrefslogtreecommitdiff
path: root/cmd/dashboard/main.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 /cmd/dashboard/main.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 'cmd/dashboard/main.go')
-rw-r--r--cmd/dashboard/main.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go
index e52aeb0..6e013e8 100644
--- a/cmd/dashboard/main.go
+++ b/cmd/dashboard/main.go
@@ -40,18 +40,13 @@ func main() {
todoistClient := api.NewTodoistClient(cfg.TodoistAPIKey)
trelloClient := api.NewTrelloClient(cfg.TrelloAPIKey, cfg.TrelloToken)
- var obsidianClient api.ObsidianAPI
- if cfg.HasObsidian() {
- obsidianClient = api.NewObsidianClient(cfg.ObsidianVaultPath)
- }
-
var planToEatClient api.PlanToEatAPI
if cfg.HasPlanToEat() {
planToEatClient = api.NewPlanToEatClient(cfg.PlanToEatAPIKey)
}
// Initialize handlers
- h := handlers.New(db, todoistClient, trelloClient, obsidianClient, planToEatClient, cfg)
+ h := handlers.New(db, todoistClient, trelloClient, planToEatClient, cfg)
tabsHandler := handlers.NewTabsHandler(db, cfg.TemplateDir)
// Set up router
@@ -66,14 +61,12 @@ func main() {
r.Get("/", h.HandleDashboard)
r.Post("/api/refresh", h.HandleRefresh)
r.Get("/api/tasks", h.HandleGetTasks)
- r.Get("/api/notes", h.HandleGetNotes)
r.Get("/api/meals", h.HandleGetMeals)
r.Get("/api/boards", h.HandleGetBoards)
// Tab routes for HTMX (using new TabsHandler)
r.Get("/tabs/tasks", tabsHandler.HandleTasks)
r.Get("/tabs/planning", tabsHandler.HandlePlanning)
- r.Get("/tabs/notes", tabsHandler.HandleNotes)
r.Get("/tabs/meals", tabsHandler.HandleMeals)
r.Post("/tabs/refresh", h.HandleRefreshTab)