Graceful Degradation with Feature Flags and Capacity Shedding#137
Merged
JamesEjembi merged 3 commits intoJul 22, 2026
Merged
Conversation
…shedding - Add FeatureFlagProvider with URL param and localStorage overrides - Add capacity-shedding module with configurable thresholds and priority levels - Add CapacityIndicator banner for degraded/critical state visibility - Add DegradableFeature wrapper for graceful component fallback - Add CapacitySheddingProvider for periodic health monitoring - Update layout with new providers and capacity indicator - Wrap staking page with DegradableFeature for feature flag control - Add comprehensive Playwright tests for all degradation scenarios Closes VeriNode-Labs#107
…ing system - Fix stale closure in FeatureFlagProvider onPopState callback (useRef) - Fix updateEntry not finding entries with null txHash in recoverFromRefresh - Fix rpcClient sendTransaction always returning 'confirmed' regardless of actual RPC status - Add handling for 'pending' status in RetryWatcher and useSorobanStaking
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements system-wide graceful degradation with feature flags and capacity shedding as described in issue #107.
Changes
Feature Flag System (src/lib/feature-flags.ts, src/components/FeatureFlagProvider.tsx)
Capacity Shedding (src/lib/capacity-shedding.ts, src/components/CapacitySheddingProvider.tsx)
Graceful Degradation (src/components/DegradableFeature.tsx)
UI Indicators (src/components/CapacityIndicator.tsx)
Client Broadcast Recovery Queue
Staking Integration
Tests
Bug Fixes
Closes #107