Skip to content
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

feat: disable custom transactions for colony version less then 17 and show an error #4262

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Nortsova
Copy link
Contributor

@Nortsova Nortsova commented Feb 9, 2025

Description

For any colony version older than v17, the following error callout should show when "Custom transaction" action is selected:
"Custom transactions requires Colony Network version 17 or higher."
It should also include a link to the Upgrade colony action with the link text "Upgrade colony".

Testing

Step 1. Open src/components/v5/common/ActionSidebar/partials/hooks.ts and update line 116 to 18 version.
Step 2. Open "Custom transactions"
Step 3. Verify that form is disabled and you can see an error
image

Step 4. Verify that 'Upgrade colony' button redirect to 'Upgrade colony' action

Step 5. Open src/components/v5/common/ActionSidebar/partials/hooks.ts and update line 116 to 17 version.
Step 6. Verify that the form is enabled again

Resolves #4261

@Nortsova Nortsova requested a review from a team as a code owner February 9, 2025 17:54
mmioana
mmioana previously approved these changes Feb 10, 2025
Copy link
Contributor

@mmioana mmioana left a comment

Choose a reason for hiding this comment

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

Really nice work on this @Nortsova 🙌

After changing the minimum version to 18, the banner is shown and the form is disabled

Screen.Recording.2025-02-10.at.10.00.31.mov

After reverting the change, the form is re-enabled and the banner is no longer shown

Screenshot 2025-02-10 at 10 01 01

Nice work! ✨

Copy link
Contributor

@mmioana mmioana left a comment

Choose a reason for hiding this comment

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

Re-approving this 🥇 nice work and thanks for adding the missing dependency!

@Nortsova Nortsova self-assigned this Feb 10, 2025
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.

[Arbitrary Txs] Show error when colony version is incompatible with arbitrary transactions
2 participants