Skip to content

UI refactoring 2#323

Merged
IanMayo merged 2 commits intomainfrom
UI-refactoring-2
Apr 3, 2025
Merged

UI refactoring 2#323
IanMayo merged 2 commits intomainfrom
UI-refactoring-2

Conversation

@IanMayo
Copy link
Copy Markdown
Member

@IanMayo IanMayo commented Apr 3, 2025

No description provided.

Copilot AI review requested due to automatic review settings April 3, 2025 12:23
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 3, 2025

Deploy Preview for reactol ready!

Name Link
🔨 Latest commit ee123d9
🔍 Latest deploy log https://app.netlify.com/sites/reactol/deploys/67ee80103ced990008dbbd0b
😎 Deploy Preview https://deploy-preview-323--reactol.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the UI components and cleans up test code by removing unnecessary console logs and shifting state management from the Map component to the MapFeatures component.

  • Removed debugging console logs in test files to simplify output.
  • Refactored the Map component to remove state hooks and delegate feature selection to MapFeatures.
  • Updated the MapFeatures component to use hooks for accessing features and managing selection.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
tests/control-panel/time-step-interval.spec.ts Removed console logs to clean up test output
tests/control-panel/time-filter-step-forward.spec.ts Eliminated debugging logs for clearer test assertions
src/components/spatial/Map/index.tsx Removed state context and onClickHandler logic, now passing children only
src/components/spatial/Map/MapFeatures.tsx Integrated state hooks for features and selection handling, removing the need for passed-in props

@IanMayo IanMayo merged commit b58c5de into main Apr 3, 2025
8 checks passed
@IanMayo IanMayo deleted the UI-refactoring-2 branch April 3, 2025 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants