Skip to content

app: state-routed open for table rows and rail — fixes silent read-only comments#35

Merged
alejandro-nexcade merged 1 commit into
mainfrom
alejandro/open-review-transition
Jul 3, 2026
Merged

app: state-routed open for table rows and rail — fixes silent read-only comments#35
alejandro-nexcade merged 1 commit into
mainfrom
alejandro/open-review-transition

Conversation

@alejandro-nexcade

Copy link
Copy Markdown
Collaborator

What

Regression from #31's open semantics, caught live: opening a review via table row double-click/Enter or the preview rail's "Open review →" used a bare navigateToDiff, skipping the Pending → InReview transition the card's Review button performs. DiffView only enables click-to-comment while the gate is InReview, so those paths landed in a silently read-only diff — "comments are not working."

Opens from the table and rail now route by gate state exactly like the action button (Pending/Reworked → openReview, everything else → navigate). The rail's finding Jump does the same, since jumping to a line is a prelude to commenting on it.

Verified

tsc clean · vitest 391 · vite build ok. Manual check after merge: open a Pending PR from the table via double-click → gate pill reads IN REVIEW → clicking a line number opens the comment box.

🤖 Generated with Claude Code

Row double-click/Enter and the rail's Open review called navigateToDiff
directly, skipping the Pending -> InReview transition the card action
performs — and DiffView only enables click-to-comment while InReview,
so reviews opened from the table landed silently read-only. Opens now
route by gate state exactly like the action button; the rail's finding
jump does the same since jumping to a line is a prelude to commenting.
@alejandro-nexcade
alejandro-nexcade merged commit 610fd01 into main Jul 3, 2026
2 checks passed
@alejandro-nexcade
alejandro-nexcade deleted the alejandro/open-review-transition branch July 3, 2026 12:49
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.

2 participants