Skip to content

feat(system): add the Ask home screen widget - #347

Open
Tarquinen wants to merge 1 commit into
widgets-redesignfrom
widgets-ask
Open

Tarquinen wants to merge 1 commit into
widgets-redesignfrom
widgets-ask

Conversation

@Tarquinen

Copy link
Copy Markdown
Member

A home screen widget for sending a prompt, behind the Home Screen Widgets experiment. The field opens the Ask OpenCode dialog, + opens a new session, and the mic starts a call. At 4x2 it also shows chips for the newest projects, and each one opens a new session in that project. The widget needs no network. It redraws when Home publishes its session list, which now includes each session's projectID.

Part of #287

Small sizes, light and dark
4x2, light and dark
Not paired
On the Pixel launcher: 4x1, then resized to 4x2 in light and dark

Not included from the mockup: the send button (it would do the same as tapping the field), the model name (not in the widget data), and the 4x1 project picker (no room, so chips only appear at 4x2).

A shortcut for sending a prompt, behind the Home Screen Widgets experiment.
The field opens the Ask OpenCode dialog, + opens a new session, and the mic
starts a call to the last viewed session. At 4x2, chips for the newest
projects open a new session in that project, so HomeWidgetData.Session now
carries the projectID that Home's list publishes.

No send button (it would do what the field does), no model name (not in the
widget data) and no dictation (the Ask dialog has none).

Verified: scripts/check.sh :feature:system :feature:drawer on the VM; the lab
at 110x56 to 320x230 in light and dark, unpaired and empty fixtures, font
scale 1.3; pinned on the Pixel launcher, resized 4x1 to 4x2, and tapped the
field, +, mic and a project chip.

This branch has not been deployed

No deployments
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