Skip to content

feat: surface specific changed prop/state/hook keys in profiling output#32

Open
piotrski wants to merge 3 commits intomainfrom
feat/surface-changed-keys
Open

feat: surface specific changed prop/state/hook keys in profiling output#32
piotrski wants to merge 3 commits intomainfrom
feat/surface-changed-keys

Conversation

@piotrski
Copy link
Owner

Closes #18

Summary

Surface the specific changed keys (props, state, hooks) in profiling output so agents know which props/state/hooks changed, not just that they changed.

  • Add ChangedKeys interface and optional changedKeys field to ComponentRenderReport and CommitDetail
  • Aggregate and deduplicate keys across commits in Profiler
  • Display changed keys in all profiling formatters (formatProfileReport, formatSlowest, formatRerenders, formatCommitDetail)
  • Add tests for key aggregation, deduplication, and display

Test plan

  • All unit tests pass (68 tests)
  • New tests for key aggregation, deduplication, and formatting
  • Empty keys produce no extra output (backward-compatible)

🤖 Generated with Claude Code

Add ChangedKeys type carrying specific changed keys (props, state,
hooks) alongside cause type strings. This makes profiling output more
actionable by showing *which* props/state/hooks changed, not just
*that* they changed.

- Add ChangedKeys interface and changedKeys field to ComponentRenderReport
- Add extractChangedKeys helper and aggregate keys across commits in Profiler
- Include changedKeys in CommitDetail components
- Add formatChangedKeys helper and display keys in all profiling formatters
- Add tests for key aggregation, deduplication, and display
@changeset-bot
Copy link

changeset-bot bot commented Feb 14, 2026

🦋 Changeset detected

Latest commit: f51b83c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
agent-react-devtools Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@piotrski piotrski force-pushed the feat/surface-changed-keys branch from 0eb4356 to 9b11bf6 Compare February 14, 2026 12:30
@piotrski piotrski force-pushed the feat/surface-changed-keys branch from 5304ff1 to f51b83c Compare February 14, 2026 12:45
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.

Surface specific changed prop/state/hook keys in profiling output

1 participant