Skip to content

feat: Refactor back navigation in adaptive screens#4085

Merged
jamesarich merged 1 commit into
mainfrom
fix/convo-nav
Dec 28, 2025
Merged

feat: Refactor back navigation in adaptive screens#4085
jamesarich merged 1 commit into
mainfrom
fix/convo-nav

Conversation

@jamesarich

Copy link
Copy Markdown
Collaborator

Extracts the back navigation logic into a reusable handleBack lambda in AdaptiveNodeListScreen and AdaptiveContactsScreen.

This change improves back press handling to correctly navigate up from detail views, especially when coming from a different navigation graph, preventing the app from closing unexpectedly. The onNavigateUp and onNavigateBack callbacks are now wired to this new handleBack function.

resolves #3878

Extracts the back navigation logic into a reusable `handleBack` lambda in `AdaptiveNodeListScreen` and `AdaptiveContactsScreen`.

This change improves back press handling to correctly navigate up from detail views, especially when coming from a different navigation graph, preventing the app from closing unexpectedly. The `onNavigateUp` and `onNavigateBack` callbacks are now wired to this new `handleBack` function.

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
@github-actions github-actions Bot added the bugfix PR tag label Dec 28, 2025
@codecov

codecov Bot commented Dec 28, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (b3aa2b6) to head (4097ca6).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #4085   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files          2       2           
  Lines         19      19           
  Branches       7       7           
=====================================
  Misses        19      19           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jamesarich jamesarich added this pull request to the merge queue Dec 28, 2025
Merged via the queue into main with commit cce41f6 Dec 28, 2025
8 checks passed
@jamesarich jamesarich deleted the fix/convo-nav branch December 28, 2025 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix PR tag

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: exiting a conversation using back button goes to nodelist

1 participant