Skip to content

Improve columnar display depending on journey state#6297

Merged
zoldar merged 2 commits intomasterfrom
exploration-last-step
Apr 30, 2026
Merged

Improve columnar display depending on journey state#6297
zoldar merged 2 commits intomasterfrom
exploration-last-step

Conversation

@aerosol
Copy link
Copy Markdown
Member

@aerosol aerosol commented Apr 30, 2026

We detect whether the journey has ended: when the active column has finished loading returning no results and at least one step is selected.

This helps to hide pointless column when journey ends - numColumns caps at number of steps + 1 (instead of the fixed minimum of 3), so the empty next step column won't be rendered.

When there's only 1 step and active column is loading, numColumns is also capped similarily - to prevent 3rd column from flashing briefly while the API call is in flight, only to disappear if it turns out the journey has ended.

Column 3 remains visible while changing selection at column 2.

Additionally, when browsing the journey backwards, the "end" message signals reaching "beginning" of the journey.

We detect whether the journey has ended:
when the active column has finished loading returning
no results and at least one step is selected.

This helps to hide pointless column when journey ends
- `numColumns` caps at `number of steps + 1` (instead of
the fixed minimum of 3), so the empty next step column
won't be rendered.

When there's only 1 step and active column is loading,
`numColumns` is also capped similarily - to prevent 3rd
column from flashing briefly while the API call is in flight,
only to disappear if it turns out the journey has ended.

Column 3 remains visible while changing selection at column 2.
@github-actions
Copy link
Copy Markdown

Preview environment👷🏼‍♀️🏗️
PR-6297

@aerosol aerosol requested a review from zoldar April 30, 2026 11:05
@aerosol aerosol marked this pull request as ready for review April 30, 2026 11:05
@aerosol aerosol enabled auto-merge April 30, 2026 11:12
@aerosol aerosol added this pull request to the merge queue Apr 30, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 30, 2026
@zoldar zoldar added this pull request to the merge queue Apr 30, 2026
Merged via the queue into master with commit 2d42d5f Apr 30, 2026
22 checks passed
@zoldar zoldar deleted the exploration-last-step branch April 30, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants