From ab76bcae1324aadb6d163e565f5994d0db10ca61 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Thu, 6 Aug 2026 09:30:36 +0000 Subject: Widget: wrap the web dashboard in a WebView (DashboardActivity) First cut per the 2026-08-06 feasibility check (verdict: easy, no architecture blockers): a plain WebView pointed at the configured server URL, cookie jar enabled for the existing session-cookie login (internal/auth/middleware.go's RequireAuth) -- no separate auth bridge needed, the widget's own bearer token is a completely different scheme and doesn't need to touch this at all. External links (e.g. a calendar event's source URL) escape to the user's real browser instead of getting stuck in the WebView. No deep-linking to specific tabs, no native-rendered chrome -- this is the minimal first step to validate the wrapped experience is worth building further, not the final shape. --- android/app/src/main/AndroidManifest.xml | 6 ++ .../org/terst/doot/widget/ui/DashboardActivity.kt | 76 ++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 android/app/src/main/java/org/terst/doot/widget/ui/DashboardActivity.kt diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index ca96e71..c2200ba 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -33,6 +33,12 @@ android:exported="false" android:windowSoftInputMode="adjustResize" /> + + +