refactor: share changed-file disclosure rows #429

Open
opened 2026-07-21 14:12:31 +02:00 by dries · 0 comments
Owner

What to build

Extract the common changed-file disclosure row used by session changes and working-tree changes. Share expansion, path, line-count, and expanded-body structure while keeping status badges and diff renderers domain-specific.

Acceptance criteria

  • Session and working-tree file changes use one disclosure-row component.
  • Status badges and distinct diff body renderers remain configurable by each consumer.
  • Expansion state, accessible state, paths, and addition/deletion counts remain unchanged.
  • Tests cover both consumers and disclosure behavior.

Blocked by

None - can start immediately.

## What to build Extract the common changed-file disclosure row used by session changes and working-tree changes. Share expansion, path, line-count, and expanded-body structure while keeping status badges and diff renderers domain-specific. ## Acceptance criteria - [ ] Session and working-tree file changes use one disclosure-row component. - [ ] Status badges and distinct diff body renderers remain configurable by each consumer. - [ ] Expansion state, accessible state, paths, and addition/deletion counts remain unchanged. - [ ] Tests cover both consumers and disclosure behavior. ## Blocked by None - can start immediately.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dries/ocman#429
No description provided.