Skip to content

Conversation

UCYT5040
Copy link
Contributor

Adds a live map page to /map.

Most tracking features are only available when flights are actually in progress. For testing, I manually changed the dates in the Airtable so I could see the tracking features.

Two new environment variables are added, which are needed for the flight scraping API.

One last thing: map images are from Stadia Maps, which requires an account unless you are running on localhost. There is a free tier for non-commercial use, which is what I've been using.

@coopeeo
Copy link
Contributor

coopeeo commented Jul 28, 2025

well the only problem is the free tier is non-commercial use, maybe we could use leaflet

@UCYT5040
Copy link
Contributor Author

well the only problem is the free tier is non-commercial use, maybe we could use leaflet

How is Shipwrecked commercial use? Hack Club is a non-profit.

Regarding Leaflet, it's already in use here. Leaflet doesn't provide map images, it only provides the software to display such images.

@coopeeo
Copy link
Contributor

coopeeo commented Jul 28, 2025 via email l

@UCYT5040
Copy link
Contributor Author

How is Shipwrecked commercial use? Hack Club is a non-profit. Regarding Leaflet, it's already in use here. Leaflet doesn't provide map images, it only provides the software to display such images.
oh yeah couldn't we use open street map though??

That was the original plan, but the Stadia Maps tiles look really nice and best fit the theme of Shipwrecked. Have you seen what the map looks like? I think most would agree.

I don't see why this is such a big concern: it takes maybe 2 minutes to create an account and allow use on Shipwrecked domains.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@EerierGosling
Copy link
Collaborator

could you make it so only users tagged as "attending" could view the map? i'm happy to go mark everyone on bay
''

Copy link
Collaborator

@EerierGosling EerierGosling left a comment

Choose a reason for hiding this comment

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

lgtm, needs extensive testing in staging before pushing to prod

@devenjadhav
Copy link
Collaborator

Just want to comment here and add that this feature does not leak any PII. All users shown on the map have consented to share their information with other ShipWrecked attendees. As long as it's not public-public and is only accessible to people who are logged into the bay and has an auth wall, we're good to merge

grymmy
grymmy previously requested changes Jul 29, 2025
Copy link
Contributor

@grymmy grymmy left a comment

Choose a reason for hiding this comment

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

ShipwreckedPOI doesn't seem like it was checked in - therefore I am unable to test this locally.

Import trace for requested module:
./app/map/page.tsx
 ⨯ ./components/map/Map.tsx:12:1
Module not found: Can't resolve '@/components/map/ShipwreckedPOI'
  10 | import Marker from '@/components/map/Marker';
  11 | import Flight from '@/components/map/Flight';
> 12 | import ShipwreckedPOI from '@/components/map/ShipwreckedPOI';**
     | ^
  13 | import {latLng} from 'leaflet';
  14 |
  15 | export default function Map({theme, flights: flightsProp, center, setCenter}: {

https://nextjs.org/docs/messages/module-not-found
nd
e-not-found

@UCYT5040 UCYT5040 requested a review from rom grymmy July 29, 2025 14:23
Copy link
Collaborator

@EerierGosling EerierGosling left a comment

Choose a reason for hiding this comment

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

lgtm

@EerierGosling
Copy link
Collaborator

@grymmy can you rereview cause you're blocking this rn

@EerierGosling
Copy link
Collaborator

personally im happy to just test this in staging

@EerierGosling EerierGosling dismissed grymmy’s stale review July 31, 2025 19:03

it seems fixed and i want to test on staging

@EerierGosling
Copy link
Collaborator

ok wait ignore me 😭 i figured out how to approve

@EerierGosling EerierGosling merged commit mit 6ee0974 into hackclub:main Jul 31, 2025
3 checks passed
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.

None yet

6 participants