Skip to content

Conversation

@beeman
Copy link
Contributor

@beeman beeman commented Dec 14, 2025

Description

This changes the UiConfirm component so it can be used controlled and uncontrolled, and moves the open state next to the button in 2 places.

This is in preparation for #736 where we want to be able to trigger these sheets from a dropdown menu.


Important

Refactor UiConfirm to support controlled mode and update its usage across components with a new trigger prop.

  • Behavior:
    • Refactor UiConfirm in ui-confirm.tsx to support controlled and uncontrolled modes using a new trigger prop.
    • Update ExplorerUiBookmarkAccountTable and ExplorerUiBookmarkTransactionTable to use trigger prop for UiConfirm.
    • Update SettingsFeatureGeneralDangerDeleteDatabase to use trigger prop for UiConfirm.
  • New Components:
    • Add SettingsUiNetworkDeleteConfirm and SettingsUiWalletDeleteConfirm to handle network and wallet deletions with UiConfirm.
  • Component Usage:
    • Replace inline UiConfirm usage with SettingsUiNetworkDeleteConfirm in settings-ui-network-list-item.tsx.
    • Replace inline UiConfirm usage with SettingsUiWalletDeleteConfirm in settings-ui-wallet-list-item.tsx.

This description was created by Ellipsis for 3d862f6. You can customize this summary. It will automatically update as commits are pushed.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 14, 2025

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
samui-wallet-web 3a5bc56 Commit Preview URL

Branch Preview URL
Dec 16 2025, 09:17 AM

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed everything up to 3d862f6 in 56 seconds. Click for details.
  • Reviewed 258 lines of code in 8 files
  • Skipped 0 files when reviewing.
  • Skipped posting 4 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. packages/explorer/src/ui/explorer-ui-bookmark-account-table.tsx:67
  • Draft comment:
    Good refactor—using the trigger prop instead of children in UiConfirm aligns with the updated API. Verify that this controlled/uncontrolled behavior works as expected.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
2. packages/explorer/src/ui/explorer-ui-bookmark-transaction-table.tsx:67
  • Draft comment:
    The refactor to use the trigger prop for UiConfirm is consistent here as well. Confirm that the controlled mode toggle (if needed) remains functional.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
3. packages/settings/src/settings-feature-general-danger-delete-database.tsx:30
  • Draft comment:
    The async action passed to UiConfirm handles database reset but lacks error handling. Consider wrapping the async call in a try/catch block to manage potential failures.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
4. packages/ui/src/components/ui-confirm.tsx:41
  • Draft comment:
    The onClick handler on AlertDialogAction directly calls the async action. Although acceptable for inline callbacks, consider wrapping the call in a try/catch to guard against unhandled promise rejections.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.

Workflow ID: wflow_41W1nJCn26PCplb1

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

@bundlemon
Copy link

bundlemon bot commented Dec 14, 2025

BundleMon

