Skip to content

Support for expired stations v2#1141

Merged
Mygod merged 13 commits into
WatWowMap:developfrom
Mygod:inactive-station
Sep 29, 2025
Merged

Support for expired stations v2#1141
Mygod merged 13 commits into
WatWowMap:developfrom
Mygod:inactive-station

Conversation

@Mygod

@Mygod Mygod commented Sep 28, 2025

Copy link
Copy Markdown
Collaborator

Fixes #1066. Supersedes #1140.

@kamieniarz Please review.

@Mygod Mygod requested a review from Copilot September 28, 2025 19:52

Copilot AI left a comment

Copy link
Copy Markdown

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 adds support for displaying expired/inactive stations (Power Spots) on the map. The implementation introduces a new filter option that allows users to view stations that have passed their end time.

  • Adds a new inactiveStations filter to control visibility of expired stations
  • Updates the station marker logic to handle inactive states with different visual styling
  • Modifies the station popup to display appropriate content for inactive stations

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/pages/map/hooks/usePermCheck.js Adds permission check for inactive stations filter
src/pages/map/components/QueryData.jsx Adds query parameter handling for inactive stations
src/features/station/useStationMarker.js Updates marker logic to handle inactive station states and styling
src/features/station/StationPopup.jsx Adds specific popup content for inactive stations
server/src/ui/drawer.js Adds inactive stations option to UI drawer configuration
server/src/models/Station.js Implements database query logic for inactive stations
server/src/filters/builder/base.js Adds inactive stations to default filter configuration
packages/locales/lib/human/en.json Adds localization strings for inactive stations
config/default.json Adds default configuration for inactive stations filter

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/features/station/StationPopup.jsx Outdated
Comment thread src/features/station/StationPopup.jsx Outdated
Comment thread server/src/models/Station.js Outdated
@Mygod Mygod requested a review from Copilot September 28, 2025 20:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/features/station/useStationMarker.js
Comment thread server/src/models/Station.js Outdated
Comment thread src/features/station/StationPopup.jsx Outdated
@kamieniarz

Copy link
Copy Markdown
Contributor

Works great 💪 Thanks

@Mygod Mygod requested a review from Copilot September 29, 2025 00:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/features/station/useStationMarker.js
Comment thread server/src/models/Station.js Outdated
@Mygod Mygod merged commit 0521045 into WatWowMap:develop Sep 29, 2025
2 checks passed
@Mygod Mygod deleted the inactive-station branch September 29, 2025 01:06
@Mygod Mygod mentioned this pull request Sep 29, 2025
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.40.0-develop.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.40.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants