Skip to content

feat(widgets): Simple GeolocateWidget#9488

Merged
ibgreen merged 15 commits intomasterfrom
ib/geolocate-widget
Mar 29, 2025
Merged

feat(widgets): Simple GeolocateWidget#9488
ibgreen merged 15 commits intomasterfrom
ib/geolocate-widget

Conversation

@ibgreen
Copy link
Copy Markdown
Collaborator

@ibgreen ibgreen commented Mar 3, 2025

Closes #

Background

  • One widget per day challenge
  • Implement a simple geolocate widget that accept lng,lat coordinates.

geolocate

Change List

@ibgreen ibgreen requested a review from chrisgervang March 3, 2025 13:17
@coveralls
Copy link
Copy Markdown

coveralls commented Mar 4, 2025

Coverage Status

coverage: 91.633% (+0.001%) from 91.632%
when pulling 6402db6 on ib/geolocate-widget
into ce768f6 on master.

@ibgreen ibgreen mentioned this pull request Mar 4, 2025
62 tasks
* Supports comma- or semicolon-separated values.
* Heuristically determines which value is longitude and which is latitude.
*/
function parseCoordinates(input) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The coordinate parsing functions could use some unit tests

Copy link
Copy Markdown
Collaborator

@felixpalmer felixpalmer left a comment

Choose a reason for hiding this comment

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

Nice!

}
onKeyPress={this.handleKeyPress}
/>
<button onClick={this.handleSubmit}>Go</button>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could this button be styled the same as the other widgets?

@ibgreen ibgreen force-pushed the ib/geolocate-widget branch from 38c4118 to a1695aa Compare March 28, 2025 19:56
Copy link
Copy Markdown
Collaborator

@chrisgervang chrisgervang left a comment

Choose a reason for hiding this comment

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

Stamping so we can experimentally merge this in. To graduate let's take a pass on design improvement, theming, and unit tests.

@ibgreen ibgreen merged commit 4cef175 into master Mar 29, 2025
4 checks passed
@ibgreen ibgreen deleted the ib/geolocate-widget branch March 29, 2025 15:47
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