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 摘要。