Description
The Dataset component in the SearchPage is currently using useIngestStatsStore from the IngestPage, which creates inappropriate coupling between different pages/components.
Context
This architectural concern was identified during code review where the Dataset component imports and uses a store from another page, violating good separation of concerns.
Expected Outcome
The Dataset component should be refactored to either:
- Use a shared/global store for common data like refresh intervals
- Have its own local state management
- Receive necessary data through props
References
Description
The Dataset component in the SearchPage is currently using
useIngestStatsStorefrom the IngestPage, which creates inappropriate coupling between different pages/components.Context
This architectural concern was identified during code review where the Dataset component imports and uses a store from another page, violating good separation of concerns.
Expected Outcome
The Dataset component should be refactored to either:
References