Skip to content

Refactor Dashboard.jsx to Remove Local File Dependencies #179

@9LogM

Description

@9LogM

Description:
The Dashboard.jsx component currently relies on local file selection and processing to display simulation data. This approach conflicts with the updated system where all data is managed remotely via backend APIs. The component needs to be refactored to eliminate local file handling and ensure it fully integrates remote data fetching.

Tasks:

  • Remove all local file handling code, including:
    • File input elements.
    • Logic for processing local files.
  • Implement remote data integration:
    • Fetch and process data from backend APIs.
    • Update state variables to reflect remote data structure.
  • Refactor and clean up:
    • Adjust functions to work with remote data.
    • Remove redundant or unused code related to local storage.
  • Test for functionality:
    • Verify that all monitors display data correctly.
    • Confirm seamless navigation and data display between ReportDashboard.jsx and Dashboard.jsx.

Files to Review:

  • DroneWorld\frontend\src\components\Dashboard.jsx
  • DroneWorld\frontend\src\components\ReportDashboard.jsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Review 1

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions