Overview
App.tsx checks device capability for various features and logs failures, but does not update the degradation store to actually disable those features. The result: features that should be degraded remain enabled and fail at runtime.
Specifications
Features:
- Connect capability check failures to the
degradationStore
- Disable each feature whose capability check fails
- Show a degraded-mode indicator in the UI for affected features
Tasks:
- After each capability check failure, call
degradationStore.disableFeature(featureName)
- Add a
DegradedModeWarning component to the affected screens
- Write tests for each capability → degradation mapping
Impacted Files:
App.tsx
src/store/degradationStore.ts
src/components/common/DegradedModeWarning.tsx (new)
Acceptance Criteria
- Capability failure correctly disables the associated feature
- Degraded features show a visible indicator to the user
- Each capability → degradation mapping is tested
Overview
App.tsxchecks device capability for various features and logs failures, but does not update the degradation store to actually disable those features. The result: features that should be degraded remain enabled and fail at runtime.Specifications
Features:
degradationStoreTasks:
degradationStore.disableFeature(featureName)DegradedModeWarningcomponent to the affected screensImpacted Files:
App.tsxsrc/store/degradationStore.tssrc/components/common/DegradedModeWarning.tsx(new)Acceptance Criteria