Skip to content

task-monitor: notion labels collide (notion:402d9a72… ×3): label by the page id's tail, not its time-ordered prefix - #318

Merged
martin-conur merged 1 commit into
mainfrom
task/notion-label-tail
Oct 23, 2026
Merged

martin-conur merged 1 commit into
mainfrom
task/notion-label-tail

Conversation

@martin-conur

Copy link
Copy Markdown
Owner

Summary

Queued Notion pages on the task-monitor board all showed the same label, because #306 labelled a page by the first 8 hex digits of its id and Notion ids start with a timestamp. The label now uses the last 8 digits, which are the random part, so pages made together read apart: notion:…6d5dd526, notion:…b0551492, notion:…589b5b1c.

Closes #317

Changes

  • lib/trackers/notion.sh: aw_tracker_item_describe labels by ${id:24:8} as notion:…<tail>. The URL stays the item's url; a URL with no page id still keeps its last path segment.
  • tests/task_monitor_snapshot.bats: new regression test on the three real ids from the issue, asserting the exact labels and that all three are distinct. The existing describer test's Title-<id> fixture now has a tail that differs from its head, so it tells the two forms apart too. Snapshot, queue and Rust (monitor/src/ui.rs) fixtures are updated to the new form.
  • Docs: README, docs/task-monitor-schema.md, .claude/gh-workflow.md and the seven steering templates quote the new label. CHANGELOG has a Fixed entry. No task-init re-run is needed, since lib/ is read from the checkout.

Verification

🤖 Generated with Claude Code

…he page id's tail, not its time-ordered prefix

Notion page ids are time-ordered, so pages made in one batch share their
leading digits and #306's `notion:<first 8 hex>…` label read the same for
all of them. `aw_tracker_item_describe` in `lib/trackers/notion.sh` now
takes the last 8 hex digits: `notion:…589b5b1c`. The URL stays the item's
`url`, and a URL with no page id keeps its last path segment.

A regression test runs the describer on the three real ids from the
board that showed it and asserts three distinct labels; restoring the
prefix turns it red. Fixtures, README, the schema doc, the workflow doc
and the steering templates follow the new form.

Closes #317

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@martin-conur
martin-conur merged commit b29f9ea into main Oct 23, 2026
8 checks passed
@martin-conur
martin-conur deleted the task/notion-label-tail branch October 23, 2026 14:05
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.

task-monitor: notion labels collide (notion:402d9a72… ×3): label by the page id's tail, not its time-ordered prefix

1 participant