Skip to content

Conversation

@gfanton
Copy link
Member

@gfanton gfanton commented Dec 19, 2025

This PR adds a new params:changed custom event to gnoweb, enabling secure parameter update.

cc @jinoosss

@gfanton gfanton requested a review from alexiscolin December 19, 2025 17:14
@gfanton gfanton self-assigned this Dec 19, 2025
@github-actions github-actions bot added 📦 ⛰️ gno.land Issues or PRs gno.land package related 🌍 gnoweb Issues & PRs related to gnoweb and render labels Dec 19, 2025
@Gno2D2
Copy link
Collaborator

Gno2D2 commented Dec 19, 2025

🛠 PR Checks Summary

All Automated Checks passed. ✅

Manual Checks (for Reviewers):
  • IGNORE the bot requirements for this PR (force green CI check)
Read More

🤖 This bot helps streamline PR reviews by verifying automated checks and providing guidance for contributors and reviewers.

✅ Automated Checks (for Contributors):

🟢 Maintainers must be able to edit this pull request (more info)
🟢 Changes related to gnoweb must be reviewed by its codeowners

☑️ Contributor Actions:
  1. Fix any issues flagged by automated checks.
  2. Follow the Contributor Checklist to ensure your PR is ready for review.
    • Add new tests, or document why they are unnecessary.
    • Provide clear examples/screenshots, if necessary.
    • Update documentation, if required.
    • Ensure no breaking changes, or include BREAKING CHANGE notes.
    • Link related issues/PRs, where applicable.
☑️ Reviewer Actions:
  1. Complete manual checks for the PR, including the guidelines and additional checks if applicable.
📚 Resources:
Debug
Automated Checks
Maintainers must be able to edit this pull request (more info)

If

🟢 Condition met
└── 🟢 And
    ├── 🟢 The base branch matches this pattern: ^master$
    └── 🟢 The pull request was created from a fork (head branch repo: gfanton/gno)

Then

🟢 Requirement satisfied
└── 🟢 Maintainer can modify this pull request

Changes related to gnoweb must be reviewed by its codeowners

If

🟢 Condition met
└── 🟢 And
    ├── 🟢 The base branch matches this pattern: ^master$
    └── 🟢 A changed file matches this pattern: ^gno.land/pkg/gnoweb/ (filename: gno.land/pkg/gnoweb/frontend/js/controller-action-function.ts)

Then

🟢 Requirement satisfied
└── 🟢 Or
    ├── 🟢 Or
    │   ├── 🔴 And
    │   │   ├── 🔴 Pull request author is user: alexiscolin
    │   │   └── 🔴 This user reviewed pull request: gfanton (with state "APPROVED")
    │   └── 🟢 And
    │       ├── 🟢 Pull request author is user: gfanton
    │       └── 🟢 This user reviewed pull request: alexiscolin (with state "APPROVED")
    └── 🔴 And
        ├── 🟢 Not (🔴 Pull request author is user: alexiscolin)
        ├── 🔴 Not (🟢 Pull request author is user: gfanton)
        └── 🟢 Or
            ├── 🟢 This user reviewed pull request: alexiscolin (with state "APPROVED")
            └── 🔴 This user reviewed pull request: gfanton (with state "APPROVED")

Manual Checks
**IGNORE** the bot requirements for this PR (force green CI check)

If

🟢 Condition met
└── 🟢 On every pull request

Can be checked by

  • Any user with comment edit permission

@Kouteki Kouteki moved this from Triage to In Review in 🧙‍♂️Gno.land development Dec 20, 2025
@jinoosss jinoosss mentioned this pull request Dec 22, 2025
@dongwon8247 dongwon8247 requested a review from jinoosss December 30, 2025 01:25
Copy link
Member

@jinoosss jinoosss left a comment

Choose a reason for hiding this comment

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

I believe this work will enable seamless integration with the wallet.

@codecov
Copy link

codecov bot commented Jan 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@alexiscolin alexiscolin self-assigned this Jan 8, 2026
Copy link
Member

@alexiscolin alexiscolin left a comment

Choose a reason for hiding this comment

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

I needed to fill in the data-action-function-pkgpath-value in the exec form to make it work.

@alexiscolin alexiscolin requested a review from aeddi January 8, 2026 13:04
@alexiscolin
Copy link
Member

alexiscolin commented Jan 9, 2026

@jinoosss Is it sufficient to open the wallet when the user clicks the "Submit" button on the form, assuming the Adena extension is installed of course?

I believe the ideal flow would be: the user clicks on submit, and if Adena is installed, the wallet extension opens with the transaction ready to be approved. Perhaps the default gnokey command should blocked and not be displayed?

@jinoosss
Copy link
Member

Hi @alexiscolin , I agree with the flow you mentioned.

If the Submit button behaves the same way as navigating to a txlink, Adena wallet can be opened.
However, if you want to handle it with a separate command, Adena can either intercept it or read an additional event.

@alexiscolin
Copy link
Member

If the Submit button behaves the same way as navigating to a txlink, Adena wallet can be opened.
However, if you want to handle it with a separate command, Adena can either intercept it or read an additional event.

Hi @jinoosss , actually, it's not a txlink; it's a form (input type="submit") submit event that needs to be blocked by the wallet (the flow I mentioned above). That's why I asked the question :)

private _handleSubmit(event: Event): void {

@jinoosss
Copy link
Member

@alexiscolin ,
I understand. I believe Adena can capture the event first and prevent its propagation.

@alexiscolin alexiscolin merged commit ccf1cf9 into gnolang:master Jan 14, 2026
100 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in 💪 Bounties & Worx Jan 14, 2026
jaekwon pushed a commit that referenced this pull request Jan 23, 2026
This PR adds a new `params:changed` custom event to gnoweb, enabling
secure parameter update.

cc @jinoosss

---------

Co-authored-by: Alexis Colin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🌍 gnoweb Issues & PRs related to gnoweb and render 📦 ⛰️ gno.land Issues or PRs gno.land package related

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants