Skip to content

feat: add clear batch store command to CommandK dev tools#2245

Merged
DanielSinclair merged 1 commit intomasterfrom
feature/clear-batch-store-command
Mar 21, 2026
Merged

feat: add clear batch store command to CommandK dev tools#2245
DanielSinclair merged 1 commit intomasterfrom
feature/clear-batch-store-command

Conversation

@janek26
Copy link
Contributor

@janek26 janek26 commented Mar 18, 2026

Adds a dev-only CommandK command to reset the EIP-5792 batch store, useful for debugging batch transaction state during development.

  • Searchable via Cmd+K as "Clear Batch Store" (also matches: batch, sendCalls, 5792)
  • Gated behind IS_DEV — not visible in production builds

Why

During development and QA of the EIP-5792 wallet_sendCalls flow, batch records can get stuck in stale states (e.g. after speedup/cancel edge cases). Having a quick way to reset the store from CommandK avoids needing to clear extension storage manually.


PR-Codex overview

This PR introduces functionality to clear batch data in the application, enhancing the user interface with new commands and improving state management.

Detailed summary

  • Added "clear_batches" entry in static/json/languages/en_US.json for localization.
  • Introduced clearBatches command in src/entries/popup/components/CommandK/useCommands.tsx with relevant properties.
  • Implemented action for clearBatches to reset the batch store and trigger a toast notification.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@janek26 janek26 marked this pull request as ready for review March 18, 2026 13:26
