Skip to content

feat(challenges): display up to 10 nendys in help text#422

Open
johnsyweb wants to merge 2 commits intofraz3alpha:masterfrom
johnsyweb:paj/10-nendys
Open

feat(challenges): display up to 10 nendys in help text#422
johnsyweb wants to merge 2 commits intofraz3alpha:masterfrom
johnsyweb:paj/10-nendys

Conversation

@johnsyweb
Copy link
Contributor

Context

My parkrun buddy is overseas. I would like to do an event I've not done yet but am saving the ones my buddy hasn't done until their return, so I'd like to be able to easily view the ten nearest events I've not done yet.

Change

Display up to ten nearest events in the help text. Pleasingly, this is exactly the same number of lines of code, thanks to some minor optimisations.

Confirmation

Added tests, too.

Add comprehensive tests for the functionality added in commit f938ea9:

- Tests for new formatEventWithDistance helper function
- Updated tests for enhanced generate_stat_nearest_event_not_done_yet
- Tests for displaying up to 10 nearest events in help text
- Edge case tests for events without coordinates
- All tests pass with proper formatting
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.

1 participant