Skip to content

Goodbridge page#631

Merged
L03TJ3 merged 7 commits into
GoodDollar:masterfrom
Gutopro:goodbridge_page
Apr 23, 2026
Merged

Goodbridge page#631
L03TJ3 merged 7 commits into
GoodDollar:masterfrom
Gutopro:goodbridge_page

Conversation

@Gutopro
Copy link
Copy Markdown
Collaborator

@Gutopro Gutopro commented Apr 1, 2026

Description

This PR integrates the MessagePassingBridge

About #628

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

Checklist:

  • PR title matches follow: (Feature|Bug|Chore) Task Name
  • My code follows the style guidelines of this project
  • I have followed all the instructions described in the initial task (check Definitions of Done)
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have added reference to a related issue in the repository
  • I have added a detailed description of the changes proposed in the pull request. I am as descriptive as possible, assisting reviewers as much as possible.
  • I have added screenshots related to my pull request (for frontend tasks)
  • I have pasted a gif showing the feature.
  • @mentions of the person or team responsible for reviewing proposed changes

Summary by Sourcery

Add a new Good Bridge page integrating the MessagePassingBridge flow and expose it in navigation with feature flag control across supported networks.

New Features:

  • Introduce a Good Bridge page that embeds the MessagePassingBridge controller within the existing PageLayout.
  • Add a Good Bridge navigation entry and route, gated by a dedicated feature flag per network.

Enhancements:

  • Extend feature flag configuration to support enabling or disabling the Good Bridge per supported chain.

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey - I've left some high level feedback:

  • The new goodBridgeEnabled feature flag is configured in useFeaturesEnabled but not actually used for the sidebar entry or route visibility, so consider wiring it through (similar to microBridgeEnabled) to control when /goodbridge is shown.
  • There is an index.tsx~ file added under src/pages/gd/GoodBridge/ that looks like an editor backup and should probably be removed from the PR.
  • The Good Bridge sidebar item currently reuses the bridgeEnabled condition (!isMinipay || bridgeEnabled), which may be tied to the micro-bridge; consider using a distinct check aligned with goodBridgeEnabled to avoid coupling the two features.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The new `goodBridgeEnabled` feature flag is configured in `useFeaturesEnabled` but not actually used for the sidebar entry or route visibility, so consider wiring it through (similar to `microBridgeEnabled`) to control when `/goodbridge` is shown.
- There is an `index.tsx~` file added under `src/pages/gd/GoodBridge/` that looks like an editor backup and should probably be removed from the PR.
- The `Good Bridge` sidebar item currently reuses the `bridgeEnabled` condition (`!isMinipay || bridgeEnabled`), which may be tied to the micro-bridge; consider using a distinct check aligned with `goodBridgeEnabled` to avoid coupling the two features.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@Gutopro
Copy link
Copy Markdown
Collaborator Author

Gutopro commented Apr 1, 2026

hi @L03TJ3 here's the new PR also here's my wallet address
0x8798790bd86170C1F5bF9d681E9038Be94C4B71F

@L03TJ3 L03TJ3 linked an issue Apr 2, 2026 that may be closed by this pull request
10 tasks
@L03TJ3
Copy link
Copy Markdown
Collaborator

L03TJ3 commented Apr 2, 2026

@Gutopro Send you some CELO.
set the bridge to development environment.
you can claim dev G$'s on Celo on: dev.gooddapp.org

That should give you enough to bridge from Celo > Fuse or XDC

@Gutopro
Copy link
Copy Markdown
Collaborator Author

Gutopro commented Apr 3, 2026

@Gutopro Send you some CELO. set the bridge to development environment. you can claim dev G$'s on Celo on: dev.gooddapp.org

That should give you enough to bridge from Celo > Fuse or XDC

thanks @L03TJ3 ive seen the Celo, how can i set my bridge to development please?

@Gutopro
Copy link
Copy Markdown
Collaborator Author

Gutopro commented Apr 3, 2026

also just a few things

  • i cant claim G$, the facial verification fails with an error saying login information is missing
  • i'm using meta mask, when i connect my wallet to the bridge my balance isnt reflected on the page but the wallet connects successfully.
image image

@L03TJ3

@Gutopro
Copy link
Copy Markdown
Collaborator Author

