Skip to content

Conversation

@beeman
Copy link
Contributor

@beeman beeman commented Dec 14, 2025

Description

This makes the UiBottomSheet component controlled and moves the open state next to the button.

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


Important

Refactor UiBottomSheet to be a controlled component and update related components to manage open state externally.

  • Behavior:
    • Refactor UiBottomSheet in ui-bottom-sheet.tsx to be a controlled component by removing trigger prop and adding onOpenChange and open props.
    • Update SettingsUiExportAccountSecretKey and SettingsUiExportWalletMnemonic to manage open state and pass it to UiBottomSheet.
  • Components:
    • Create SettingsUiExportAccountSecretKeySheet and SettingsUiExportWalletMnemonicSheet to encapsulate bottom sheet logic for account secret key and wallet mnemonic, respectively.
  • State Management:
    • Move open state management to SettingsUiExportAccountSecretKey and SettingsUiExportWalletMnemonic components.

This description was created by Ellipsis for e6a0c15. 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 terminated
View logs
samui-wallet-web 17351ae Commit Preview URL

Branch Preview URL
Dec 16 2025, 09:29 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 e6a0c15 in 48 seconds. Click for details.
  • Reviewed 305 lines of code in 5 files
  • Skipped 0 files when reviewing.
  • Skipped posting 5 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/settings/src/ui/settings-ui-export-account-secret-key-sheet.tsx:33
  • Draft comment:
    Good use of the ternary operator for conditional rendering. Ensure that checking readSecretKeyMutation?.data?.length correctly handles cases where an empty string might be valid.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
2. packages/settings/src/ui/settings-ui-export-account-secret-key.tsx:8
  • Draft comment:
    The refactored export component now lifts the open state and cleanly separates the trigger from the bottom sheet. This approach is clear and aligns with best practices.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
3. packages/settings/src/ui/settings-ui-export-wallet-mnemonic-sheet.tsx:33
  • Draft comment:
    The controlled bottom sheet for wallet mnemonic export is well implemented. Verify that the condition (readMnemonicMutation.data?.length) meets the intended behavior, especially if an empty string might occur.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
4. packages/settings/src/ui/settings-ui-export-wallet-mnemonic.tsx:8
  • Draft comment:
    The wallet mnemonic export component correctly adopts a controlled pattern by using a Fragment to group the trigger button and the sheet. This implementation looks good.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
5. packages/ui/src/components/ui-bottom-sheet.tsx:9
  • Draft comment:
    The UiBottomSheet component now leverages a spread of props and removes the trigger prop. This provides better control, so ensure that all consumers have been updated accordingly and consider updating documentation if needed.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None

