Unify organizer navigation and add personal widget dashboard
Build and publish container images / images (push) Successful in 12m38s
Release container images / release (push) Successful in 23s

This commit is contained in:
Anya Tokugawa committed 2026-11-04 00:05:16 +09:00
1 parent a9249009f0
commit 6ba30bc9f4
44 files changed
+843 -54

No files matched your search

+8 -2
View File
@@ -58,6 +58,9 @@ func (s *Server) handleTaskProductivity(w http.ResponseWriter, r *http.Request,
return
}
switch kind {
case "dashboard", "progress":
s.handleDashboardData(w, r, actor, active, kind)
return
case "calendar-capture":
if r.Method == "POST" {
if !s.systemExtensionEnabled(domain, "organizer.calendar") {
@@ -263,6 +266,9 @@ func (s *Server) handleTaskProductivity(w http.ResponseWriter, r *http.Request,
}
func (s *Server) handleTaskProductivityPage(w http.ResponseWriter, r *http.Request, active bool) {
view := strings.TrimPrefix(r.URL.Path, "/v/plan/tasks/")
s.renderWithContext(w, r, "task_productivity.gohtml", map[string]any{"Title": "Tasks", "ProductivityView": view, "TaskWritable": active, "Path": r.URL.Path})
if strings.HasSuffix(r.URL.Path, "/settings") {
http.Redirect(w, r, "/-/sys/config?panel=organizer", http.StatusSeeOther)
return
}
http.Redirect(w, r, "/v/plan/dashboard#activity", http.StatusSeeOther)
}