Mark each import done or in progress
Assisted-by: GLM-5.3 via pi
change xrvrtnrxwnpotylomwnqwzrrzkvployp
commit 5f1db04ff5841951124f86cb6a785e44ae80ad65
author Alpha Chen <alpha@kejadlen.dev>
date
parent nktkzwpr
diff --git a/tasks/import.rake b/tasks/import.rake
index fb96549..3623593 100644
--- a/tasks/import.rake
+++ b/tasks/import.rake
@@ -89,12 +89,15 @@ namespace :import do
 
     # One line per plan, as far along as it is: the fraction counts
     # everything past “planned”, because from “landed” on the card is
-    # on the host — which is the state a glance wants. The rest of the
-    # state is what the next lines say acts on it. The plan names are
-    # the directories', copy-pasteable into PLAN=.
+    # on the host — which is the state a glance wants. The marker is
+    # ✅ once nothing is left for import:execute to carry — every
+    # contact imported or beyond — and ⏳ until then, so it can never
+    # disagree with the next lines below. The plan names are the
+    # directories', copy-pasteable into PLAN=.
     plans.each do |plan|
       done = plan.contacts.size - plan.with_status(nil).size
-      puts "#{plan.dir.basename}  #{done}/#{plan.contacts.size} contacts"
+      marker = ImportTasks::TO_LAND.call(plan) ? "⏳" : "✅"
+      puts "#{marker} #{plan.dir.basename}  #{done}/#{plan.contacts.size} contacts"
     end
 
     puts ""
diff --git a/test/tasks/test_import.rb b/test/tasks/test_import.rb
index 71223ff..60cd55c 100644
--- a/test/tasks/test_import.rb
+++ b/test/tasks/test_import.rb
@@ -27,8 +27,8 @@ class ImportStatusTaskTest < Minitest::Test
 
       out, = run_task(root)
 
-      assert_includes out, "macos-20260901T000000Z  2/2 contacts\n"
-      assert_includes out, "macos-20260916T180412Z  0/1 contacts\n"
+      assert_includes out, "✅ macos-20260901T000000Z  2/2 contacts\n"
+      assert_includes out, "⏳ macos-20260916T180412Z  0/1 contacts\n"
       assert_includes out, "next: import:execute would land macos-20260916T180412Z\n"
       assert_includes out, "next: import:macos:remove would clear macos-20260901T000000Z\n"
     end