Skip to content

feat: filter out disabled offchain strategies #1246

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

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

Conversation

wa0x6e
Copy link
Contributor

@wa0x6e wa0x6e commented Mar 9, 2025

Summary

Toward https://github.com/snapshot-labs/workflow/issues/227

This PR will hide disabled offchain strategies

How to test

  1. Wait for feat: disable multichain strategy score-api#1269 to be merged
  2. Go to an offchain space, and open the voting strategies modal
  3. The multichain strategy should be missing

@wa0x6e wa0x6e requested a review from Copilot March 9, 2025 21:23
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

PR Overview

This PR introduces a filter to hide offchain strategies that have been disabled, addressing the issue outlined in snapshot-labs/workflow#227.

  • Added an optional "disabled" property to the StrategyTemplate type in types.ts.
  • Updated the strategy filtering logic in Modal/Strategies.vue to exclude strategies marked as disabled.

Reviewed Changes

File Description
apps/ui/src/networks/types.ts Added a new optional "disabled" flag for strategies.
apps/ui/src/components/Modal/Strategies.vue Updated filtering logic to exclude disabled strategies.

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

@wa0x6e wa0x6e force-pushed the fix-filter-out-disabled-strategies branch from 789cd15 to efc08a1 Compare March 10, 2025 11:32
@wa0x6e wa0x6e force-pushed the fix-filter-out-disabled-strategies branch from efc08a1 to c59d5cb Compare March 10, 2025 14:40
@wa0x6e wa0x6e marked this pull request as ready for review March 10, 2025 14:40
@wa0x6e wa0x6e requested a review from ChaituVR March 10, 2025 14:40
@wa0x6e
Copy link
Contributor Author

wa0x6e commented Mar 10, 2025

DO NOT MERGE UNTIL RELEASE DAY

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.

2 participants