Skip to content

Conversation

@adhityamamallan
Copy link
Member

@adhityamamallan adhityamamallan commented Nov 11, 2025

Summary

  • Add placeholder "Failovers" tab for domain's failover history
  • Update DomainPageTabs tests to support new feature flag behaviour

Test plan

Unit tests + ran locally.

Disabled

Screenshot 2025-11-11 at 13 37 49

Enabled

Screenshot 2025-11-11 at 13 38 32

@adhityamamallan adhityamamallan marked this pull request as ready for review November 11, 2025 12:42
@adhityamamallan adhityamamallan changed the title Failover history tab feat: Failover history tab Nov 11, 2025
@Assem-Uber Assem-Uber requested a review from Copilot November 12, 2025 14:04
Copilot finished reviewing on behalf of Assem-Uber November 12, 2025 14:06
Copy link
Contributor

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

This PR adds a feature-flagged "Failovers" tab to the domain page, controlled by the FAILOVER_HISTORY_ENABLED configuration. The tab displays a placeholder component and is hidden when the feature flag is disabled.

Key Changes:

  • Adds conditional tab rendering based on the FAILOVER_HISTORY_ENABLED feature flag
  • Implements a new placeholder DomainPageFailovers component
  • Updates test suite to verify tab visibility for both enabled and disabled states

Reviewed Changes

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

Show a summary per file
File Description
domain-page-tabs.tsx Adds feature flag check and conditional tab filtering logic using useSuspenseConfigValue and lodash/omit
domain-page-tabs.test.tsx Updates tests to verify tab rendering with feature flag enabled/disabled, adds error handling test
domain-page-failovers.tsx Creates new placeholder component for the Failovers tab
domain-page-tabs.config.ts Registers the new Failovers tab with icon, content component, and error configuration
resolver-schemas.ts Adds schema definition for FAILOVER_HISTORY_ENABLED boolean config
failover-history-enabled.ts Implements resolver that reads CADENCE_FAILOVER_HISTORY_ENABLED environment variable
dynamic.config.ts Registers FAILOVER_HISTORY_ENABLED as a public request-time config
resolved-config-values.ts Adds mock value for FAILOVER_HISTORY_ENABLED in test fixtures

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

Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>
Copy link
Contributor

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

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


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

@adhityamamallan adhityamamallan merged commit 78e685a into cadence-workflow:master Nov 13, 2025
12 checks passed
Assem-Uber pushed a commit to Assem-Uber/cadence-web that referenced this pull request Nov 19, 2025
Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>
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