Gutopro commented Apr 6, 2026

Hi @L03TJ3 any updates on this?

@Gutopro
Copy link
Copy Markdown
Collaborator Author

Gutopro commented Apr 7, 2026

@L03TJ3 it's been awhile and I haven't gotten any feedback from you

@L03TJ3
Copy link
Copy Markdown
Collaborator

L03TJ3 commented Apr 7, 2026

Up for review today, weekend in the middle

@L03TJ3
Copy link
Copy Markdown
Collaborator

L03TJ3 commented Apr 7, 2026

@Gutopro

  1. make sure to initially claim the dev G$'s on https://dev.gooddapp.org
  2. locally you will have to setup the .env file and if you followed this instructions: Feat: integrate the MessagePassingBridge #628 (comment)
    your local dapp should already be set up to the development-environment.

If you have not been able to claim dev G$'s, what would you expect your balance to show/be?

@Gutopro
Copy link
Copy Markdown
Collaborator Author

Gutopro commented Apr 7, 2026

I tried claiming the G$ but the verification keeps failing just like in the screenshot I shared earlier

@L03TJ3
Copy link
Copy Markdown
Collaborator

L03TJ3 commented Apr 7, 2026

@Gutopro I just tried and it worked, I don't get the 'information missing' screen.
so you'll need to provide a bit more details so I can assist better.
what can also help is a video demonstrating the flow and issue

@Gutopro
Copy link
Copy Markdown
Collaborator Author

Gutopro commented Apr 7, 2026

here's a link to the video on loom.
https://www.loom.com/share/23046953a3ca4ac8b3a7a78834b2c1c2

initially the facial verification wouldnt work but on this try it did, then it failed at the location verification as seen in the video, i'm not using any vpn so i wonder why it wouldnt work.
@L03TJ3

@L03TJ3
Copy link
Copy Markdown
Collaborator

L03TJ3 commented Apr 7, 2026

@Gutopro Okay, confirmed the bug on my side too. I have disabled this flow now. if you clear your cache/hard refresh the claim page you should be able to claim

@Gutopro
Copy link
Copy Markdown
Collaborator Author

Gutopro commented Apr 7, 2026

thank you. i was able to get the G$. i made a test video demonstrating my progress with the page so far and this is what i have
https://www.loom.com/share/c662ff9ee30440d48071a8ddfe784293
@L03TJ3

@Gutopro
Copy link
Copy Markdown
Collaborator Author

Gutopro commented Apr 8, 2026

Any comments on this? @L03TJ3

@Gutopro
Copy link
Copy Markdown
Collaborator Author

Gutopro commented Apr 10, 2026

Hi @L03TJ3 I tried reaching you on telegram but I couldnt, it told me I could only text a mutual contact. As seen in the video on the Good bridge page the bridge assets button doesn't work on click. Can you have a look at it?

@L03TJ3
Copy link
Copy Markdown
Collaborator

L03TJ3 commented Apr 10, 2026

@Gutopro You can always reach out to me in the public channels by pinging: @demewlingoak
there should be no issue to contact me, more people approach me wihtout me knowing them
Might be a configuration on your side that prevents it

Will have a look in a bit

@L03TJ3
Copy link
Copy Markdown
Collaborator

L03TJ3 commented Apr 10, 2026

.... right...

My bad, apologies. forgot we never released dev contracts for the message-passing-bridge.
you need to set your .env to 'production-celo' and use production G$'s.. @Gutopro

@Gutopro
Copy link
Copy Markdown
Collaborator Author

Gutopro commented Apr 10, 2026

Thanks @L03TJ3 however isn't production G$ real G$? I don't have that.

@L03TJ3
Copy link
Copy Markdown
Collaborator

L03TJ3 commented Apr 10, 2026

@Gutopro send you some on this address: 0x8798790bd86170C1F5bF9d681E9038Be94C4B71F

@Gutopro
Copy link
Copy Markdown
Collaborator Author

Gutopro commented Apr 10, 2026

Thank you @L03TJ3 I'll keep you updated on my progress

@Gutopro
Copy link
Copy Markdown
Collaborator Author

Gutopro commented Apr 11, 2026

@Gutopro
Copy link
Copy Markdown
Collaborator Author

Gutopro commented Apr 13, 2026

