Skip to content

Intersection Map Bugfixes#335

Open
jacob6838 wants to merge 8 commits into
developfrom
intersection-map-bugfixes
Open

Intersection Map Bugfixes#335
jacob6838 wants to merge 8 commits into
developfrom
intersection-map-bugfixes

Conversation

@jacob6838

@jacob6838 jacob6838 commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

PR Details

Description

Fixing bugs in Intersection Map

How Has This Been Tested?

The following tests were all completed on the local system running in docker:

  • MAP/SPaT visualizer tested with MAP lanes missing ingressApproach, and spat signal states were rendered correctly
  • ZIP file with empty BSM document was uploaded and successfully processed/rendered MAP and SPaT data
  • Successfully exported MAP, SPaT, and BSM data

Types of changes

  • Defect fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that cause existing functionality to change)

Checklist:

  • My changes require new environment variables:
    • I have updated the docker-compose, K8s YAML, and all dependent deployment configuration files.
  • My changes require updates to the documentation:
    • I have updated the documentation accordingly.
  • My changes require updates and/or additions to the unit tests:
    • I have modified/added tests to cover my changes.
  • All existing tests pass.

Copilot AI review requested due to automatic review settings June 3, 2026 20:31

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 targets defect fixes in the Intersection Map feature by loosening map parsing requirements (so missing ingressApproach data doesn’t block processing) and improving robustness when importing message data from ZIP uploads.

Changes:

  • Updated MAP signal group parsing to only require signalGroup (no longer requires ingressApproach) and added a warning when it’s missing.
  • Added guarded JSON parsing for BSM ZIP entries and a user-facing error toast when imported ZIP contents appear empty/invalid.

Reviewed changes

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

File Description
webapp/src/features/intersections/map/utilities/message-utils.ts Relaxes signal-state feature creation requirements and adds logging when signalGroup is missing.
webapp/src/features/intersections/map/control-panel.tsx Adds additional ZIP import error handling for BSM parsing and “empty upload” feedback.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread webapp/src/features/intersections/map/control-panel.tsx Outdated
Comment thread webapp/src/features/intersections/map/utilities/message-utils.ts

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 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread webapp/src/features/intersections/map/control-panel.tsx Outdated
jacob6838 and others added 2 commits June 5, 2026 09:34
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@jacob6838 jacob6838 requested review from drewjj and payneBrandon June 8, 2026 07:14

@drewjj drewjj left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

These fixes look reasonable to me!

@payneBrandon payneBrandon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Do we have tests for any of these updates? If not can we add them in?

@jacob6838 jacob6838 requested a review from payneBrandon July 7, 2026 23:57
@jacob6838

Copy link
Copy Markdown
Collaborator Author

@payneBrandon I just added unit tests for message-utils and mm-api

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.

4 participants