Redesign the home screen widgets

Aberta
#287 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
15/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
android, kotlin
Domínio
mobile-dev

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.
Linguagem predominante
Kotlin
Estrelas
146
Forks
35
Merge médio
7h 41min
PRs com merge (30d)
221

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de anomalyco/opencode-android

Todas as issues de anomalyco/opencode-android

Issues semelhantes

Mais issues de Kotlin

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.