Redesign the home screen widgets

未關閉
#287 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
15/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
android, kotlin
領域
mobile-dev

研究方向

This is a design issue: the screens are mockups and nothing is built yet, and the Sessions, Session and Needs You widgets depend on #185, #186 and #188 for a live background connection. The Ask widget can be built now and is the most self-contained slice, but the widget data store needs status, current step and times added first. Done means the widgets render their mockup states and show when data is stale, with a refresh option.

由索引模型根據 Issue 內容生成。

描述

enhancement

The current widgets (Start Call, Open Session, New Session) are single shortcut buttons. Replace them with widgets that look like the desktop app and show something useful at a glance. These are mockups, in light and dark; nothing is built yet.

Sessions

Your sessions, with the ones that need you first, then working, then done. Tapping a row opens it.

Sessions widget at 4×3, 4×2 and 2×2

Needs You

One pending permission or question, answered from the home screen.

Needs You widget: permission, question, nothing waiting, and 2×2

Ask

The desktop composer on the home screen. Tapping it opens a small composer over the home screen, since a widget can't take typing.

Ask widget at 4×2, 4×1 and 2×1

Session

Follows one session you pick: the live step and plan progress while it works, then the reply.

Session widget: working, done, and 2×2

States

Not paired, offline and loading.

Not paired, offline and loading states

On the home screen

Two example home screens

Notes
  • Ask can be built now. Sessions, Session and Needs You need a live connection in the background, so they depend on #185, #186 and #188.
  • Those PRs only hold the connection while a run you saw start is running. A run started elsewhere while the app is closed won't reach the widgets until there's push, so the widgets need to show when their data is old and offer a refresh.
  • Needs You should offer only Deny and Allow Once, as #188 does. The mockup still shows Always Allow.
  • Glance can't use custom fonts, so the widgets use the system font, not Inter and OpenMono.
  • The widget data store only has a session's title and project today. It needs status, the current step and times.
主要語言
Kotlin
星號
146
分支
35
平均合併
7 小時 41 分鐘
30 天內合併 PR
221

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

anomalyco/opencode-android 的其他 Issue

查看 anomalyco/opencode-android 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。