Skip to content

Conversation

binh-dam-ibigroup
Copy link
Collaborator

Description

This PR upgrades maplibre and react-map-gl by way of new OTP-UI packages that use those updated libraries.
There shouldn't be any visual changes on non-map content.

PR Checklist

  • Does the code follow accessibility standards (WCAG 2.1 AA Compliant)?
  • Are all languages supported (Internationalization/Localization)?
  • Are appropriate Typescript types implemented?

binh-dam-ibigroup and others added 27 commits July 8, 2025 09:43
Copy link
Contributor

@amy-corson-ibigroup amy-corson-ibigroup left a comment

Choose a reason for hiding this comment

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

Looks really good! Just a couple questions probably more for my sake. I know this was tricky work, thank you so much for taking the time to upgrade!

@@ -210,7 +211,8 @@ function NearbyView({
}, [location, setHighlightedLocation])

useEffect(() => {
const moveListener = (e: mapboxgl.EventData) => {
const moveListener = (e: ViewStateChangeEvent) => {
// @ts-expect-error TODO: What is this condition supposed to capture?
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you explain how the ts error could be solved by answering this question?

// onMouseLeave is throttled because of a bug on Firefox where
// two mouseleave events are triggered when moving cursor quickly from one card to the next.
const onMouseLeave = useCallback(
throttle(
Copy link
Contributor

Choose a reason for hiding this comment

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

Any concerns with increasing bundle size for this? It looks like a very small package, just curious if you looked at any other solutions

Copy link
Contributor

@josh-willis-arcadis josh-willis-arcadis left a comment

Choose a reason for hiding this comment

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

Error with nearby view markers.

Copy link
Contributor

@josh-willis-arcadis josh-willis-arcadis left a comment

Choose a reason for hiding this comment

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

Updating my review as the nearby view error will be fixed in #1457.

@binh-dam-ibigroup binh-dam-ibigroup merged commit d471663 into dev Aug 21, 2025
9 checks passed
@binh-dam-ibigroup binh-dam-ibigroup deleted the new-maplibre branch August 21, 2025 17:17
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