Skip to content

chore: dev sync v2.12.2#2816

Merged
blushi merged 3 commits intodevfrom
fix-dev-sync-v2.12.2
Mar 24, 2026
Merged

chore: dev sync v2.12.2#2816
blushi merged 3 commits intodevfrom
fix-dev-sync-v2.12.2

Conversation

@blushi
Copy link
Copy Markdown
Member

@blushi blushi commented Mar 24, 2026

Description

Closes: #XXXX or regen-network/rnd-dev-team#XXXX


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • provided a link to the relevant issue or specification
  • provided instructions on how to test
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

How to test

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items
.

I have...

  • confirmed all author checklist items have been addressed
  • reviewed code correctness and readability
  • verified React components follow DRY principles
  • reviewed documentation is accurate
  • reviewed tests
  • manually tested (if applicable)

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 24, 2026

Deploy Preview for terrasos ready!

Name Link
🔨 Latest commit d75a500
🔍 Latest deploy log https://app.netlify.com/projects/terrasos/deploys/69c246bf6ad1e0000874ba7d
😎 Deploy Preview https://deploy-preview-2816--terrasos.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request primarily performs a routine version synchronization to v2.12.2 across the monorepo. Additionally, it includes a refactor of the project migration logic, enhancing its flexibility by allowing a fee granter to be specified during the migration process, which is crucial for organization-related project migrations.

Highlights

  • Version Bump: The project's root and web-marketplace package versions were updated to 2.12.2.
  • Changelog Update: Changelog files were updated to reflect the new version and a bug fix related to project migration to an organization.
  • Project Migration Refactor: The useMigrateProject hook was refactored to accept a feeGranter parameter, allowing for more flexible handling of migration fees, and its usage was updated in relevant components.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@blushi blushi merged commit d75a500 into dev Mar 24, 2026
10 of 14 checks passed
@blushi blushi deleted the fix-dev-sync-v2.12.2 branch March 24, 2026 08:10
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request bumps the version to v2.12.2 and refactors the useMigrateProject hook to accept an options object instead of positional arguments. This is a good improvement for code clarity. However, during this refactoring, the feeGranter parameter was missed in two of the call sites, which could lead to issues with transaction fee granting. I've left comments with suggestions on how to fix this.

Comment on lines +40 to +43
const { migrateProject } = useMigrateProject({
project,
navigateToOrg: true,
});
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The feeGranter property is missing in the call to useMigrateProject. The previous implementation of useMigrateProject fetched the orgDao and used its address as the feeGranter. After refactoring, this responsibility is moved to the caller, but it seems to have been missed here. The daoOrganization is already available in this component's scope.

Suggested change
const { migrateProject } = useMigrateProject({
project,
navigateToOrg: true,
});
const { migrateProject } = useMigrateProject({
project,
navigateToOrg: true,
feeGranter: daoOrganization?.address,
});

Comment on lines +85 to +88
const { migrateProject } = useMigrateProject({
project,
navigateToOrg: true,
});
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The feeGranter property is missing in the call to useMigrateProject. The previous implementation of useMigrateProject fetched the orgDao and used its address as the feeGranter. After refactoring, this responsibility is moved to the caller, but it seems to have been missed here. You'll need to import useDaoOrganization and use it to get the feeGranter.

Here's how you can fix it:

const daoOrganization = useDaoOrganization();
const { migrateProject } = useMigrateProject({
  project,
  navigateToOrg: true,
  feeGranter: daoOrganization?.address,
});

Don't forget to add import { useDaoOrganization } from 'hooks/useDaoOrganization'; at the top of the file.

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.

1 participant