Show shared icon on upcoming task pills
Assisted-by: Claude Opus 4.7 via Claude Code
change lxokxsqmkppuqwlqyqluyknlulyrmvwm
commit 2276e12666a8172268c7cf8aa5f937b1a72fc12b
author Alpha Chen <alpha@kejadlen.dev>
date
parent nmzuoruo
diff --git a/lib/ketchup/snapshots.rb b/lib/ketchup/snapshots.rb
index eb769b8..1a3be7c 100644
--- a/lib/ketchup/snapshots.rb
+++ b/lib/ketchup/snapshots.rb
@@ -267,6 +267,15 @@ module Ketchup
           shared: true
         )
 
+        Series.create_with_first_task(
+          user: User.first(login: "snapshot@example.com"),
+          note: "Family dinner",
+          interval_unit: "week",
+          interval_count: 2,
+          first_due_date: Date.today + 2,
+          shared: true
+        )
+
         entries << snap("dashboard-shared") do
           goto @base
           wait_for(".dashboard")
diff --git a/lib/ketchup/views/dashboard.rb b/lib/ketchup/views/dashboard.rb
index c732e02..fcb6183 100644
--- a/lib/ketchup/views/dashboard.rb
+++ b/lib/ketchup/views/dashboard.rb
@@ -124,7 +124,13 @@ module Ketchup
                     button(type: "submit", title: "Complete", class: "complete-btn",
                            **{ "aria-label": "Complete #{task_name}" }) { "\u2713" }
                   end
-                  a(href: "/series/#{task[:series_id]}", class: "agenda-day-pill") { task_name }
+                  a(href: "/series/#{task[:series_id]}", class: "agenda-day-pill") do
+                    plain task_name
+                    if task[:shared]
+                      whitespace
+                      render SharedIcon.new
+                    end
+                  end
                 end
               end
             end