Skip to content

Jan Fixes and Enhancements#470

Merged
kshitijrajsharma merged 41 commits intohotosm:developfrom
Spatialnode:jan-fixes-and-enhancements
Feb 4, 2026
Merged

Jan Fixes and Enhancements#470
kshitijrajsharma merged 41 commits intohotosm:developfrom
Spatialnode:jan-fixes-and-enhancements

Conversation

@jeafreezy
Copy link
Collaborator

@jeafreezy jeafreezy commented Jan 18, 2026

What does this PR do ?

This PR includs some features and bugs raised on Slack.

  1. Added zoom controls to offline predictions results map.
  2. Updated mapswipe results button text.
  3. Added refresh button to check mapswipe status.
  4. Activated learn and resources page.
  5. Reduced OSM basemap maxzoom to zoom 19 and increased tilesize to 256 to prevent unnecessary requests (this somehow happen to fix [BUG] Firefox hangs on the start mapping page #462)
  6. Fixed bug with stale dataset in training area page (sometimes when you visit the training area twice, it renders the previous training dataset imagery.)
  7. Fixed validation bug in model enhancement modal.
  8. Fixed bug in stale state when reopening traning enhancement settings modal.
  9. Fixed validation bug in training settings page.
  10. Learn page with the video carousel and share functionality.

Screenshots

Screen.Recording.2026-01-18.at.21.06.44.mov
Screenshot 2026-01-18 at 21 06 14
Screen.Recording.2026-01-18.at.21.05.21.mov
Screen.Recording.2026-01-18.at.21.03.58.mov

Before - Lots's of CORS error because OSM does not provide tiles at zoom 20+.

Screen.Recording.2026-01-18.at.21.08.45.mov

After - Making maxzoom to be 19 prevents this from happening.

Screen.Recording.2026-01-18.at.21.07.46.mov

Before (currently in prod/dev)

20260119-1317-08.5602963.mp4

After

Screen.Recording.2026-01-25.at.09.35.24.mov

Before

Screen.Recording.2026-01-25.at.08.18.28.mov

After

Screen.Recording.2026-01-25.at.08.18.00.mov

Before

Screen.Recording.2026-01-25.at.08.43.09.mov

After

Screen.Recording.2026-01-25.at.08.44.14.mov

Before

Screen.Recording.2026-01-25.at.08.18.28.mov

After

Screen.Recording.2026-01-25.at.08.18.00.mov
Screen.Recording.2026-01-30.at.09.55.25.mov

How to Test

https://fair-dev-spatialnode.vercel.app/

jeafreezy and others added 29 commits January 13, 2026 06:43
- Created ContentIcon component for content representation.
- Added DurationIcon component to represent duration visually.
- Implemented GlobeIcon component for global representation.
…tion

- Implemented a new Carousel component with responsive design using Shoelace.
- Added styles for carousel and update cards in carousel.css.
- Created tests for the getSlidesPerPage function to ensure correct slide counts based on breakpoints.
- Developed useBreakpoint hook tests to verify breakpoint detection and updates.
- Introduced useFairUpdates hook to fetch updates from a specified URL with error handling.
@jeafreezy jeafreezy marked this pull request as ready for review January 27, 2026 19:27
@jeafreezy jeafreezy marked this pull request as draft January 29, 2026 05:44
@jeafreezy jeafreezy marked this pull request as ready for review January 30, 2026 08:57
@kshitijrajsharma
Copy link
Member

image There are still lot of history API calls in the start mapping page , it is bombbarding browser within short period of time , is there a way to control it ?

Copy link
Member

@kshitijrajsharma kshitijrajsharma left a comment

Choose a reason for hiding this comment

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

I couldn't verify the bug fixes, one more iteration would be needed

export const extractYouTubeVideoId = (url: string): string | null => {
// Regex to match various YouTube URL formats
const youtubeRegex =
/(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:watch\?v=|embed\/|v\/)|youtu\.be\/)([\w-]{11})/i;
Copy link
Member

Choose a reason for hiding this comment

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

This seems problematic !

@kshitijrajsharma kshitijrajsharma merged commit 0c22ab3 into hotosm:develop Feb 4, 2026
4 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.

[BUG] Firefox hangs on the start mapping page

3 participants