@L03TJ3 can you have a look at this please> https://www.loom.com/share/7cb4dbd6c37243d9963c6211fd69bde0

it works now @L03TJ3

@Gutopro
Copy link
Copy Markdown
Collaborator Author

Gutopro commented Apr 14, 2026

@L03TJ3 please any updates on this?

@Gutopro
Copy link
Copy Markdown
Collaborator Author

Gutopro commented Apr 16, 2026

Hi @L03TJ3 it's been a while. I messaged you on telegram but I didn't get a response. Could you please review this and provide feedback?

Copy link
Copy Markdown
Collaborator

@L03TJ3 L03TJ3 left a comment

Choose a reason for hiding this comment

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

For the rest, looks good

Comment on lines +229 to +233
{
route: '/goodbridge',
text: 'Good Bridge',
show: !isMinipay || goodBridgeEnabled,
},
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Lets make GoodBridge (one word, no space) the first on in the side-bar list.
and rename microbridge to > Fuse/Celo Bridge

to make the distinction between the two a bit more clear.
its fine to only change the UI/display name, does not have to be renamed everywhere

@Gutopro
Copy link
Copy Markdown
Collaborator Author

Gutopro commented Apr 17, 2026

Hi @L03TJ3 I've made the changes could you please have a look at it?

@L03TJ3 L03TJ3 self-requested a review April 23, 2026 15:39
@L03TJ3 L03TJ3 merged commit 8b4f4ff into GoodDollar:master Apr 23, 2026
2 of 3 checks passed
L03TJ3 added a commit that referenced this pull request May 8, 2026
* fix: bump sdk-v2 with reserve fix

* Fix: Restore claim disabled message modal overlay (#611) (#626)

* fix: replace useModal with absolute overlay for disabled claim state

* fix: gate modal display with claimEnabled flag and remove comments

* fix: use standard img tag to ensure maintenance asset renders

* chore: restore valid developer comments and remove temporary ones

* fixes: insufficient gas error message, disconnect after reload, cached approval amount

* chore: lingui

* include xdc production contracts

* fix: also update gd web3-mono dependencies with goodprotocol xdc prod contracts

* chore: release qa version 1.119.0 [skip build]

* chore: release qa version 1.120.0 [skip build]

* chore: release prod version 1.121.0 [skip build]

* fix: enforce reconnect for stale web3-onboard connections

* fix: remove legacy model open call

* fix: add option to exclude rpcs that are not working, configure through env

* temp-fix: default to show celo price

* chore: lingui

* chore: release qa version 1.122.0 [skip build]

* chore: release prod version 1.123.0 [skip build]

* fix: stop forcing celo gas price (#632)

* fix: stop forcing celo gas price

* chore: bump gooddollar sdks

---------

Co-authored-by: LewisB <lewis@ikigaistudios.eu>

* chore: release qa version 1.124.0 [skip build]

* chore: release prod version 1.125.0 [skip build]

* Goodbridge page (#631)

* add GoodBridge page to src/pages/gd

* update sideBar.tsx

* feat: implement GoodBridge route and update connect wallet copy

* Delete src/pages/gd/GoodBridge/index.tsx~

* Add goodBridgeEnabled to payload destructuring

* Fix typo in goodBridgeEnabled variable

* Update bridge names in SideBar component

* dont estimate gas on minipay

* remove duplicate key for layerzero bridge feature enabled

* chore: lingui

* enable lzbridge on dev

* bump vercel to fix gh actions deployments

* chore: lingui

* chore: release qa version 1.126.0 [skip build]

* chore: release qa version 1.127.0 [skip build]

* chore: release prod version 1.128.0 [skip build]

* feat: integrate savings widget and update FAQ section

* made corrections

* effected necessary changes

* Update src/components/SideBar.tsx

---------

Co-authored-by: LewisB <lewis@gooddollar.org>
Co-authored-by: Victor Edeh <edehvictor715@gmail.com>
Co-authored-by: Techadmin <techadmin@gooddollar.org>
Co-authored-by: sirpy <hadar@gooddollar.org>
Co-authored-by: LewisB <lewis@ikigaistudios.eu>
Co-authored-by: Nicholas Igber <111025771+Gutopro@users.noreply.github.com>
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.

Feat: integrate the MessagePassingBridge

2 participants