Edit a widget's popup in Settings, not only in JSON

Abierto
#217 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
54/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
swift
Área
desktop

Línea de trabajo

Start with Sources/StableBar/WidgetSettings.swift and the layout block documentation in docs/create-a-widget.md; inspect how Settings currently edits widget properties and how popups are represented. Build the proposed popup block tree editor with add, remove, reorder, and block editing controls plus a live preview. It is done when a widget’s popup can be edited in Settings without JSON and the preview reflects those edits.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement P3

Problem

Settings edits a widget's content, style and behaviour, but not its popup. These need JSON, through Edit as JSON… or the command line:

  • A popup's contents (its layout blocks) and hoverLayout (docs/create-a-widget.md).
  • Click commands and menus: for a widget with them, Settings says "This widget runs a command and opens a popup. Change it with Edit as JSON in the More menu." (WidgetSettings.swift:27, :51).
  • openOnHover for shared popups under popups (docs/popups.md). Inline popups have Open its popup on hover in Settings.

Proposal

A first step: in Settings, a widget with a popup gets an editor for the popup's block tree (add, remove, reorder and set blocks) with a live preview.

Stays JSON-only for now: click commands, menus, hoverLayout, shared popups and their openOnHover.

Possible today

Yes, by editing JSON through Edit as JSON…, the command line or the configuration file (docs/popups.md).

Related

  • #103 moved widget setup out of JSON, except popups and click commands.
  • #88 added openOnHover and its toggle for inline popups.
  • #16 draws widgets and popups through layout blocks.

Checked on main 4160f7f.

Triaged by Claude Code via T3 Code (Claude Opus 5.5).

Lenguaje dominante
Swift
Estrellas
184
Forks
12
Merge medio
3 h 50 min
PR fusionados (30 d)
387

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Seb-GRAF/StableBar

Todos los issues de Seb-GRAF/StableBar

Issues similares

Más issues de Swift

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.