Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: callstackincubator/agent-react-devtools
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: callstackincubator/agent-react-devtools
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fix/profile-export-review-fixes
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 5 commits
  • 6 files changed
  • 3 contributors

Commits on Mar 6, 2026

  1. feat: add profile export command for React DevTools Profiler import

    Export profiling data in React DevTools Profiler JSON format (version 5)
    so it can be imported into the browser extension's Profiler tab.
    
    - New IPC command: profile-export
    - New CLI command: profile export <file>
    - Maps internal ProfilingSession to ProfilingDataExport schema
    - Includes commit data, fiber durations, change descriptions, snapshots
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
    kacper-mikolajczak and claude committed Mar 6, 2026
    Configuration menu
    Copy the full SHA
    a4f339b View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2026

  1. fix: accept profiling data after session stop to prevent race condition

    processProfilingData() rejected data when stoppedAt was set, but
    stopProfilingAndCollect() requests data from renderers asynchronously —
    the response often arrives after profiler.stop() has already run,
    resulting in 0 commits captured. Remove the stoppedAt guard since the
    bridge controls data collection timing.
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
    piotrski and claude committed Mar 16, 2026
    Configuration menu
    Copy the full SHA
    67fac95 View commit details
    Browse the repository at this point in the history
  2. fix: include all tree nodes in initialTreeBaseDurations and per-root …

    …snapshots
    
    initialTreeBaseDurations only included nodes from the first commit's
    fiberSelfDurations, leaving most nodes without a base duration. The
    React DevTools flame graph needs an entry for every node to render.
    
    Also fix multi-root export: filter snapshots to each root's subtree
    instead of duplicating all nodes across all roots, and restore element
    type 11 for root nodes so DevTools recognises them.
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
    piotrski and claude committed Mar 16, 2026
    Configuration menu
    Copy the full SHA
    2f97d9c View commit details
    Browse the repository at this point in the history
  3. fix: narrow SnapshotNodeExport.key type to match ComponentNode

    key was typed as number | string | null but ComponentNode.key is
    string | null — the number case was unreachable.
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
    piotrski and claude committed Mar 16, 2026
    Configuration menu
    Copy the full SHA
    abef074 View commit details
    Browse the repository at this point in the history
  4. fix: pretty-print exported profile JSON for readability

    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
    piotrski and claude committed Mar 16, 2026
    Configuration menu
    Copy the full SHA
    55b2040 View commit details
    Browse the repository at this point in the history
Loading