console: day-only dates in the sign-in methods table (social sign-in 1)
Co-Authored-By: GPT-6 Astra <noreply@openai.com>
internal/console/server.go+1 −0internal/console/settings_methods_test.go+3 −3internal/console/templates/settings.html+2 −2
Intent
<task-notification> <task-id>b259ewr5r</task-id> <tool-use-id>toolu_017iLRRkG3agB5b9je4g8Rw7</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/1730ddc5-7bb6-4ebb-ab9b-85efe2e437e3/tasks/b259ewr5r.output</output-file> <status>completed</status> <summary>Background command "Close Task 4; run Astra on Task 5" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>a487759202aa3b6ca</task-id> <tool-use-id>toolu_0152T2AugMxi6PhoWMCtCFvu</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/1730ddc5-7bb6-4ebb-ab9b-85efe2e437e3/tasks/a487759202aa3b6ca.output</output-file> <status>completed</status> <summary>Agent "Review Task 5 (spec + quality)" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>**Spec verdict:** Compliant. Everything the brief asks for is there. The controller's 390px ruling is met: the table has `class="methods"` and sits inside `.tablewrap`, and the nowrap rule for the two date cells is in `layout.html:281`. Tests cover both the class and the rule, and the screenshots show the dates staying on one line while the table scrolls sideways. **Quality verdict:** Approved. **Critical/Important findings:** none. There are four Minor notes: - A method of an unknown kind is skipped without any log line (`authcli.go:1745`). - The tests match exact whitespace and exact CSS text, so any reformatting will break them. - The report says the tests check row order, but none does. - The fixture runs the migration a second time and has no comment saying why. The full review is in `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-social-signin/.superpowers/sdd/2026-11-02-console-social-signin-1-methods/task-5-review.md`.</result> <usage><subagent_tokens>57432</subagent_tokens><tool_uses>9</tool_uses><duration_ms>92927</duration_ms></usage> </task-notification>
Attributed to this commit: 6.07 g CO₂e (737,631 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-console-social-signin, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/internal/console/server.go b/internal/console/server.go| index d656f6044..9bffd5743 100644 |
| --- a/internal/console/server.go |
| +++ b/internal/console/server.go |
| @@ -76,6 +76,7 @@ var tmplFS embed.FS |
| var templates = template.Must(template.New("").Funcs(template.FuncMap{ |
| "fmtTime": func(t time.Time) string { return t.UTC().Format("2006-01-02 15:04 UTC") }, |
| + "fmtDay": func(t time.Time) string { return t.UTC().Format("2 Jan 2006") }, |
| // billingText is a billing page string (billingpage_copy.go). |
| "billingText": func(key string) string { return billingCopy[key] }, |
| // alertText is an Alerts page or alert door string (alertpages.go). |
diff --git a/internal/console/settings_methods_test.go b/internal/console/settings_methods_test.go| index e21a84d70..4fc94f933 100644 |
| --- a/internal/console/settings_methods_test.go |
| +++ b/internal/console/settings_methods_test.go |
| @@ -55,7 +55,7 @@ func TestSettingsListsMethods(t *testing.T) { |
| if _, _, err := fx.st.ResolveSignIn(MethodKeymail, "a@example.test", added); err != nil { |
| t.Fatal(err) |
| } |
| - used := added.Add(time.Hour) |
| + used := time.Date(2026, 11, 4, 0, 30, 0, 0, time.FixedZone("UTC+2", 2*60*60)) |
| if _, _, err := fx.st.ResolveSignIn(MethodKeymail, "a@example.test", used); err != nil { |
| t.Fatal(err) |
| } |
| @@ -65,8 +65,8 @@ func TestSettingsListsMethods(t *testing.T) { |
| copyText("methods.kind_email"), copyText("methods.kind_keymail"), |
| copyText("methods.col_method"), copyText("methods.col_identity"), |
| copyText("methods.col_added"), copyText("methods.col_used"), |
| - "<td>a@example.test</td>", "2026-11-01 09:00 UTC", |
| - "2026-11-02 10:00 UTC", "2026-11-02 11:00 UTC", |
| + "<td>a@example.test</td>", "<td>1 Nov 2026</td>", |
| + "<td>2 Nov 2026</td>", "<td>3 Nov 2026</td>", |
| } { |
| if !strings.Contains(section, want) { |
| t.Errorf("methods section missing %q", want) |
diff --git a/internal/console/templates/settings.html b/internal/console/templates/settings.html| index d3fef7f96..f8bd58c10 100644 |
| --- a/internal/console/templates/settings.html |
| +++ b/internal/console/templates/settings.html |
| @@ -16,8 +16,8 @@ |
| <tr> |
| <td>{{.Kind}}</td> |
| <td>{{.Identity}}</td> |
| - <td>{{fmtTime .AddedAt}}</td> |
| - <td>{{if .LastUsed.IsZero}}{{$.MethodsText "never_used"}}{{else}}{{fmtTime .LastUsed}}{{end}}</td> |
| + <td>{{fmtDay .AddedAt}}</td> |
| + <td>{{if .LastUsed.IsZero}}{{$.MethodsText "never_used"}}{{else}}{{fmtDay .LastUsed}}{{end}}</td> |
| </tr> |
| {{end}} |
| </table> |