Skip to content

fix: feedback on GOES interface#281

Merged
slesaad merged 4 commits intomainfrom
goes/styling-changes
Feb 24, 2026
Merged

fix: feedback on GOES interface#281
slesaad merged 4 commits intomainfrom
goes/styling-changes

Conversation

@sanzog03
Copy link
Copy Markdown
Collaborator

@sanzog03 sanzog03 commented Nov 21, 2025

Description:

This PR addresses several UI/UX improvements and bug fixes for the GOES Plume Viewer, focusing on date filtering functionality and animation timeline improvements.

Changes:

  1. Date Picker Temporal Extent Restrictions (Commit: 0eb8684)
    Implemented dynamic calculation of min/max dates from regions data and added constraints to DatePicker components to grey out dates outside the available data range. Added reset functionality to restore date range when the home button is clicked, preventing users from selecting dates with no available data.

  2. Animation Timeline First Plume Display Fix (Commit: e51e64f)
    Resolved issue where the first plume would disappear when dragging the animation slider to the beginning by moving the initial plume display call outside of the timeline onStart handler, ensuring proper rendering before timeline initialization.

  3. Measurement Tool Icon Visibility Fix (Commit: 140ccdf)
    Fixed ruler icon turning white and blending with button background when selected by replacing the undefined CSS variable with the correct color variable, ensuring proper contrast between icon and button background.

  4. Animation Replay Button Fix (Commit: 005d427)
    Fixed replay button incorrectly restarting the animation from the middle of the timeline instead of the beginning. The issue was caused by the mapboxgl-timeline library passing a string value to the Date constructor. Applied a monkey patch to correctly parse the slider's minimum value as a number, and updated the onStart callback to properly reset animation state and clear all buffered layers.
    PR is made on the timeline library too. ref

Issue: Ruler icon was turning white and blending with button background when selected.

Changes: Replaced undefined CSS variable 'var(--heading-gray)' with 'var(--light-grey)' to ensure proper contrast between icon and button background.
Issue: When dragging the animation slider back to the very beginning, the first plume would disappear from the map.

Changes: Moved initial plume display call outside of timeline onStart handler to ensure the first plume is properly rendered before timeline initialization.
- Calculate min/max dates from regions data dynamically
- Add minDate and maxDate constraints to DatePicker components
- Grey out dates outside available data range
- Update filter dates when temporal extent changes
- Add reset functionality to restore date range on home button click

Addresses recommendation to limit date selection to available data range
- Fix replay button starting animation in the middle by correcting timestamp parsing.
@slesaad slesaad merged commit fb9d2d3 into main Feb 24, 2026
10 checks passed
@slesaad slesaad deleted the goes/styling-changes branch February 24, 2026 16:29
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.

2 participants