Fullscreen diff: embedded pane button not disabled on empty file list #528
Labels
No labels
backend
bug
chore
duplication
effort:complex
effort:medium
effort:trivial
enhancement
follow-up
frontend
fullstack
priority:high
ready-for-agent
refactor
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dries/ocman#528
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found during review of PR #518 (feat: add fullscreen diff browser). Introduced by that PR; minor inconsistency.
The standalone sidebar header disables the fullscreen button when there are no changes, but the embedded pane header in
frontend/src/pages/session-detail/RightPanel.tsx(~line 759) does not. Clicking it opens the modal in its "No changes to show." empty state — designed and tested, so harmless, but inconsistent with the standalone header.Fix: disable (or hide) the embedded pane's fullscreen button when the file list is empty, matching the standalone header behaviour.
Validated: the embedded pane / fullscreen button does not exist on main — PR #518 (feat/fullscreen-diff-modal) is unmerged. Confirmed real on that branch (pane header renders FullscreenButton with no disabled; both standalone headers pass disabled={files.length === 0}). Not actionable until #518 lands; fold into that PR's review or fix on the branch before merge.