Skip to content

fix(assistant): hide the change number when a reply proposes a single edit - #19

Open
amal66 wants to merge 5 commits into
mainfrom
feat/tabular-editdetails
Open

fix(assistant): hide the change number when a reply proposes a single edit#19
amal66 wants to merge 5 commits into
mainfrom
feat/tabular-editdetails

Conversation

@amal66

@amal66 amal66 commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Summary

Hides the change number when an assistant reply proposes exactly one edit — a lone "1" above the only card is noise — while retaining continuous 1-based numbering across multiple edits and multiple documents.

Why the PR is small

The EditCard redesign already landed independently on main; this branch carries only the single-edit numbering behavior and its focused regression tests.

Verification

  • All 4 EditCard numbering tests pass (AssistantMessage.test.tsx): single-edit omission, 1..n numbering, cross-document continuity, one card per proposed edit.
  • Web production build passes.
  • Web lint: 0 errors (46 pre-existing warnings, none in this PR's files).
  • Reconciled with current main (olp UI sync, b3166dd): clean merge, no conflicts; the EditCard changeNumber prop this PR relies on is unchanged on main.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CEguyEgXa9JjCciXCcVemC

@amal66
amal66 force-pushed the feat/tabular-editdetails branch 5 times, most recently from 0922ac4 to 0778c66 Compare July 6, 2026 00:26
@amal66 amal66 closed this Jul 10, 2026
@amal66
amal66 force-pushed the feat/tabular-editdetails branch from 0778c66 to 1e21622 Compare July 10, 2026 02:56
EditCard already accepts `changeNumber` and AssistantMessage already assigns a
running 1-based index, but the index was passed unconditionally, so a reply with
a single proposed edit rendered a lone grey "1" above the card.

Restores the suppression from 2bccd17, which was dropped when this branch was
rebased onto the upstream sync: the commit's other hunks had already landed in
main, so git resolved it to empty and discarded it, taking this behaviour with it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@amal66 amal66 reopened this Jul 10, 2026
@amal66 amal66 changed the title feat(web): tabular Edit-details modal + EditCard restyle fix(assistant): hide the change number when a reply proposes a single edit Jul 10, 2026
amal66 and others added 4 commits July 9, 2026 22:28
…tly ate

The `changeNumber` suppression this branch restores had no test, which is why
rebasing onto the upstream sync could resolve commit 2bccd17 to empty, drop it,
and leave the branch with no diff — GitHub then auto-closed the PR and nobody
noticed the behaviour had gone. The tree still compiled.

Asserts the caller's logic, not just EditCard's prop: a lone edit renders no
number, several edits number 1..n, and the counter runs across documents rather
than restarting per document.

Checked against main (which lacks the fix): the single-edit case fails there
with `expected [ '1' ] to deeply equal []`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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