-
Notifications
You must be signed in to change notification settings - Fork 125
feat: Failover history tab #1071
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: Failover history tab #1071
Conversation
There was a problem hiding this 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_ENABLEDfeature flag - Implements a new placeholder
DomainPageFailoverscomponent - 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>
8698074 to
a6626c6
Compare
There was a problem hiding this 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.
Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>
Summary
Test plan
Unit tests + ran locally.
Disabled
Enabled