feat: implement dynamic launcher shortcuts, launch intent routing, dynamic theme color overrides, and initial profiles

This commit is contained in:
2026-07-04 14:23:51 -06:00
parent 17b0ccf464
commit 7fe1eda75b
7 changed files with 305 additions and 12 deletions

View File

@@ -10,7 +10,7 @@ This document outlines the core product milestones, release phases, and sprint m
+-----------------------------------------------------------------------------------+
| PHASE 1: CLIENT AND BUILDER SOLIDIFICATION (Month 1) |
| Focus: Core hardware shells (watches, phones) and responsive visual layout editor.|
| Sprints: Sprint 1 (Polish) and Sprint 2 (Responsive Builder) |
| Sprints: Sprint 1 (Polish), Sprint 1.5 (Dynamic Shortcuts), and Sprint 2 (Responsive Builder) |
+-----------------------------------------------------------------------------------+
|
v
@@ -36,6 +36,8 @@ This document outlines the core product milestones, release phases, and sprint m
* Run UX research prompt, select product name, verify domains, establish brand style guide (color palette, typography tokens, tagline options).
* **Sprint 1: Native Wearable & Mobile Polish**
* Hardware performance validation, smartwatch AOD optimization, background WebSocket connection reliability, and haptic overrides.
* **Sprint 1.5: Dynamic Shortcuts & Dynamic Branding (Mobile Launcher Routing)**
* Pin dynamic launcher shortcuts for marketplace profiles on Android/iOS. Implement intent-based startup routing and dynamic theme overrides in client shells.
* **Sprint 2: Builder Porting & Responsive Design**
* Migrate visual editor to `:commonMain`. Design the responsive split-screen phone view. Implement **Developer Mode (Tabs)** and **Easy Mode (Wizard)**.
* **Sprint 3: Local Sync API & Database Caching**

View File

@@ -55,7 +55,7 @@ Please perform a comprehensive UX Research and Branding Assessment to determine
```
---
## Sprint 1: Native Wearable & Mobile Polish
### Objectives
@@ -74,6 +74,24 @@ Optimize the stateless client shells on physical Android S23 Ultra and Wear OS W
---
## Sprint 1.5: Dynamic Shortcuts & Dynamic Branding (Mobile Launcher Routing)
### Objectives
Enable the single pre-compiled client shell to behave like separate, standalone apps for different marketplace profiles by dynamically pinning launcher shortcuts and routing intent payloads.
### Task List
1. **ShortcutManager Integration**: Implement native Android `ShortcutManager` calls in `MainActivity` to request pinning shortcuts with custom names and icons.
2. **Intent Launch Routing**: Update `MainActivity` entry point to intercept `LAUNCH_PROFILE_ID` extra, skipping the manager settings dashboard.
3. **Dynamic Theme Styling**: Map loaded profile IDs to dynamic theme color palettes (e.g. Purple for LM Studio, Teal for Meatbag).
4. **Local Dashboard Tiles**: Build a tile selector in the disconnected manager interface listing installed profiles with options to "Launch" or "Pin Tile".
### Acceptance Criteria
* Clicking "Pin Tile" displays the Android system shortcut confirmation dialog.
* Launching the app via pinned shortcut bypasses settings and connects automatically.
* Toggling between profiles dynamically changes the application primary/secondary theme colors.
---
## Sprint 2: Builder Porting & Responsive Design
### Objectives