Skip to content

Conversation

@Agboolafeyikemi
Copy link

Description

This PR adds expandable/collapsible diff details for snapshots and fixes slider height adjustment issues. Users can now expand snapshots to see detailed state changes, and the slider height dynamically adjusts to accommodate expanded content.

Key Features

  • Expandable Snapshot Diff Details: Click on a snapshot's diff badge to expand and see detailed state changes between snapshots
  • Dynamic Slider Height: Slider height automatically adjusts when snapshots expand or collapse
  • Snapshot Diff Utility: New utility function to calculate and format state changes between snapshots
  • Improved UI/UX: Smooth height transitions and proper visual feedback

Fixes

  • Slider height now correctly increases when snapshots expand
  • Slider height now correctly decreases when snapshots collapse
  • Slider height resets properly when clear button is clicked
  • Expand icon now points correctly in both expanded and collapsed states (▶ rotates to ▼ when expanded)

Technical Changes

  • Added snapshotDiff.ts utility for calculating state differences
  • Modified Action.tsx to support expandable diff details
  • Updated RouteDescription.tsx with dynamic height calculation using ResizeObserver
  • Refactored statelessCleaning to only track state changes (removed props preservation)
  • Added styling for expandable diff details in _actionComponent.scss

Checklist

  • [x ] I've followed the Contributing guidelines

  • [ x] I've titled my PR according to the Conventional Commits spec

  • I've linked an open issue

  • I've added tests that fail without this PR but pass with it

  • I've linted and tested my code

  • I've updated documentation (if appropriate)

…stment

- Add expandable/collapsible diff details for snapshots showing state changes
- Implement dynamic slider height adjustment that responds to snapshot expansion/collapse
- Fix slider height reset when clear button is clicked
- Fix expand icon direction (always shows ▶, CSS handles rotation to ▼ when expanded)
- Add snapshot diff utility to calculate and format state changes between snapshots
- Improve UI/UX with smooth height transitions and proper visual feedback

Fixes:
- Slider height now correctly increases when snapshots expand
- Slider height now correctly decreases when snapshots collapse
- Slider height resets properly when clear button is clicked
- Expand icon now points correctly in both expanded and collapsed states
- Aligns with goal of showing only state changes in diff
@vercel
Copy link

vercel bot commented Dec 23, 2025

@Agboolafeyikemi is attempting to deploy a commit to the Reactime Team on Vercel.

A member of the Team first needs to authorize it.

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