Skip to content

feat(task-list): number tasks 1-N in UI for voice targeting - #679

Merged
sonichi merged 1 commit into
mainfrom
feat/number-tasks-in-ui
May 14, 2026
Merged

sonichi merged 1 commit into
mainfrom
feat/number-tasks-in-ui

Conversation

@sonichi

@sonichi sonichi commented May 14, 2026

Copy link
Copy Markdown
Owner

Summary

Adds visible 1. / 2. / 3. prefix to each row in the dashboard task list. Matches the 1-based taskIndex param toggle_tasks accepts (from #674) so "expand task 3" is unambiguous to both Chi and the model.

Why

Chi 2026-05-14 01:26 PT: per-task expand was hard to test because "the first task" was ambiguous from the user's POV. Numbering makes the target visible.

What this is NOT

Test plan

  • tsc clean
  • visual: dashboard shows 1. [Voice] ..., 2. [Discord] ... rows
  • voice: "expand task 3" → task 3 gets a Hide ▾ pill

🤖 Generated with Claude Code

Adds visible numeric prefix to each task row in the dashboard task
list. Matches the 1-based taskIndex param the toggle_tasks tool
accepts, so when the user says "expand task 3" they can see exactly
which task that is.

Numbers are display-order based (newest first, filtered same as
renderTasks) — the same sequence the toggle_tasks handler uses.

Per Chi 2026-05-14 01:26 PT: numbering makes per-task expand targets
unambiguous. Does NOT include the exclusivity change from PR #678
(closed unmerged) — expand:N stays additive.
@sonichi
sonichi merged commit 35419eb into main May 14, 2026
1 check passed
@sonichi
sonichi deleted the feat/number-tasks-in-ui branch May 14, 2026 01:31
sonichi added a commit that referenced this pull request May 14, 2026
…-block (#680)

#679 shipped numbering but it was too muted to notice visually
(#6b7a90 / 14px / normal weight against the dark bg). Chi reported
the span EXISTS in DOM via DevTools but doesn't see it in UI.

Tweaks: #9aa8c0 (lighter slate) / 15px / 600 weight / display inline-block.
Same min-width treatment, still left-aligned in the flex row.
sonichi added a commit that referenced this pull request May 14, 2026
…681)

Earlier attempts (PR #679 numbering, #680 visibility bump) shipped a
separate <span class="task-num"> as a flex item. DevTools confirmed:
all 30 .task-num elements had zero width despite min-width:28px,
flex-shrink:0, and content "1.". Parent was correctly flex.

The flex layout was collapsing the span — likely interaction between
.task-text's flex:1 (flex-basis:0) and min-content sizing on the
ancestor. Adding !important wider styles didn't help — Chi reported
no yellow box appeared.

Sidestep entirely: prepend the index INTO .task-text's displayText.
Same visual effect (`1. [Voice] ...`), one less layout puzzle. CSS
rule for .task-num and the standalone span both removed.
liususan091219 pushed a commit to liususan091219/sutando-fork that referenced this pull request May 28, 2026
)

Adds visible numeric prefix to each task row in the dashboard task
list. Matches the 1-based taskIndex param the toggle_tasks tool
accepts, so when the user says "expand task 3" they can see exactly
which task that is.

Numbers are display-order based (newest first, filtered same as
renderTasks) — the same sequence the toggle_tasks handler uses.

Per Chi 2026-05-14 01:26 PT: numbering makes per-task expand targets
unambiguous. Does NOT include the exclusivity change from PR sonichi#678
(closed unmerged) — expand:N stays additive.
liususan091219 pushed a commit to liususan091219/sutando-fork that referenced this pull request May 28, 2026
…-block (sonichi#680)

sonichi#679 shipped numbering but it was too muted to notice visually
(#6b7a90 / 14px / normal weight against the dark bg). Chi reported
the span EXISTS in DOM via DevTools but doesn't see it in UI.

Tweaks: #9aa8c0 (lighter slate) / 15px / 600 weight / display inline-block.
Same min-width treatment, still left-aligned in the flex row.
liususan091219 pushed a commit to liususan091219/sutando-fork that referenced this pull request May 28, 2026
…onichi#681)

Earlier attempts (PR sonichi#679 numbering, sonichi#680 visibility bump) shipped a
separate <span class="task-num"> as a flex item. DevTools confirmed:
all 30 .task-num elements had zero width despite min-width:28px,
flex-shrink:0, and content "1.". Parent was correctly flex.

The flex layout was collapsing the span — likely interaction between
.task-text's flex:1 (flex-basis:0) and min-content sizing on the
ancestor. Adding !important wider styles didn't help — Chi reported
no yellow box appeared.

Sidestep entirely: prepend the index INTO .task-text's displayText.
Same visual effect (`1. [Voice] ...`), one less layout puzzle. CSS
rule for .task-num and the standalone span both removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant