Skip to content

Refactor Dataset component to avoid cross-page store dependency #1073

@coderabbitai

Description

@coderabbitai

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions