Repository navigation
fix(bridging-widget): correct chain-aware bridge flow and history - #266
edehvictor wants to merge 19 commits into
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Submission preparation can outlive account changes, and failed history refreshes can prevent subsequent polling results from updating pending entries.
3 open issues
What changed in this PR
Updates the bridging widget from #251 to address #257’s chain-aware amounts, wallet selection, quote freshness, and history requirements.
Changes:
- Uses chain-specific G$ decimals and displays buffered provider fees.
- Separates source selection from the wallet network and refreshes quotes before submission.
- Revises history polling and expands Storybook fixtures, flow checks, and screenshot capture.
| File | Description |
|---|---|
| tests/widgets/bridging-widget/states.spec.ts | Adds decimal and interactive-flow checks; improves screenshots. |
| packages/bridging-widget/tests/historyTransactions.test.mjs | Tests history pairing and status-failure handling. |
| packages/bridging-widget/src/widgetRuntimeContract.ts | Separates wallet and selected-source state. |
| packages/bridging-widget/src/components/shared.tsx | Lists supported chains in protocol labels. |
| packages/bridging-widget/src/components/ReviewScreen.tsx | Displays chain-aware amounts and charged fees. |
| packages/bridging-widget/src/components/HistoryTab.tsx | Formats history amounts and preserves entries on refresh errors. |
| packages/bridging-widget/src/components/FeeBreakdown.tsx | Uses destination decimals and buffered provider fees. |
| packages/bridging-widget/src/components/BridgingWidgetView.tsx | Keeps bridge UI visible and adds wallet controls. |
| packages/bridging-widget/src/components/BridgeTab.tsx | Adds source selection and clearer connection states. |
| packages/bridging-widget/src/components/BridgeHistoryDetailModal.tsx | Formats history-detail amounts by source chain. |
| packages/bridging-widget/src/components/AmountEntry.tsx | Updates balance formatting and disconnected display. |
| packages/bridging-widget/src/BridgingWidget.tsx | Supplies preview wallet identity overrides. |
| packages/bridging-widget/src/adapter/useBridgeSubmission.ts | Loads fresh quotes and guards submission callbacks. |
| packages/bridging-widget/src/adapter/useBridgeQuote.ts | Parses source decimals and hides stale quotes. |
| packages/bridging-widget/src/adapter/useBridgeHistory.ts | Separates pending-status polling from history scans. |
| packages/bridging-widget/src/adapter/useBridgeConfig.ts | Hides config from previous routes or accounts. |
| packages/bridging-widget/src/adapter/historyTransactions.ts | Extracts history normalization and retains unresolved entries. |
| packages/bridging-widget/src/adapter/chains.ts | Adds chain-decimal and native-fee helpers. |
| packages/bridging-widget/src/adapter.ts | Coordinates source selection, resets, and fresh-quote submission. |
| examples/storybook/src/stories/helpers/bridgingWidgetStories.tsx | Updates fixtures and adds decimal and interactive scenarios. |
| examples/storybook/src/stories/bridging-widget/BridgingWidgetQA.stories.tsx | Exposes the new QA stories. |
Review effort: Balanced
| setSelectedHistoryTransaction(null) | ||
| submission.reset() | ||
| }, [isReady]) | ||
| if (submission.step === 'idle' || submission.step === 'failed') submission.reset() |
There was a problem hiding this comment.
Thanks, fixed in f53387c. Account or source changes now invalidate in-flight submission preparation, and the captured operation/account is checked before doBridge(). Once submission has started, the transaction progress is preserved. Added regressions for account changes during the switch, source changes during the fresh quote, and account changes after submission begins.
| active = false | ||
| clearInterval(intervalId) | ||
| } | ||
| }, [sdk, address, state.transactions]) |
There was a problem hiding this comment.
Thanks, fixed in f53387c. Pending-status polling now follows each history scan's request identity, so a failed refresh cannot leave later status updates discarded. Added a regression that fails a refresh while a transfer is pending and then verifies that delivery still updates.
| test('BridgingWidget completes the interactive route-to-submit flow', async ({ page }) => { | ||
| await gotoStory(page, 'interactive-submit') |
There was a problem hiding this comment.
Agreed. I kept the presentation test and added a real-adapter Storybook fixture plus Playwright flow in f53387c, mocking only the wallet/SDK boundaries. It asserts confirmation switches to the selected source, obtains a fresh quote, and passes that quote to doBridge(). The focused bridge suite passed 27/27 locally without retries; the committed recording is scripted, not a real signed transfer.
|
@edehvictor A review can only be done when the following conditions are satisfied:
|
|
@pheobeayo, thank you. I'm still working on it. When I'm done. I'll let you know |
|
@edehvictor @pheobeayo lets try to keep hygiene around the stages of how we work on bounties.
Only when the initial checks are met, confirmed by bounty-lead, should turn this into a ready for review PR and the group of reviewers can be assigned. |
|
@edehvictor per request, below the related design references. you can see in other widgets how its used and applied. Main bridge screen:
Notes:
Confirm transaction screen:
Notes:
Transaction confirmed:
Notes:
|
|
Update on draft PR #266: pushed f53387c (the three Copilot fixes and regression coverage) and 23e7f7f (Review actions reachable on short mobile screens). I replied on each Copilot thread with the specific fix and test. Local verification: bridging-widget lint passed; focused Playwright suite passed 27/27, one worker, no retries. Evidence: scripted real-adapter happy-path recording, result screenshot, and 390 x 504 Review-footer screenshot. The mobile drawer was also manually checked for scrolling. The recording uses mocked wallet/SDK boundaries; it is not a signed live transfer. Live wallet fees/delivery and a reference-versus-result design sign-off remain open. Full-workspace build/lint are not certified because of unrelated existing errors, detailed in the updated PR description. Current CI has a waiting test authorization and a skipped Playwright job. I'm keeping this PR draft, as requested, and am not requesting review. |
|
@pheobeayo @L03TJ3 I compared Lewis's three references with the current result while keeping #266 draft. The #257 correctness flow is verified locally (27/27 focused Playwright tests; bridging-widget lint passes), but I do not want to claim visual parity yet.
Could you confirm whether these remaining design/feature differences belong in this #257 follow-up, the parent #251 feature work, or a separate issue? I'll keep #266 draft and avoid broad UI changes until you confirm scope. The scripted happy-path video mocks wallet/SDK boundaries; no funded transfer was made. |
|
@pheobeayo, kindly review |
|
@edehvictor Thanks for the thorough update and for closing out the Copilot threads. Before this can go to a review:
|
|
@edehvictor Thanks — 42f6243 fixes the history decimals correctly. Formatting at 18 decimals matches the SDK’s normalizedAmount, and the fixture and test updates look good. I ran the unit tests and lint locally on the new head; both pass.
|
|
@pheobeayo Thanks for the review. I’ve added the three reference/result image pairs directly to the PR description and kept the remaining visual differences explicit. The latest local bridge Playwright run passed 27/27 with one worker and no retries, but the external-fork Playwright check has not run in CI. Could you authorize or trigger that workflow (or point me to whoever can)? I also fixed the optional route-limit fixture inconsistency in 4873552: both Storybook fixtures now use the SDK’s normalized 18-decimal limits, while token balances remain chain-specific. The commit is pushed; changed-file lint and the focused bridge Playwright suite passed locally (27/27, one worker, no retries) after this fix. For the requested real-wallet recording through Review → Confirm → wallet signing, the current widget routes are configured for mainnet. Could you confirm a supported testnet setup, or provide a small test allowance for G$ and source-chain gas so I can record the flow safely with a separate test account? I will review and sign the wallet request myself. The existing scripted video uses mocked wallet/SDK boundaries and is not a live transfer. I’ll keep the PR draft until CI and the manual evidence are ready, then ask for your go-ahead before marking it ready for review. |
|
@edehvictor Thanks — the limit fixtures are now correctly normalized, and the Ethereum RPC fix with its explanatory comment makes sense. I ran the unit tests (5/5) and bridging-widget lint on 4873552; both pass. One question on 8d8f242: removing the revert rule fixes the misleading message for read-call reverts, but it also drops it for actual doBridge reverts, which now show only “Bridge transaction failed.” Was that intended, or should the revert hint stay for the submission path only? @L03TJ3 is this good enough for review now? |
There was a problem hiding this comment.
QA Review & Defect Audit Report: Bridge-Widget Correctness & Styling
- Target Bounty: Issue #277: [GoodBounty-QA]: Bridge-widget QA
- Target PR: PR #266: Bridge widget fixes for issue #257
- Base Issue: Issue #257: Bridging widget correctness and styling issues
- Audited Commit SHA:
8feadd7d59948c924a7d2195a1f556d9355ad4fd - Installed Bridging SDK:
@goodsdks/bridging-sdk@1.0.6 - Reviewer / QA Auditor:
@HushLuxe - Automated Test Results: 38 / 38 Passed (100%)
- Live On-Chain Transfer: 100% Confirmed on Celo Mainnet ➔ Fuse via LayerZero
- Final Verdict: CHANGES REQUESTED (Core functional routing and contract interactions succeed, but 11 verified styling, contrast, and resilience defects require remediation).
1. Executive Summary & QA Verification Matrix (QA01–QA12)
Every acceptance criteria scenario defined in Issue #277 and base Issue #257 was systematically audited across desktop, tablet, and mobile viewports in both Light and Dark themes.
| Case ID | Scenario Name | Test Environment / Fixture | Status | Audit Findings & Verification Summary |
|---|---|---|---|---|
| QA01 | First Use & Connection | Disconnected Fixture (--no-wallet) |
PASS | Widget renders centered; placeholder Balance: — G$ prevents flash of zero balance; Connect Wallet CTA is prominent; tabs switch cleanly. |
| QA02 | Routes & Providers | Injected Wallet / Runtime Fixtures | PASS (BUG-05) | Axelar is strictly isolated to Celo ↔ Ethereum; LayerZero is active across all supported chains. Zero premature network switch dialogs on route selection. (Provider selection card inherits pill radius and distorts into a pinched oval). |
| QA03 | Amounts & Fee Segregation | Injected Wallet / Runtime Fixtures | PASS (BUG-07) | Protocol fee is strictly segregated from native relayer fee (CELO). Route-specific rates verified: Fuse ➔ Celo quotes apply a 0.5% protocol fee (seen in review fixtures), while Celo ➔ Fuse quotes apply a 0.1% protocol fee (seen in live transfer); both calculations are accurate to contract config. (16-decimal native provider fee string overflows container on small screens). |
| QA04 | Review & Confirm Flow | Injected Wallet / Runtime Fixtures | PASS (BUG-03) | Review drawer presents complete fee breakdown and deferred network switch notice. (Modal title wraps to two lines on 320px screens). |
| QA05 | Rejection & Recovery | Injected Wallet / Mocked SDK | PASS (BUG-08) | User wallet rejections and on-chain reverts halt at the exact failed step, render error banner, and provide a working Retry button. (Misleading approval error copy states bridge transaction reverted). |
| QA06 | Stale State & Interruptions | Automated Test Suite | PASS | In-flight request ID guards prevent stale quote overwrites. Rapid route and amount switching cancels pending requests cleanly without UI desynchronization. |
| QA07 | Progress & Delivery | Injected Wallet / Live Fixtures | PASS (BUG-01) | Stepper tracks token approval and cross-chain relay progression. Clickable explorer links for source and provider. (In Light Theme, explorer link titles fail to render, appearing only as empty underlines with icons). |
| QA08 | History Tab & Detail Modal | Injected Wallet / Live Fixtures | PASS (BUG-06) | Populated history tab displays live completed transactions. (In Light Theme, secondary "Refresh" button text resolves pure white-on-white (#FFFFFF on #FFFFFF), invisible until hovered). |
| QA09 | Mobile & Accessibility | Mobile Viewports (390px, 320px) | PARTIAL | On 320px viewports, Amount and Balance: collide (AmountBalance:), modal title wraps to 2 lines, and provider cards pinch. Yellow warning text fails WCAG AA contrast. |
| QA10 | Lead Design Comparison | Visual Design Comparison | DOCUMENTED | Structural layout complies with GoodWalletV2 specs; component radius inconsistencies and color token inheritance gaps documented. |
| QA11 | Independent Live Transfer | Live Celo Mainnet (0x6175...b585) |
PASS (Live Confirmed) | Broadcasted 10.00 G$ transfer on Celo Mainnet via LayerZero. Confirmed on Celoscan (0xeb49c8...) and Fuse Explorer (0xa5343b...). (Testing XDC route uncovered destination RPC failure cascading to zero balance BUG-09). |
| QA12 | Live Rejection & Retry | Live Injected Wallet | PASS (Live Confirmed) | Live wallet rejection halts cleanly at Approve G$ Needs attention, leaving downstream bridging pending. Working Retry button restarts flow without page reload (See Section 4 & BUG-08 visual proof). |
2. Master Bug & Defect Tracker (11 Verified Defects)
| Bug ID | Severity | Category | Description | Steps to Reproduce | Expected vs. Actual Result |
|---|---|---|---|---|---|
| BUG-01 | High | Accessibility | Light Theme invisible explorer link text in status modal | Open status modal in Light Theme (defaultTheme="light") |
Expected: High-contrast, readable explorer link labels. Actual: Explorer link titles fail to render, leaving only blank underlines and external link icons. |
| BUG-03 | Low | Mobile Layout | "Review Bridge" title breaks across 2 lines on 320px mobile | Set viewport to 320px width and open Review drawer |
Expected: Heading scales or fits on 1 line. Actual: Header wraps onto two lines ( Review / Bridge), compressing vertical drawer space. |
| BUG-04 | Medium | Mobile Layout | Amount & Balance header label collision (AmountBalance:) on 320px mobile |
Open Bridge tab on 320px mobile viewport |
Expected: Labels wrap or maintain gap. Actual: Labels collide with 0px spacing into AmountBalance: 190.00 G$ MAX. |
| BUG-05 | Medium | UI / Styling | Provider ActionButton distorts into pinched oval/egg capsule |
View provider selection tile with multi-line subtitle |
Expected: Clean rounded rectangular card ($3 / $4).Actual: Inherits borderRadius="$full". At ~85px height, ends deform into a bulbous egg that encroaches on text padding. |
| BUG-06 | High | Accessibility | Secondary "Refresh" button text resolves pure white-on-white in Light Theme |
View empty history state in Light Theme |
Expected: Text is readable in unhovered state. Actual: Button text is 100% white-on-white invisible; only becomes readable when mouse cursor hovers and fills background blue. |
| BUG-07 | Medium | UI / Precision | 16-decimal native provider fee string overflow on 320px & sticker shock | Enter bridge amount and view provider fee on 320px screen |
Expected: Fee rounded to 4 decimals. Actual: Displays 16 unrounded decimals ( 17.6294004463614488 CELO), clipping at container edge on 320px (CELO (native toke). |
| BUG-08 | Medium | UX / Copy | Misleading error copy ("Bridge transaction reverted on-chain") on token approval failure | Reject token approval in wallet or trigger approval revert |
Expected: Copy states token approval was canceled or failed. Actual: Step copy under Approve G$ Needs attention states "Bridge transaction reverted on-chain. Try a smaller amount." |
| BUG-09 | High | Resilience / UX | Destination RPC rate-limit / failure cascades into false zero balance (0.00 G$) |
Select route where destination RPC fails or rate-limits (e.g. XDC public RPC) |
Expected: Destination error surfaced while source token balance remains accurate. Actual: Widget catches error, clears bridgeConfig, and falsely wipes user balance to Balance: 0.00 G$. |
| BUG-10 | Medium | UX / Code Leak | Raw Solidity revert string "minAmount" rendered directly to UI |
Enter amount below on-chain contract threshold (e.g. 1 or 9 G$) |
Expected: Localized copy ("Minimum bridge amount is 10 G$").Actual: Widget prints raw unformatted Solidity code token minAmount in red. |
| BUG-11 | Medium | Accessibility | Light Theme warning notice text fails WCAG AA contrast on white card | View token approval notice in Light Theme |
Expected: Warning text meets WCAG AA contrast ( Actual: Bright yellow $warning text on #FFFFFF card yields ~1.8:1 contrast, rendering it washed out and illegible. |
| BUG-12 | Medium | Layout / CLS | Header layout shifts erratically (CLS) based on network name length | Switch "From network" between Celo and Ethereum |
Expected: Stable layout with badge pinned to title and wallet aligned right. Actual: Unbundled XStack flexWrap="wrap" causes Ethereum badge to drop to line 2 with wallet on right, while Celo badge stays on line 1 pushing wallet alone to line 2 on the left. |
3. Visual Evidence for All Documented Defects
Submission Evidence Note: Following strict QA audit standards, only defect captures are embedded below to maintain report conciseness. All captures document live verified bugs in the audited codebase.
BUG-01: Light Theme Invisible Explorer Link Titles in Status Modal
In the transaction progress/status modal when running in Light Theme (defaultTheme="light"), all three transaction explorer link labels (Source transaction, Track on LayerZero, Destination transaction) fail to render their text, appearing only as empty underlines with external link icons.

BUG-03: "Review Bridge" Title Wrap on 320px Mobile
On narrow 320px viewports, the modal title breaks across two lines (Review / Bridge), compressing vertical layout above drawer content.

BUG-04: Amount & Balance Header Label Collision on 320px Mobile
Labels run together without spacing into AmountBalance: 190.00 G$ MAX due to missing gap and responsive wrap handling on narrow viewports.


BUG-05: Provider Action Button Distortion on Multi-Line Subtitles
LayerZero provider card inherits $full border radius (9999px) from ButtonFrame. When subtitle copy wraps across multiple lines, the component expands in height (~85px on mobile), causing the curved ends to severely deform into a pinched oval / egg capsule that encroaches onto text and checkmark padding.

BUG-06: Secondary "Refresh" Button White-on-White Text in Light Theme
Empty history state in Light Theme renders the "Refresh" button text in pure white on a near-white button background (#FFFFFF on #F5F7FA), making the button label completely invisible until hovered.


BUG-07: 16-Decimal Native Provider Fee String Overflow on 320px
Native provider fee displays 16 unrounded decimals (17.6294004463614488 CELO) on standard/desktop viewports, and on 320px narrow mobile screens it overflows and clips off the end of the text (CELO (native toke).


BUG-08: Misleading Token Approval Failure Copy
When token approval reverts or fails, the step description under Approve G$ Needs attention displays "Bridge transaction reverted on-chain. Try a smaller amount.", misleading the user into thinking the bridge transaction executed and reverted on-chain when the bridge transaction was never actually submitted.

BUG-09: Cascading Destination RPC Rate-Limit Leading to False Zero Balance
When a destination chain RPC is rate-limited or fails (such as public XDC RPC https://rpc.xdcrpc.com returning call rate limit exhausted), useBridgeConfig catches the error, renders the red banner "Unable to load balance and limits.", and resets bridgeConfig = null. Because the user's G$ balance is coupled directly to bridgeConfig instead of an independent balance query, AmountEntry wipes the user's real balance and displays Balance: 0.00 G$.

BUG-10: Raw Smart Contract Revert String "minAmount" Rendered to UI
When entered amount is below the on-chain contract limit (canBridge returns "minAmount". The widget outputs the raw unformatted string minAmount in red text without converting it into a helpful message (e.g. "Minimum bridge amount is 10 G$").


BUG-11: Light Theme Warning Text Severe Contrast Failure
In Light Theme, warning copy ("This amount needs a one-time G$ approval before it can bridge.") is styled with $warning (bright yellow/gold) against a pure white #FFFFFF surface. The resulting ~1.8:1 contrast ratio severely violates WCAG AA standards and renders the text washed out and illegible.

BUG-12: Header Layout Erratic Wrap & CLS on Desktop / Standard Viewports
In BridgingWidgetView.tsx, <Heading>, <Badge>, and <WalletControls> are unbundled flat siblings inside <XStack justifyContent="space-between" flexWrap="wrap">.
- On standard container widths (desktop/tablet):
- With "Ethereum" (8 letters): The badge cannot fit on line 1 and wraps to line 2 (far left), while the wallet sits on line 2 (far right).
- With "Celo" (4 letters): The shorter badge squeezes onto line 1 next to the title, forcing the wallet chip down alone to line 2 (far left).
- This creates an erratic Cumulative Layout Shift (CLS) on desktop whenever the user changes the source chain. (On narrow 320px mobile screens, elements stack uniformly).


4. Live On-Chain Transfer Audit (QA11 & QA12)
-
Connected Wallet:
0x61757e66712CEDc6c53E3fa71b1F7B6580CBB585(Celo Mainnet) -
Token: GoodDollar (
G$) — Celo Contract:0x62B8B11039FcfE5aB0C56E502b1C372A3d2a9c7A - Initial Balance: 200.00 G$ | 20.00 CELO
- Transfer Route: Celo Mainnet (Chain ID: 42220) ➔ Fuse (Chain ID: 122) via LayerZero
- Amount Transferred: 10.00 G$
- Amount Received on Fuse: 9.99 G$ (reflecting 0.1% protocol fee deduction of 0.01 G$)
-
On-Chain Evidence:
- Celo Source Transaction: 0xeb49c84d01f311e669072646611398cd234aa8e1242af6316f9a4f78743a66bf
- Fuse Destination Transaction: 0xa5343b320a89748fc073cb18789012df9d4342283b133cb9e24e8d027e8699b8
- Relay Tracking: LayerZero Scan confirmed cross-chain delivery
- Post-Transfer Balance: 190.00 G$ | 5.491 CELO
-
History Tab Verification: Live transfer persisted in widget history:
Celo → Fuse, completed, LayerZero · 10.00 G$
-
Live Network Resilience Finding: Tested Celo ➔ XDC route. Discovered that
@goodsdks/bridging-sdkrelies on the default viem public XDC RPC (https://rpc.xdcrpc.com), which exhausted its call rate limit (code -32005), exposing BUG-09.
Live Wallet Rejection & Error Interception (QA12)
- Verified Behavior: When token approval was rejected in the live injected wallet on Celo Mainnet, the UI intercepted the error cleanly without crashing or freezing. It transitioned to
Approve G$ Needs attention, left downstream bridging steps safely pending, and rendered an activeRetrybutton allowing immediate re-submission. - Visual Evidence: (See BUG-08 screenshot:
qa05-approval-failed-misleading-error.jpg).
5. Actionable Developer Recommendations for PR Author (@edehvictor)
- Fix Light Theme Text Invisibility (BUG-01, BUG-06):
- In
packages/ui/src/theme.ts,Anchor.tsx, andButton.tsx, ensureButtonText, secondary buttons, and explorer link labels explicitly consume dynamic contextual$textColor/$colorrather than failing to render contrast on light surfaces.
- Fix Provider ActionButton Distortion (BUG-05):
- In
ActionButton(packages/bridging-widget/src/components/shared.tsx), overrideborderRadius="$3"or"$4"instead of inheriting$full(pill) so multi-line text cards do not distort into pinched egg capsules.
- Decouple Source Balance from Route Config (BUG-09):
- In
useBridgeConfig, separate the source token balance query from the destination fee/limit query. A failure or rate-limit on a destination RPC must never wipe out the user's source token balance or display0.00 G$.
- Translate Contract Revert Codes (BUG-10):
- In
primaryRequirementMessage(errors.ts), map contract strings like"minAmount"to friendly copy:"Minimum bridge amount is 10 G$".
- Fix Label Collisions on 320px Mobile (BUG-04):
- In
AmountEntry.tsx, addflexWrap="wrap"or responsive gap to the header row soAmountandBalance:... G$ MAXnever collide intoAmountBalance:.
- Correct Misleading Approval Error Copy (BUG-08):
- In
useBridgeSubmission.ts, distinguish approval failures from bridge execution failures. Approval rejection/revert should state"Token approval was rejected or failed", not"Bridge transaction reverted on-chain".
- Fix Header Layout Jumps (BUG-12):
- In
BridgingWidgetView.tsx, nest<Heading>and<Badge>together inside an inner<XStack gap="$2" alignItems="center">so the network badge stays permanently pinned to the title, preventing erratic header wrapping and CLS when switching chains.
6. Automated Test Execution Evidence
All automated Playwright interaction tests and mocked SDK integration suites passed without regression on commit 8feadd7d59948c924a7d2195a1f556d9355ad4fd:
# 1. Vitest Unit Suite
pnpm --filter @goodwidget/bridging-widget test
# Result: 4/4 test files passed, 32/32 tests passed (1.42s)
# 2. Playwright UI States Suite
pnpm exec playwright test tests/widgets/bridging-widget/states.spec.ts
# Result: 26 passed (33.4s)
# 3. Playwright Real / Mocked Adapter Integration Suite
pnpm exec playwright test tests/widgets/bridging-widget/realAdapter.spec.ts
# Result: 12 passed (55.1s)
# Total Automated Suite: 38/38 Playwright tests passed (88.5s)7. Final Sign-Off Statement
The foundational bridging architecture introduced in PR #266 represents high-quality work: route filtering (Axelar vs LayerZero), cross-chain batch event queries, and two-step approval/relayer submissions function reliably and passed on-chain mainnet validation.
However, based on independent human verification, 11 defects are currently blocking full production readiness—primarily regarding Light Theme text contrast (WCAG AA failures), 320px small-viewport layout collisions, and destination RPC error cascading (false zero balance display).
Verdict: CHANGES REQUESTED pending the visual contrast, mobile layout, and balance resilience fixes detailed above.
- Auditor: @HushLuxe
- Audit Deliverable: Single Unified Bounty Review
- Audit Status: Complete & Evidence-Locked
|
Hi @edehvictor, thanks for the work on this. We've gone through the QA report (#277) with the maintainer, and these are the items to address in this PR before it can be merged: UI
Technical
Decimal display
History
Transaction error handling
Not in scope for this PR (tracked separately)
When you push, please update the screenshots for the affected states (light theme status drawer, provider card, header with Celo and Ethereum, disabled Review button, history order and detail) so we can quickly recheck. Thanks! |
|
Alright @pheobeayo I'll work on it as soon as possible |
|
Hi @pheobeayo, thanks for the detailed review. I’ve pushed signed commit
Verification on this commit: bridging-widget lint and build passed, unit tests 11/11, and Playwright 43/43. I’ve left the items you marked out of scope for the separate follow-up. Please take another look when convenient. Thanks. |
|
Thanks @edehvictor, I reviewed 2a6f328 against the agreed list. All items are addressed ✅: explorer link text, provider card radius, Review disabled state + reason, header grouping, button heights, configurable One thing to fix before approval:
|
|
Thanks for the re-review, @pheobeayo . I fixed the Verified locally: Node tests 12/12, targeted ESLint passed, and the bridging-widget package build passed (including declarations). |
|
Re-reviewed 003202a. The All agreed items from the QA triage are addressed. Approving from my side ✅ @L03TJ3 Please give the final approval |
|
Hi @edehvictor, thanks for turning around the last round so quickly. All the functional fixes from the QA triage are in and working. Before this can be merged, there's one more pass on design alignment and testing evidence. Design wasn't spelt out explicitly in the original bounty. It was communicated afterwards, and the bounty tier and context were upgraded to cover it. To make this the final round, here is everything in one checklist. Each item is something we can check directly. Design reference: [design reference] 1. Storybook
2. Network selector: use the design system, not a custom component
3. Main (Bridge) screen: use of spaceThe goal is not a pixel-perfect copy of the reference. It's using screen space the way the reference does, so the widget works on a real phone inside GoodWallet.
4. Bridge progress screen
5. Evidence required in the PR
Optional (from the previous review)
If anything in the reference is unclear or conflicts with what the SDK provides (for example, timestamps per step), ask here before building it and we'll decide together. Thanks! |
|
|
@edehvictor Thanks — a solid set of changes. The switch hint and rejection handling are in. The reviewed-fee guard is a good catch, since SDK 1.0.6 re-estimates the provider fee at send time. Blocking Retry when a sent transaction’s receipt is unavailable is the right call. I ran everything locally on 7ab28b3: unit tests 25/25, bridging-widget lint clean, full workspace build 18/18, and Playwright 74/75 across the bridge and streaming suites. Workspace lint fails only on the existing governance ProfileTextAreaField import, which this PR doesn’t touch. Please address:
@L03TJ3, the shared Select/Stepper changes need your OK. |
|
Thanks @pheobeayo. I’ve fixed the mobile truncation: the title/network group can wrap beside the wallet control, and Select labels can wrap without clipping. I added four wider-font regression cases covering Ethereum in both source and destination selectors at 360px and 390px, in light and dark themes. Local verification passed: 78/78 Playwright tests, 25/25 unit tests, both package builds, and targeted lint. I also refreshed the mobile evidence. These checks use Windows Chromium with deliberately wider font metrics, so I’d appreciate a Linux recheck rather than claiming that environment is verified. I’ve explicitly documented the shared Select/Stepper changes and their impact in the PR description. @L03TJ3, approval to retain those shared changes here still pending. |
|
@edehvictor Thanks — I reran on Linux Chromium against 4c2cd39: Playwright 79/79 (bridge + streaming, one worker, no retries), including the header test that failed for me earlier, plus unit tests 25/25 and bridging-widget lint clean. The header fix holds with real Linux fonts; the title stays intact and the badge wraps. Minor polish: at 360px with real fonts, the To placeholder “Select network” wraps to two lines, so the To picker is taller than From and the From/To labels no longer line up. “Ethereum” also crowds its dropdown arrow. Top-aligning that row or shortening the placeholder would fix it. The main remaining item is the live transfer. The Nov 19 Celo attempt approved successfully but then hit a network error at the bridge step, and we don’t know why. Before merge, I’d like that root-caused, or a successful transfer recorded in any direction with source/destination explorer links. If MetaMask blocks recording the signing screen, recording the widget before and after signing plus the explorer links is fine, as you proposed. A small amount on a route your wallet can fund works (Celo → Fuse, for example); it doesn’t have to be Fuse-sourced. @L03TJ3 two items for you: sign-off on the reference comparison in design-evidence.md, and the shared Select/Stepper changes. |









Summary
Follow-up to #251 for issue #257. This PR makes the bridge flow chain-aware and addresses review feedback in the current branch.
Issue #257 checklist
The checked items below describe implementation and local QA. The separate funded manual check is documented below.
Shared UI scope (maintainer approval pending)
This PR also changes two shared components in
packages/ui, as requested in the design-alignment review:src/components-test/Select.tsx: replaces the custom selector with Tamagui Select and its mobile bottom-sheet adaptation while preservingoptions,value,onValueChange,placeholder, anddisabled. It adds optional leading option content and accessibility/test labels. The trigger now exposes acomboboxrole; this affects consumers such as the streaming widget, whose interaction assertions were updated accordingly.src/components/Stepper.tsx: adds optional per-step detail content for available bridge timestamps. Existing steps without details keep their existing rendering.These are shared design-system changes, not bridge-only internals. Lewis's approval of keeping them in this PR is still pending; I have not treated Phoebe's functional review as approval of this shared scope. The bridge and streaming regression suites cover the affected selector behavior. The latest font-width layout correction is being verified locally and is not pushed yet.
Verification
8feadd7with one worker and no retries.Manual live-wallet check
Reference versus result
These compare the lead's designs with the current
8feadd7UI captured in deterministic Storybook/Playwright fixtures. Routes, amounts, fees, and delivery states differ between reference and result. Fixture fees are mocked; these images do not establish live fees or pixel parity.Mobile access checks: Review actions and progress tracking and background action at 390 x 504.
Verification status
pnpm buildandpnpm lintremain uncertified in this sandbox: its pnpm 11/package-linking restriction blocks the repository's pnpm 9.15 entrypoints. Direct UI build reports an unrelatedTS2322inpackages/ui/src/components-test/Select.tsx; direct workspace lint reports an unrelated unused governance import. Bridging-widget lint passes.playwright-demowas skipped andauthorize-testsis waiting for maintainer authorization. Local Playwright success does not substitute for green CI.