Skip to content

Mobile presentation refactoring in preparation for other form factors - #48

Open
pflammertsma wants to merge 3 commits into
android:mainfrom
pflammertsma:pr/mobile-presentation-refactor
Open

Mobile presentation refactoring in preparation for other form factors#48
pflammertsma wants to merge 3 commits into
android:mainfrom
pflammertsma:pr/mobile-presentation-refactor

Conversation

@pflammertsma

Copy link
Copy Markdown
Member

This PR modularizes the existing mobile screen implementations into dedicated layout composables (ui/mobile/) and introduces compile-time layout contracts for top-level screens. This establishes the architectural foundation required to support additional device form factors (such as Android TV) without bloating top-level screen routers.

Key Changes

  • Layout Decoupling: Moves UI declarations into dedicated mobile layout composables (MobileAgentDemoContent, MobileDebuggingContent, MobileSettingsContent, MobileConnectedAppsContent), using layout contracts for specific screens.
  • Debug Mode Toggle: Adds a debug mode toggle to control the display of AppFunction invocation details.
  • Troubleshooting Diagnostics: Improves troubleshooting information and compatibility guidance for unsupported apps or environments.

Paul Lammertsma added 2 commits July 31, 2026 14:42
…faces

- Add FormFactorUtils to detect TV, Mobile, Wear, Auto, and XR devices.
- Define compile-time layout contract interfaces (AgentDemoScreenLayout, DebuggingScreenLayout, SettingsScreenLayout, ConnectedAppsScreenLayout) to decouple screen routers from form-factor presentation.

TAG=agy
CONV=93e51fa6-7028-4707-8a32-f7af65eb2041
- Extract mobile screen composables into ui/mobile/ (MobileAgentDemoContent, MobileDebuggingContent, MobileSettingsContent, MobileConnectedAppsContent).
- Update top-level screen files (AgentDemoScreen, DebuggingScreen, SettingsScreen, ConnectedAppsScreen) to delegate UI rendering to ScreenLayoutFactory.
- Zero visual changes (100% parity with existing mobile UX).

TAG=agy
CONV=93e51fa6-7028-4707-8a32-f7af65eb2041
@pflammertsma
pflammertsma requested a review from a team as a code owner July 31, 2026 15:20
@pflammertsma

Copy link
Copy Markdown
Member Author

Please review #47 first as this PR includes the same commits.

@pflammertsma
pflammertsma force-pushed the pr/mobile-presentation-refactor branch 3 times, most recently from aa10e4d to ec13895 Compare July 31, 2026 21:04
- Extract mobile screen composables into ui/mobile/ (MobileAgentDemoContent, MobileDebuggingContent, MobileSettingsContent, MobileConnectedAppsContent).
- Update top-level screen files (AgentDemoScreen, DebuggingScreen, SettingsScreen, ConnectedAppsScreen) to delegate UI rendering to ScreenLayoutFactory.
- Zero visual changes (100% parity with existing mobile UX).

TAG=agy
CONV=93e51fa6-7028-4707-8a32-f7af65eb2041
@pflammertsma
pflammertsma force-pushed the pr/mobile-presentation-refactor branch from ec13895 to bbc99b8 Compare July 31, 2026 21:10
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.

1 participant