Repository navigation
feat(client): show the task id in the detail header - #68
Merged
Merged
Conversation
The task id was never rendered anywhere in the board, so a card could not be pointed at from a conversation, a log or a bug report: the search box matched it, nothing displayed it. Render it next to the update line in the detail panel as a monospace chip and copy it on click, with a short Copied/Copy failed acknowledgement and the id always coming back afterwards.
Owner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The task id is the only stable handle to talk about a card from outside the board, yet the UI never rendered it:
TaskCardandTaskDetailusetask.idonly as a React key / controller argument, and the search box (filterTasks) is the only place it is ever matched. So a user could not answer "which card ist-mvo6xjqx-au429w?" without asking an agent.This PR shows the id in the detail header, right after the "Updated … · last change by …" line, as a small monospace chip that copies the full id on click and briefly acknowledges with
Copied/Copy failed, then returns to the id itself.Why here
v{version}, status pill, workspace), so the id belongs next to them, not in a new section.copyPathhelper (navigator.clipboard.writeText+ a timed acknowledgement), so a denied clipboard never leaves a stuck label.detail.sub.*group in both dictionaries.Changes
src/client/board/TaskDetail.tsxidCopyState(idle/copied/failed) +copyTaskIdwith a 1500 ms reset timer and timer cleanup on unmount; chip rendered inside.dsh-atb-detail-subsrc/client/styles.ts.dsh-atb-detail-idchip styles (cursor: copy, monospace,data-statecolours)src/client/i18n/en.tsdetail.sub.idTitle,detail.sub.idCopied,detail.sub.idCopyFailedsrc/client/i18n/zh.tstests/detail-id.spec.tsxchangelog.mdVerification
npx vitest run tests/detail-id.spec.tsx→ 3 passednpx vitest run→ 45 files / 586 tests passednpx tsc --noEmit→ cleannpm run build:client→lib/client.js 333.78 kB, the chip class present in the bundleNotes
shortId(), but a task id must be quotable verbatim to be useful.src/client/i18n/ru.tsneeds the same three keys; I will send that follow-up once the merge order is settled.