Skip to content

Sprint6/feature/us 5.1 show nearest outdoor points of interest#324

Merged
NicG27 merged 10 commits intomainfrom
sprint6/feature/us-5.1-show-nearest-outdoor-points-of-interest
Mar 30, 2026
Merged

Sprint6/feature/us 5.1 show nearest outdoor points of interest#324
NicG27 merged 10 commits intomainfrom
sprint6/feature/us-5.1-show-nearest-outdoor-points-of-interest

Conversation

@khalillabban
Copy link
Copy Markdown
Owner

@khalillabban khalillabban commented Mar 28, 2026

Screenshot 2026-03-28 at 7 07 10 pm Screenshot 2026-03-28 at 7 07 20 pm Screenshot 2026-03-28 at 7 07 39 pm
  • POI category and range selection implemented
  • Google Places API (New) implemented
  • POIs displayed on map and in list view

Closes #23
Closes #290

Kurake and others added 3 commits March 27, 2026 02:53
Created POI categories, range selector UI, get user's location (mostly the same as normal location), theoretically getting POIs - will need to enable Places API where directions and maps are being allowed, filtering POIs by range inside Google Places API and displaying them.
POIs are now displayed in a list view, results change based on range/category and theoretically range (cannot be tested on simulator due to limitations)
Search Nearby button removed and replaced with live results, category names changed to fit neatly and edge cases theoretically handled

Known limitation - due to the nature of the Search Nearby operation, only the 20 most popular entries are returned. This is an API limit, not something that can be raised.
Add new tests for Google Places service, nearby POI hook, POI filter/range/list components, CampusMap POI focus flow, and CampusMapScreen POI interactions. Also suppress expected console noise in indoor and map suites so full npm test output stays clean.
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 28, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 95.37572% with 8 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
components/CampusMap.tsx 84.21% 0 Missing and 3 partials ⚠️
components/POIListPanel.tsx 88.46% 0 Missing and 3 partials ⚠️
hooks/useNearbyPOIs.ts 95.45% 1 Missing ⚠️
services/GooglePlacesService.ts 97.29% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

Remove unused canSearchPOIs assignment and keep deterministic POI category key sorting with an explicit comparator for sonar compliance.
…into sprint6/feature/us-5.1-show-nearest-outdoor-points-of-interest
Resolve CI/Jest parse failure on PR merge ref by keeping a single parseTransitionPayload/serializeTransitionPayload import in CampusMapScreen.
@NicoLandry NicoLandry self-assigned this Mar 29, 2026
Comment thread services/GooglePlacesService.ts
Comment thread components/POIListPanel.tsx
Comment thread styles/CampusMapScreen.styles.ts
Comment thread styles/CampusMapScreen.styles.ts
Comment thread components/CampusMap.tsx
Comment thread .DS_Store Outdated
Copy link
Copy Markdown
Collaborator

@NicoLandry NicoLandry left a comment

Choose a reason for hiding this comment

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

Overall the outdoor POI feature is solid the service layer, hook, and UI components are all well structured and the live search on category/range change is a nice touch. A few things worth addressing: silent API failures in fetchNearbyPOIsForCategories should surface something to the user, the haversineMeters function should live in a shared util, and the eslint-disable on the search effect needs a comment explaining why it's safe. Also the .DS_Store file shouldn't be in the commit. Nothing blocking but worth cleaning up before merge.

@NicG27
Copy link
Copy Markdown
Collaborator

NicG27 commented Mar 29, 2026

Please add a toggle for the nearby places overlay, it shouldn't always be visible.
Otherwise it looks great!

Kurake added 3 commits March 29, 2026 19:03
Doing this too - .DS_Store should already be in the git ignore
Adding dependency to fix CI issue
@sonarqubecloud
Copy link
Copy Markdown

@NicG27 NicG27 merged commit fd18b95 into main Mar 30, 2026
3 checks passed
@khalillabban khalillabban deleted the sprint6/feature/us-5.1-show-nearest-outdoor-points-of-interest branch March 30, 2026 05:40
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.

AT-5.1: Show nearest outdoor points of interest based on range US-5.1: Show nearest outdoor points of interest based on range

5 participants