Keep Edit Widget choices when an app moves an existing configurable widget to Voltra
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 40/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- json, react-native, swift, typescript
- Área
- build-system, tooling
Línea de trabajo
Start in the config plugin's app.json schema and prebuild validation, then follow the codegen that emits the VoltraWidget_<id>_Intent and VoltraWidget_<id>_<param>_Choice Swift types. Read #391 for the dynamicOptions parameter handling and #392, which this proposal is a patch on top of. Done means intentName and entityName are accepted, default to today's names, invalid Swift identifiers are rejected at prebuild, and two widgets sharing a name generate one intent type.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
An app that moves a configurable widget from hand-written WidgetKit code to Voltra resets every placed widget's Edit Widget choices on update. iOS saves a placed widget's configuration under the Swift type names of its WidgetConfigurationIntent and of the AppEntity values in it. Voltra generates its own names (VoltraWidget_<id>_Intent, VoltraWidget_<id>_<param>_Choice), so the saved configuration no longer matches and each widget falls back to its default. Ours had a masjid picker, so after updating, people who picked a masjid other than their first would see the wrong one until they picked it again.
Proposal: let app.json name those types.
"appIntent": {
"intentName": "SelectMasjidConfigurationAppIntent",
"parameters": [
{ "name": "masjid", "title": "Masjid", "dynamicOptions": true, "entityName": "FollowedMasjid" }
]
}
appIntent.intentNamenames the generatedWidgetConfigurationIntent.entityNameon adynamicOptionsparameter (#391) names the generatedAppEntity, and its query becomes<entityName>Query.- Widgets can share an intent, as ours did: two widgets with the same name use one type, generated once.
Both default to today's names, and prebuild rejects a value that isn't a Swift identifier.
We run this as a patch on top of #392. On a simulator, a widget placed and configured with our old hand-written build kept its choice after installing the Voltra build over it. The old entity's id was an Int and the generated one is a String, and the extension's module name changed too; neither stopped the configuration from carrying over.
- Lenguaje dominante
- TypeScript
- Estrellas
- 865
- Forks
- 50
- Merge medio
- 2 d 22 h
- PR fusionados (30 d)
- 18
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de callstackincubator/voltra
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
callstackincubator/voltra#376 ·
Los mantenedores suelen responder en 1 día
-
refactor-scout
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
callstackincubator/voltra#308 ·
Los mantenedores suelen responder en 1 día
-
refactor-scout
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
callstackincubator/voltra#307 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
callstackincubator/voltra#400 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 Medio día Aptitud para principiantes 45/100
callstackincubator/voltra#398 ·
Los mantenedores suelen responder en 1 día
Todos los issues de callstackincubator/voltra
Issues similares
-
api bug priority:low ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
wondermoney/wondermoney#862 ·
Los mantenedores suelen responder en 1 día
-
good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
rootsiemen/seo-agent-tools#70 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
alvinunreal/oh-my-opencode-slim#1971 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
elecnix/bellwether#467 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día