Skip to content

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

Merged
piotrski merged 3 commits intomainfrom
feat/surface-changed-keys
Mar 4, 2026
Merged

feat: surface specific changed prop/state/hook keys in profiling output#32
piotrski merged 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

@changeset-bot
Copy link

changeset-bot bot commented Feb 14, 2026

🦋 Changeset detected

Latest commit: 64b6470

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 2 times, most recently from 5304ff1 to f51b83c Compare February 14, 2026 12:45
piotrski added 3 commits March 4, 2026 23:27
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
@piotrski piotrski force-pushed the feat/surface-changed-keys branch from f51b83c to 64b6470 Compare March 4, 2026 22:27
@piotrski piotrski merged commit 05090ca into main Mar 4, 2026
4 checks passed
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