-
Notifications
You must be signed in to change notification settings - Fork 13
fix button size #228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix button size #228
Conversation
Deploying wallet-signet with
|
| Latest commit: |
655c838
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://53358fd2.wallet-23u.pages.dev |
| Branch Preview URL: | https://fix-button-size.wallet-23u.pages.dev |
WalkthroughThe changes update the arkade-os SDK dependency to a local workspace reference, modify a performance fingerprinting threshold from percentage-based to millisecond duration (24 hours), and add a new Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Deploying wallet-mutinynet with
|
| Latest commit: |
655c838
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://4074b6b3.arkade-wallet.pages.dev |
| Branch Preview URL: | https://fix-button-size.arkade-wallet.pages.dev |
Deploying wallet-bitcoin with
|
| Latest commit: |
655c838
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://3a1b5b25.wallet-bitcoin.pages.dev |
| Branch Preview URL: | https://fix-button-size.wallet-bitcoin.pages.dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR addresses button sizing issues by introducing a new main prop that sets a minimum height on buttons. The changes also include an unrelated update to the SDK dependency and service worker configuration.
- Added
mainprop to Button and FlexRow components to control minimum height - Updated
@arkade-os/sdkdependency to use a local file reference - Changed service worker configuration from
thresholdPercentagetothresholdMs
Reviewed Changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/screens/Wallet/Index.tsx | Added main prop to Send and Receive buttons |
| src/components/FlexRow.tsx | Added main prop to set minimum height of 20px |
| src/components/Button.tsx | Added main prop and passed through to FlexRow component |
| public/wallet-service-worker.mjs | Changed threshold configuration from percentage to milliseconds (24 hours) |
| pnpm-lock.yaml | Updated lockfile to reflect local SDK dependency |
| package.json | Changed SDK dependency to local file reference |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/components/Button.tsx (1)
48-60: Passmainprop consistently to FlexRow in all branches, or document why certain branches exclude it.The
mainprop controlsminHeight: 20pxin FlexRow (FlexRow.tsx line 43), but it's only passed to FlexRow in the default branch (Button.tsx line 57). The fancy and loading branches ignore this prop, creating inconsistent behavior where<Button main fancy />would silently discard the main prop. Either pass main to all FlexRow instances (lines 46, 49, 57) or explicitly design fancy/loading branches to not support the prop.
🧹 Nitpick comments (1)
src/components/Button.tsx (1)
13-13: Consider a more descriptive prop name.The prop name
maindoesn't clearly convey that it controls minimum height. Consider names likeensureMinHeight,fixedHeight, orwithMinHeightfor better code clarity.Also applies to: 28-28
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (5)
package.json(1 hunks)public/wallet-service-worker.mjs(1 hunks)src/components/Button.tsx(3 hunks)src/components/FlexRow.tsx(3 hunks)src/screens/Wallet/Index.tsx(1 hunks)
🧰 Additional context used
🧠 Learnings (3)
📚 Learning: 2025-07-21T18:25:36.391Z
Learnt from: bordalix
Repo: arkade-os/wallet PR: 121
File: src/screens/Init/Restore.tsx:58-58
Timestamp: 2025-07-21T18:25:36.391Z
Learning: In src/screens/Init/Restore.tsx, the Input component for private key restoration intentionally omits the `value` prop to make it uncontrolled. This is a security feature to prevent the private key from being displayed if users navigate away and return to the screen, avoiding potential exposure of sensitive data in the UI.
Applied to files:
src/screens/Wallet/Index.tsx
📚 Learning: 2025-06-30T18:33:29.839Z
Learnt from: bordalix
Repo: arkade-os/wallet PR: 114
File: src/lib/asp.ts:0-0
Timestamp: 2025-06-30T18:33:29.839Z
Learning: In src/lib/asp.ts, only the collaborativeExit function should accept both IWallet and ServiceWorkerWallet types. Other wallet functions (getBalance, getTxHistory, getReceivingAddresses, redeemNotes, sendOnChain, settleVtxos) should maintain their original IWallet-only signatures and not be updated for consistency.
Applied to files:
src/screens/Wallet/Index.tsxpublic/wallet-service-worker.mjs
📚 Learning: 2025-06-30T18:23:34.163Z
Learnt from: bordalix
Repo: arkade-os/wallet PR: 114
File: public/wallet-service-worker.mjs:6350-6353
Timestamp: 2025-06-30T18:23:34.163Z
Learning: Do not review `public/wallet-service-worker.mjs` as it is a built file generated by Vite.
Applied to files:
public/wallet-service-worker.mjs
🧬 Code graph analysis (2)
src/screens/Wallet/Index.tsx (1)
src/components/Button.tsx (1)
Button(21-64)
src/components/Button.tsx (1)
src/components/FlexRow.tsx (1)
FlexRow(17-48)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Agent
🔇 Additional comments (3)
public/wallet-service-worker.mjs (1)
8811-8813: Built artifact: skipping review per repository policy.This file is a Vite-generated bundle. Please review and make changes in the source modules that produce this code (e.g., where FP/thresholdMs is defined) and ensure the build pipeline reflects the intended 24h (1440601e3) behavior.
src/screens/Wallet/Index.tsx (1)
54-55: LGTM! Consistent application of the newmainprop.The
mainprop is correctly applied to both Send and Receive buttons, ensuring consistent sizing across the wallet action buttons.src/components/FlexRow.tsx (1)
12-12: LGTM! Clean implementation of conditional minHeight.The
mainprop is correctly added to the interface and component, and the conditional minHeight styling is properly applied. The 20px value provides a reasonable minimum height for buttons.Also applies to: 26-26, 39-39
* use thresholdMs + fix coin control * update dependencies * fix * Add aspInfo and svcWallet to the dependency array * fix * Prevent async rollover updates from stomping newer wallet stat * fix button size (#228) * fix button size * fix * fix UI * improvements
Summary by CodeRabbit
Style
Updates