Skip to content

feat: add feature flag to toggle Verifiers accordion in TokenDrawer#260

Open
markshenouda wants to merge 4 commits intofeat/dev-3.0-no-landingfrom
feat/verifiers-accordion-toggle
Open

feat: add feature flag to toggle Verifiers accordion in TokenDrawer#260
markshenouda wants to merge 4 commits intofeat/dev-3.0-no-landingfrom
feat/verifiers-accordion-toggle

Conversation

@markshenouda
Copy link
Member

@markshenouda markshenouda commented Mar 23, 2026

Add SHOW_VERIFIERS_ACCORDION boolean at the top of TokenDrawer.tsx to enable/disable the verifiers expanding section and chevron. Set to false until the backend is ready; flip to true to re-enable.

Screenshot 2026-03-23 at 3 37 13 PM

Closing issues

closes #257

Add SHOW_VERIFIERS_ACCORDION boolean at the top of TokenDrawer.tsx to
enable/disable the verifiers expanding section and chevron. Set to false
until the backend is ready; flip to true to re-enable.
Copy link

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.

Pull request overview

Adds a local feature flag to hide/disable the Verifiers accordion UI in TokenDrawer, allowing the section to be re-enabled later when backend/data is ready.

Changes:

  • Introduces SHOW_VERIFIERS_ACCORDION boolean to toggle the Verifiers column/accordion behavior.
  • Conditionally renders the Verifiers <th>, chevron <td>, and expanded verifier row only when enabled.
  • Adds a safe fallback for verifiers data when the accordion is disabled.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +283 to +290
// Get verifiers for the destination network (safe fallback to empty array)
const destinationVerifiers = SHOW_VERIFIERS_ACCORDION
? (getVerifiersByNetwork({
networkId: destinationChain,
environment,
version: Version.V1_2_0,
}) ?? [])
: []
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

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

getVerifiersByNetwork returns Verifier entries that only contain a single address (plus id/name/type/network/logo). The Verifiers accordion content later renders both a "Source verifier address" and "Destination verifier address" column, but there isn’t enough data here to populate distinct values, so the UI will necessarily show duplicate/misleading addresses when the flag is enabled. Consider updating the accordion table to match the available data (single address) or extending the config/data shape before re-enabling.

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

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

I think verifiers are per network, no matter destination or source, but I'll check

Copy link

@Zelig880 Zelig880 left a comment

Choose a reason for hiding this comment

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

Changes needed

isLoadingRateLimits,
}: NetworkLaneRowProps) {
return (
<tr

Choose a reason for hiding this comment

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

You miss understood me.

What I meant was that we should split the TR that is an accordion and the one that is not. There are too many conditional in this file (over 20) for it to be just one component

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.

3 participants