Files updated (6)
Status Path Size Limits
apps/extension/.output/chrome-mv3/chunks/inde
x.browser-(hash).js
5.93KB (+5.13KB +645.58%) -
apps/extension/.output/chrome-mv3/chunks/sett
ings-(hash).js
20.05KB (+103B +0.5%) -
apps/web/dist/assets/settings-(hash).js
20.04KB (+97B +0.47%) -
apps/desktop/dist/assets/settings-(hash).js
20.04KB (+95B +0.47%) -
apps/web/dist/assets/index.browser-(hash).js
816B (-551B -40.31%) -
apps/web/dist/assets/index-(hash).js
173B (-279.38KB -99.94%) -
Unchanged files (92)
Status Path Size Limits
apps/extension/.output/chrome-mv3/chunks/clie
nt-(hash).js
254.58KB -
apps/desktop/dist/assets/index-(hash).js
251.8KB -
apps/extension/.output/chrome-mv3/chunks/deri
ve-(hash).js
23.43KB -
apps/desktop/dist/assets/derive-(hash).js
23.42KB -
apps/web/dist/assets/derive-(hash).js
23.42KB -
apps/desktop/dist/assets/form-(hash).js
11.03KB -
apps/extension/.output/chrome-mv3/chunks/form
-(hash).js
11.03KB -
apps/web/dist/assets/form-(hash).js
11.03KB -
apps/extension/.output/chrome-mv3/chunks/sele
ct-(hash).js
8.08KB -
apps/web/dist/assets/select-(hash).js
8.08KB -
apps/desktop/dist/assets/select-(hash).js
8.07KB -
apps/extension/.output/chrome-mv3/chunks/onbo
arding-(hash).js
5.27KB -
apps/desktop/dist/assets/onboarding-(hash).js
5.26KB -
apps/web/dist/assets/onboarding-(hash).js
5.26KB -
apps/extension/.output/chrome-mv3/chunks/port
folio-(hash).js
4.52KB -
apps/web/dist/assets/portfolio-(hash).js
4.52KB -
apps/desktop/dist/assets/portfolio-(hash).js
4.52KB -
apps/extension/.output/chrome-mv3/chunks/crea
te-(hash).js
4.23KB -
apps/desktop/dist/assets/create-(hash).js
4.23KB -
apps/web/dist/assets/create-(hash).js
4.23KB -
apps/desktop/dist/assets/use-(hash).js
3.21KB -
apps/web/dist/assets/use-(hash).js
3.21KB -
apps/extension/.output/chrome-mv3/chunks/use-
(hash).js
3.2KB -
apps/extension/.output/chrome-mv3/chunks/cons
tants-(hash).js
3.16KB -
apps/web/dist/assets/constants-(hash).js
3.15KB -
apps/desktop/dist/assets/constants-(hash).js
3.15KB -
apps/desktop/dist/assets/vanity-(hash).js
2.68KB -
apps/web/dist/assets/vanity-(hash).js
2.68KB -
apps/extension/.output/chrome-mv3/chunks/togg
le-(hash).js
2.46KB -
apps/web/dist/assets/toggle-(hash).js
2.45KB -
apps/desktop/dist/assets/toggle-(hash).js
2.45KB -
apps/extension/.output/chrome-mv3/chunks/fiel
d-(hash).js
1.94KB -
apps/desktop/dist/assets/field-(hash).js
1.93KB -
apps/web/dist/assets/field-(hash).js
1.93KB -
apps/extension/.output/chrome-mv3/chunks/chec
kbox-(hash).js
1.89KB -
apps/web/dist/assets/checkbox-(hash).js
1.89KB -
apps/desktop/dist/assets/checkbox-(hash).js
1.88KB -
apps/extension/.output/chrome-mv3/chunks/requ
est-(hash).js
1.87KB -
apps/desktop/dist/assets/request-(hash).js
1.87KB -
apps/web/dist/assets/request-(hash).js
1.8KB -
apps/desktop/dist/assets/index.browser-(hash)
.js
1.34KB -
apps/extension/.output/chrome-mv3/chunks/item
-(hash).js
1.22KB -
apps/desktop/dist/assets/item-(hash).js
1.22KB -
apps/web/dist/assets/item-(hash).js
1.22KB -
apps/extension/.output/chrome-mv3/chunks/tool
s-(hash).js
1.17KB -
apps/desktop/dist/assets/tools-(hash).js
1.16KB -
apps/web/dist/assets/tools-(hash).js
1.16KB -
apps/desktop/dist/assets/explorer-(hash).js
1.14KB -
apps/web/dist/assets/explorer-(hash).js
1.14KB -
apps/extension/.output/chrome-mv3/chunks/expl
orer-(hash).js
1.14KB -
apps/web/dist/assets/zod-(hash).js
768B -
apps/desktop/dist/assets/zod-(hash).js
765B -
apps/extension/.output/chrome-mv3/chunks/zod-
(hash).js
765B -
apps/desktop/dist/assets/badge-(hash).js
735B -
apps/extension/.output/chrome-mv3/chunks/badg
e-(hash).js
735B -
apps/web/dist/assets/badge-(hash).js
733B -
apps/desktop/dist/assets/standard-(hash).js
652B -
apps/extension/.output/chrome-mv3/chunks/stan
dard-(hash).js
650B -
apps/web/dist/assets/standard-(hash).js
649B -
apps/desktop/dist/assets/button-(hash).js
580B -
apps/extension/.output/chrome-mv3/chunks/inpu
t-(hash).js
579B -
apps/web/dist/assets/button-(hash).js
579B -
apps/extension/.output/chrome-mv3/chunks/butt
on-(hash).js
578B -
apps/desktop/dist/assets/input-(hash).js
577B -
apps/web/dist/assets/input-(hash).js
575B -
apps/extension/.output/chrome-mv3/chunks/ui-(
hash).js
528B -
apps/desktop/dist/assets/ui-(hash).js
526B -
apps/web/dist/assets/ui-(hash).js
524B -
apps/desktop/dist/assets/label-(hash).js
515B -
apps/extension/.output/chrome-mv3/chunks/labe
l-(hash).js
515B -
apps/web/dist/assets/label-(hash).js
515B -
apps/desktop/dist/assets/get-(hash).js
492B -
apps/extension/.output/chrome-mv3/chunks/get-
(hash).js
492B -
apps/web/dist/assets/get-(hash).js
492B -
apps/extension/.output/chrome-mv3/chunks/conv
ert-(hash).js
423B -
apps/desktop/dist/assets/convert-(hash).js
422B -
apps/web/dist/assets/convert-(hash).js
422B -
apps/desktop/dist/assets/sol-(hash).js
418B -
apps/extension/.output/chrome-mv3/chunks/sol-
(hash).js
417B -
apps/web/dist/assets/sol-(hash).js
416B -
apps/web/dist/assets/dev-(hash).js
278B -
apps/desktop/dist/assets/dev-(hash).js
277B -
apps/extension/.output/chrome-mv3/chunks/dev-
(hash).js
276B -
apps/extension/.output/chrome-mv3/chunks/side
panel-(hash).js
203B -
apps/extension/.output/chrome-mv3/chunks/popu
p-(hash).js
198B -
apps/extension/.output/chrome-mv3/chunks/inde
x-(hash).js
173B -
apps/desktop/dist/assets/ellipsify-(hash).js
145B -
apps/extension/.output/chrome-mv3/chunks/elli
psify-(hash).js
145B -
apps/web/dist/assets/ellipsify-(hash).js
145B -
apps/desktop/dist/assets/network-(hash).js
121B -
apps/extension/.output/chrome-mv3/chunks/netw
ork-(hash).js
121B -
apps/web/dist/assets/network-(hash).js
121B -

Total files change -274.47KB -25.02%

Groups updated (3)
Status Path Size Limits
apps/extension/.output/chrome-mv3/**/*-
.js
432.85KB (+266B +0.06%) -
apps/desktop/dist/**/*-.js
434.75KB (+220B +0.05%) -
apps/web/dist/**/*-.js
460.83KB (+169B +0.04%) -

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@beeman beeman force-pushed the beeman/ui-bottom-sheet-controlled branch from e6a0c15 to 17351ae Compare December 16, 2025 09:07
Base automatically changed from beeman/ui-bottom-sheet-controlled to main December 16, 2025 09:10
@beeman beeman force-pushed the beeman/ui-confirm-controlled branch from 3d862f6 to aaec062 Compare December 16, 2025 09:15
@beeman beeman force-pushed the beeman/ui-confirm-controlled branch from aaec062 to 3a5bc56 Compare December 16, 2025 09:15
@beeman beeman merged commit a0f4280 into main Dec 16, 2025
21 checks passed
@beeman beeman deleted the beeman/ui-confirm-controlled branch December 16, 2025 09:21
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.

3 participants