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

オープン
#414 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
typescript
領域
tooling

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
1.6k
フォーク
126
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

figma/code-connect のほかの issue

figma/code-connect の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。