Workflow ID: wflow_URGFAUrP4Nr99SW6

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/desktop/dist/assets/index-(hash).js
251.8KB (+251.63KB +148939.88%) -
apps/web/dist/assets/index.browser-(hash).js
1.33KB (+381B +38.64%) -
apps/extension/.output/chrome-mv3/chunks/sett
ings-(hash).js
19.95KB (+181B +0.89%) -
apps/desktop/dist/assets/settings-(hash).js
19.94KB (+176B +0.87%) -
apps/web/dist/assets/settings-(hash).js
19.94KB (+172B +0.85%) -
apps/desktop/dist/assets/index.browser-(hash)
.js
1.34KB (-3.43KB -71.96%) -
Unchanged files (92)
Status Path Size Limits
apps/web/dist/assets/index-(hash).js
279.55KB -
apps/extension/.output/chrome-mv3/chunks/clie
nt-(hash).js
254.58KB -
apps/extension/.output/chrome-mv3/chunks/deri
ve-(hash).js
23.43KB -
apps/desktop/dist/assets/derive-(hash).js
23.43KB -
apps/web/dist/assets/derive-(hash).js
23.43KB -
apps/extension/.output/chrome-mv3/chunks/form
-(hash).js
11.03KB -
apps/desktop/dist/assets/form-(hash).js
11.03KB -
apps/web/dist/assets/form-(hash).js
11.03KB -
apps/desktop/dist/assets/select-(hash).js
8.08KB -
apps/extension/.output/chrome-mv3/chunks/sele
ct-(hash).js
8.08KB -
apps/web/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/web/dist/assets/portfolio-(hash).js
4.52KB -
apps/desktop/dist/assets/portfolio-(hash).js
4.52KB -
apps/extension/.output/chrome-mv3/chunks/port
folio-(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.45KB -
apps/desktop/dist/assets/toggle-(hash).js
2.45KB -
apps/web/dist/assets/toggle-(hash).js
2.45KB -
apps/extension/.output/chrome-mv3/chunks/fiel
d-(hash).js
1.93KB -
apps/web/dist/assets/field-(hash).js
1.93KB -
apps/desktop/dist/assets/field-(hash).js
1.93KB -
apps/extension/.output/chrome-mv3/chunks/chec
kbox-(hash).js
1.89KB -
apps/desktop/dist/assets/checkbox-(hash).js
1.88KB -
apps/web/dist/assets/checkbox-(hash).js
1.88KB -
apps/desktop/dist/assets/request-(hash).js
1.87KB -
apps/extension/.output/chrome-mv3/chunks/requ
est-(hash).js
1.87KB -
apps/web/dist/assets/request-(hash).js
1.8KB -
apps/web/dist/assets/item-(hash).js
1.22KB -
apps/desktop/dist/assets/item-(hash).js
1.22KB -
apps/extension/.output/chrome-mv3/chunks/item
-(hash).js
1.21KB -
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/web/dist/assets/explorer-(hash).js
1.14KB -
apps/desktop/dist/assets/explorer-(hash).js
1.14KB -
apps/extension/.output/chrome-mv3/chunks/expl
orer-(hash).js
1.14KB -
apps/extension/.output/chrome-mv3/chunks/inde
x.browser-(hash).js
814B -
apps/web/dist/assets/zod-(hash).js
769B -
apps/desktop/dist/assets/zod-(hash).js
764B -
apps/extension/.output/chrome-mv3/chunks/zod-
(hash).js
761B -
apps/web/dist/assets/badge-(hash).js
735B -
apps/extension/.output/chrome-mv3/chunks/badg
e-(hash).js
733B -
apps/desktop/dist/assets/badge-(hash).js
732B -
apps/web/dist/assets/standard-(hash).js
651B -
apps/desktop/dist/assets/standard-(hash).js
649B -
apps/extension/.output/chrome-mv3/chunks/stan
dard-(hash).js
649B -
apps/web/dist/assets/button-(hash).js
582B -
apps/desktop/dist/assets/button-(hash).js
579B -
apps/web/dist/assets/input-(hash).js
578B -
apps/desktop/dist/assets/input-(hash).js
576B -
apps/extension/.output/chrome-mv3/chunks/butt
on-(hash).js
575B -
apps/extension/.output/chrome-mv3/chunks/inpu
t-(hash).js
575B -
apps/web/dist/assets/ui-(hash).js
528B -
apps/desktop/dist/assets/ui-(hash).js
526B -
apps/extension/.output/chrome-mv3/chunks/ui-(
hash).js
526B -
apps/web/dist/assets/label-(hash).js
516B -
apps/desktop/dist/assets/label-(hash).js
515B -
apps/extension/.output/chrome-mv3/chunks/labe
l-(hash).js
514B -
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/desktop/dist/assets/convert-(hash).js
422B -
apps/web/dist/assets/convert-(hash).js
422B -
apps/extension/.output/chrome-mv3/chunks/conv
ert-(hash).js
421B -
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
417B -
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
274B -
apps/extension/.output/chrome-mv3/chunks/side
panel-(hash).js
202B -
apps/extension/.output/chrome-mv3/chunks/popu
p-(hash).js
200B -
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 +249.1KB +29.38%

Groups updated (3)
Status Path Size Limits
apps/extension/.output/chrome-mv3/**/*-
.js
432.59KB (+219B +0.05%) -
apps/web/dist/**/*-.js
460.66KB (+179B +0.04%) -
apps/desktop/dist/**/*-.js
434.53KB (+143B +0.03%) -

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@beeman beeman force-pushed the beeman/remove-accounts branch from 071cde4 to 3d4c35b Compare December 16, 2025 09:02
Base automatically changed from beeman/remove-accounts to main December 16, 2025 09:04
@beeman beeman force-pushed the beeman/ui-bottom-sheet-controlled branch from e6a0c15 to 17351ae Compare December 16, 2025 09:07
@beeman beeman enabled auto-merge (rebase) December 16, 2025 09:08
@beeman beeman merged commit ef774ba into main Dec 16, 2025
20 of 21 checks passed
@beeman beeman deleted the beeman/ui-bottom-sheet-controlled branch December 16, 2025 09:10
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