Skip to content

feat: use the app NavBar in the AI activities (#2296)#2297

Merged
OwenMcGirr merged 1 commit into
mainfrom
feature/ai-activities-top-bar-2296
May 23, 2026
Merged

feat: use the app NavBar in the AI activities (#2296)#2297
OwenMcGirr merged 1 commit into
mainfrom
feature/ai-activities-top-bar-2296

Conversation

@OwenMcGirr

Copy link
Copy Markdown
Collaborator

Summary

The two AI activities (Reply Drafter, Screen Highlights) shipped with a stock Material 3 TopAppBar that read as themed but looked different from every Settings screen — those use the app's custom NavBar with a red gradient and onPrimary chrome. This swap brings them in line.

  • NavBar's navController parameter is now nullable. It was already only used for the back-button auto-detect (when showBackButton is null) and the default popBackStack() action (when onBackPressed is null); both call sites already use safe access.
  • ReplyDrafterScreen and ScreenHighlightsScreen swap their TopAppBar block for NavBar(title=…, showBackButton=true, onBackPressed=onClose).
  • The inline title Text and bottom Close ActionButton were already removed in the previous step on this branch; this commit only changes the top-bar styling.

Closes #2296

Test plan

  • ./gradlew compileDebugKotlin testDebugUnitTest installDebug
  • Reply Drafter and Screen Highlights both show the red-gradient NavBar with a back arrow matching the Settings screens
  • Tapping the back arrow finishes the activity

Reply Drafter and Screen Highlights both used a stock Material 3
TopAppBar (default surface-coloured), which read as themed but looked
different from every Settings screen — those use the app's custom
NavBar with a red gradient and onPrimary chrome.

Make NavBar's navController parameter nullable (only used for the
back-button auto-detect + default popBackStack, both already
override-able) and swap the AI screens over. Removes the bottom Close
button and the bare TopAppBar; the back arrow in the NavBar drives
onClose.

Closes #2296
@OwenMcGirr OwenMcGirr merged commit 8b7fe92 into main May 23, 2026
@OwenMcGirr OwenMcGirr deleted the feature/ai-activities-top-bar-2296 branch May 23, 2026 16:27
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.

AI activities: use a top app bar with close icon

1 participant