@janek26 janek26 force-pushed the 03-06-feat_wallet_showcallsstatus branch from 7ed8973 to 9ce63d9 Compare March 19, 2026 12:38
@janek26 janek26 force-pushed the feature/clear-batch-store-command branch from 5feacc4 to 3580a7f Compare March 19, 2026 12:38
@janek26 janek26 force-pushed the 03-06-feat_wallet_showcallsstatus branch from 9ce63d9 to ab18b91 Compare March 19, 2026 12:59
@janek26 janek26 force-pushed the feature/clear-batch-store-command branch 2 times, most recently from 6c08fd5 to d65cd4c Compare March 19, 2026 13:30
@janek26 janek26 force-pushed the 03-06-feat_wallet_showcallsstatus branch 2 times, most recently from 8aa254d to b291dcc Compare March 19, 2026 13:57
@janek26 janek26 force-pushed the feature/clear-batch-store-command branch from d65cd4c to 696d2c1 Compare March 19, 2026 13:57
@janek26 janek26 force-pushed the 03-06-feat_wallet_showcallsstatus branch from b291dcc to b5890c0 Compare March 19, 2026 14:29
@janek26 janek26 force-pushed the feature/clear-batch-store-command branch from 696d2c1 to 567511c Compare March 19, 2026 14:29
@janek26 janek26 force-pushed the 03-06-feat_wallet_showcallsstatus branch from b5890c0 to 9d44e8e Compare March 19, 2026 14:53
@janek26 janek26 force-pushed the feature/clear-batch-store-command branch from 567511c to 81be4ba Compare March 19, 2026 14:53
@janek26 janek26 force-pushed the 03-06-feat_wallet_showcallsstatus branch from 9d44e8e to bc32684 Compare March 19, 2026 15:02
@janek26 janek26 force-pushed the feature/clear-batch-store-command branch from 81be4ba to 51aec66 Compare March 19, 2026 15:03
@janek26 janek26 force-pushed the 03-06-feat_wallet_showcallsstatus branch from bc32684 to a9ea777 Compare March 19, 2026 15:44
@janek26 janek26 force-pushed the feature/clear-batch-store-command branch from 51aec66 to 865b0ac Compare March 19, 2026 15:44
@janek26 janek26 force-pushed the 03-06-feat_wallet_showcallsstatus branch from a9ea777 to b60e828 Compare March 19, 2026 15:50
@janek26 janek26 force-pushed the feature/clear-batch-store-command branch from 865b0ac to ada19bd Compare March 19, 2026 15:50
@janek26 janek26 force-pushed the 03-06-feat_wallet_showcallsstatus branch from b60e828 to 7059676 Compare March 19, 2026 15:54
@janek26 janek26 force-pushed the feature/clear-batch-store-command branch from ada19bd to 20b16ee Compare March 19, 2026 15:54
@janek26 janek26 force-pushed the feature/clear-batch-store-command branch from 90603e4 to ee071de Compare March 20, 2026 10:42
@janek26 janek26 force-pushed the 03-06-feat_wallet_showcallsstatus branch from bdb7ce9 to 1815a91 Compare March 20, 2026 10:42
@janek26 janek26 force-pushed the feature/clear-batch-store-command branch from ee071de to 646fdd3 Compare March 20, 2026 11:45
@janek26 janek26 force-pushed the 03-06-feat_wallet_showcallsstatus branch from 1815a91 to cef1a8e Compare March 20, 2026 11:45
@janek26 janek26 force-pushed the feature/clear-batch-store-command branch 3 times, most recently from 996cf65 to 05ab8a2 Compare March 20, 2026 12:13
@janek26 janek26 force-pushed the 03-06-feat_wallet_showcallsstatus branch from cef1a8e to 03056a3 Compare March 20, 2026 12:13
@janek26 janek26 force-pushed the feature/clear-batch-store-command branch from 05ab8a2 to f0eef33 Compare March 20, 2026 15:07
@janek26 janek26 force-pushed the 03-06-feat_wallet_showcallsstatus branch from 03056a3 to 3b0060e Compare March 20, 2026 15:07
@janek26 janek26 force-pushed the feature/clear-batch-store-command branch from f0eef33 to 2cebb70 Compare March 20, 2026 15:57
@janek26 janek26 force-pushed the 03-06-feat_wallet_showcallsstatus branch from 3b0060e to 40c720e Compare March 20, 2026 15:57
@janek26 janek26 force-pushed the feature/clear-batch-store-command branch from 2cebb70 to 8c8a6d0 Compare March 20, 2026 16:42
@janek26 janek26 force-pushed the 03-06-feat_wallet_showcallsstatus branch from 40c720e to 1656270 Compare March 20, 2026 16:42
@DanielSinclair DanielSinclair force-pushed the 03-06-feat_wallet_showcallsstatus branch from 1656270 to 6b09c17 Compare March 20, 2026 20:20
@DanielSinclair DanielSinclair force-pushed the feature/clear-batch-store-command branch from 8c8a6d0 to 865f4f4 Compare March 20, 2026 20:21
@DanielSinclair DanielSinclair force-pushed the 03-06-feat_wallet_showcallsstatus branch from 6b09c17 to 07e6cc2 Compare March 20, 2026 22:38
@DanielSinclair DanielSinclair force-pushed the feature/clear-batch-store-command branch from 865f4f4 to 30908aa Compare March 20, 2026 22:39
@DanielSinclair DanielSinclair force-pushed the 03-06-feat_wallet_showcallsstatus branch from 07e6cc2 to be84483 Compare March 20, 2026 22:52
@DanielSinclair DanielSinclair force-pushed the feature/clear-batch-store-command branch from 30908aa to 35b567d Compare March 20, 2026 22:52
@DanielSinclair DanielSinclair force-pushed the 03-06-feat_wallet_showcallsstatus branch from be84483 to f7c2cb9 Compare March 20, 2026 23:54
@DanielSinclair DanielSinclair force-pushed the feature/clear-batch-store-command branch from 35b567d to fce412f Compare March 20, 2026 23:54
Copy link
Collaborator

DanielSinclair commented Mar 20, 2026

Merge activity

  • Mar 20, 11:59 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Mar 21, 12:04 AM UTC: Graphite rebased this pull request as part of a merge.
  • Mar 21, 12:05 AM UTC: @DanielSinclair merged this pull request with Graphite.

@DanielSinclair DanielSinclair changed the base branch from 03-06-feat_wallet_showcallsstatus to graphite-base/2245 March 21, 2026 00:00
@DanielSinclair DanielSinclair changed the base branch from graphite-base/2245 to master March 21, 2026 00:03
@DanielSinclair DanielSinclair force-pushed the feature/clear-batch-store-command branch from fce412f to b27d5be Compare March 21, 2026 00:04
@DanielSinclair DanielSinclair merged commit d58ff84 into master Mar 21, 2026
7 checks passed
@DanielSinclair DanielSinclair deleted the feature/clear-batch-store-command branch March 21, 2026 00:05
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.

2 participants