`figma connect preview --all` support excluding props and including props combinations

Offen
#414 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
38/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
typescript
Bereich
tooling

Rechercherichtung

Start at the preview --all implementation and trace how it currently generates combinations of Boolean and Variant props. Then examine how the preview handles text props and instance swaps; done means supporting configurable included prop values and excluded props while allowing instance swaps to be previewed.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

feature request

I'm using @figma/code-connect version 2.0.1.

For the preview --all feature, I'd like to request these related features:

  • allowing to specify and exclude certain props from the combinations
  • allowing to specify and include certain props and values for the combinations
  • assigning swap instances - this is a blindspot that cannot currently be previewed

Currently it only iterates over combinations of Booleans and Variants.

Setting text and instance swaps are necessary to fully test templates. A possible solution would be allowing to pass the extra prop keys with different values to iterate.

The feature could offer the option to exclude specific props that might not be meaningful for code generation, such as cosmetic changes only relevant for designers. This would also help to reduce the amount of unnecessary iterations.

Vorherrschende Sprache
TypeScript
Sterne
1.6k
Forks
126
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus figma/code-connect

Alle Issues in figma/code-connect

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.