Skip to content

figma connect preview --all support excluding props and including props combinations #414

Description

@fernandofranca

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions