feat(history): expandable cards for multiple location results - #26
Merged
Conversation
- Extract LocationRow composable (name + address + Maps button) - HistoryEntryCard shows top location + animated expand/collapse for additional locations when entry.locations.size > 1 - Uses rememberSaveable(entry.id) so state survives recomposition - Update EN/PT strings: 'history_more_locations' → 'Show N more', add 'history_show_less'
Copilot created this pull request from a session on behalf of
neteinstein
July 25, 2026 22:21
View session
neteinstein
marked this pull request as ready for review
July 25, 2026 22:21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
History entries already stored all ranked locations but the UI only surfaced the top result with a static "+N more" label. This makes cards with multiple locations expandable so every result is accessible with its own Maps CTA.
Changes
feature:history— UILocationRowcomposable: place icon + name/address + "Open in Google Maps" button — reused for every location slotHistoryEntryCardgainsexpandedstate viarememberSaveable(entry.id)(survives scroll/recomposition)TextButtonwith chevron togglesAnimatedVisibilityover remaining entries, each separated byHorizontalDividerand with its own Maps buttonStrings (EN + PT)
history_more_locations:"+%1$d more"→"Show %1$d more"(action-oriented)history_show_less:"Show less"/"Mostrar menos"No data-layer changes —
ProcessSharedUrlWorkeralready maps the fullList<ResolvedLocation>→List<HistoryLocation>when recording history.