Station picker: group or scroll destinations once there are more than ~5 stations

Open
#48 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript
Domain
frontend

Research direction

The flat destination list is rendered in gamev2/src/StationPicker.js at 46px per row, with no scrolling and no parent-city grouping. Read that component, then the stations entries in config.json, to see how destinations are currently supplied. Done would mean the picker groups or scrolls once there are more than about five stations, and an optional dayTripOf field is accepted; the issue itself names #43 and #17 as the stations that will trigger this.

Written by the indexing model from the issue text.

Description

Found while auditing #44 / #43.

gamev2/src/StationPicker.js renders every other station as a flat list at 46px per row with no scrolling and no notion of a parent city. With three stations that is fine; once Sapporo, Asahikawa (#43) and Osaka (#17) land there are 6+ destinations.

Suggested:

  • Group destinations by line or parent city (e.g. Asahikawa under Sapporo), or scroll the list.
  • Optional dayTripOf field on config.json stations entries so the picker and the map overlay can show day-trip zones under their city.
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from devhou-se/game

All issues in devhou-se/game

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.