Ship question-type screenshots as a release asset (and regenerate them)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- build-system, release
Direzione di ricerca
Start with uv run codegen --screenshots and the existing screenshots/<slug>/{limesurvey,xlsform}.png outputs, then inspect how cdl-survey-types-* and formtransform-fixtures-* release assets are generated. Add the versioned tarball and manifest.json, and implement the completeness check for registered entities and PNGs. Done means current-registry screenshots are regenerated, packaged as a release asset, and stale or missing files are detected without Docker.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
screenshots/<slug>/{limesurvey,xlsform}.png render each registry type as a respondent sees it. Nothing consumes them yet, but the survey site wants exactly these: its fragetypen page has LimeSurvey and KoboToolbox tabs per example that currently say "Screenshot folgt" (CorrelAid/cdl-wp-eins, QuestionTypeBlock.astro). qwacback's examples are the registry fixtures (e.g. qwacback single_choice = registry/entities/select_one/fixtures/xlsform.json, pinned at v0.7.1), so the screenshots match them one to one.
Site-side proposal: CorrelAid/cdl-wp-eins#33.
State today
- Last generated in the initial commit (2026-08-05). The registry has changed a lot since, up to v0.7.1.
rangehas no screenshots.- Not in the npm package or the release assets. The only way to get them is the repo tree on
main, which isn't versioned.
Proposal
- Regenerate all screenshots against the current registry (
uv run codegen --screenshots). - Release asset
formtransform-screenshots-<version>.tar.gz, next tocdl-survey-types-*andformtransform-fixtures-*, with amanifest.json:
Width/height let consumers reserve layout space.{ "version": "0.7.1", "types": { "select_one": { "limesurvey": { "file": "select_one/limesurvey.png", "width": 1930, "height": 758, "engine": "LimeSurvey", "theme": "fruity_twentythree" }, "xlsform": { "file": "select_one/xlsform.png", "width": 1296, "height": 450, "engine": "Enketo" } } } }enginemakes clear the XLSForm shot is Enketo (the engine behind KoboToolbox web forms), not the Kobo UI itself. - Completeness check (in codegen or CI, cheap, no Docker): every registry entity (types, variants, composites) has both PNGs, and no PNG exists for a slug that isn't registered. That keeps them from going stale silently, the way
rangedid. - Optional: note the registry version a screenshot was rendered from in the manifest, so a consumer can warn when it's older than the entity.
Consumers (planned)
- qwacback already pulls formtransform assets at its pinned version. It would unpack this tarball, serve
/api/examples/{type}/limesurvey.pngand/xlsform.png, and addlimesurveySrc,koboSrc, dimensions and alt text to the example response. Example and screenshot then always come from the same registry version. Keyed by registry slug, which fits CorrelAid/qwacback#49. - cdl-wp-eins renders what qwacback returns (CorrelAid/cdl-wp-eins#33).
- Lingua principale
- TypeScript
- Stelle
- 0
- Fork
- 0
- Merge medio
- 4m
- PR unite (30g)
- 100
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CorrelAid/formtransform
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
CorrelAid/formtransform#170 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
CorrelAid/formtransform#172 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di CorrelAid/formtransform
Issue simili
-
area: repo priority: P2 type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
appandflow/stim#4107 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficoltà 1/5 1-3 ore Idoneità per principianti 60/100
lingdojo/kana-dojo#32859 · 1 commento · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
code-quality refactoring
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
github/gh-aw-firewall#10364 ·
I maintainer di solito rispondono entro 1 giorno
-
Merge the duplicate kaffir_corn record into sorghumForse già presa @Crypto-Shroom l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
Crypto-Shroom/Bird-Feed-Calculator#322 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
drizzle-team/drizzle-orm#6552 ·
I maintainer di solito rispondono entro 2 giorni