Improve Design Token Story Files
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 65/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- javascript, react, storybook
調査の方向性
まず src/tokens/*.stories.mdx の先頭にある重複したテーブル生成コードを比較し、その後、React ベースの抽出パターンの候補として ColorPalette コンポーネントを確認してください。重複したコードが共有実装に移され、design token の Story ファイルが引き続きテーブルを生成できれば完了です。Style Dictionary による生成は任意の追加課題です。
索引モデルが issue の本文から書いたものです。
説明
Previously, we were using Theo to dynamically generate the Story files for the design tokens. When we switched to Style Dictionary, these files became manually maintained. This wouldn't be bad necessarily, except that there's a lot of code duplication between these files for generating the tables.
Note there is one bit of code that I'd like to DRY up — at the top of most of the design token story files (see
src/tokens/*.stories.mdx) there's a repeated bit of code to generate a table of properties. This should ideally be pulled out into a separate file. Unfortunately, when I did so, I got errors about JSX that I wasn't able to quickly resolve. I talked to @calebeby for help, and while we couldn't fix it in the time we had, he mentioned another possibility was converting it to a React component (likeColorPalette)
Minimum acceptance criteria for this ticket is to DRY that code up.
Extra credit would be using Style Dictionary to generate those Story files, as we were doing in Theo. That should be possible, but may be time consuming.
- 主要言語
- SCSS
- スター
- 26
- フォーク
- 4
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 87
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cloudfour/cloudfour.com-patterns のほかの issue
-
✒️ gutenberg
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
cloudfour/cloudfour.com-patterns#2148 ·
メンテナーはふだん 1 日以内に返信
-
:construction_worker: dev 🎨 design 🦮 a11y
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
cloudfour/cloudfour.com-patterns#2128 ·
メンテナーはふだん 1 日以内に返信
-
🎨 design
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
cloudfour/cloudfour.com-patterns#2000 ·
メンテナーはふだん 1 日以内に返信
-
⁉️ question 🎨 design 🦮 a11y
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
cloudfour/cloudfour.com-patterns#1994 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
cloudfour/cloudfour.com-patterns#1916 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
cloudfour/cloudfour.com-patterns の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
strapi/design-system#2084 ·
メンテナーはふだん 3 日以内に返信
-
area:ui good first issue phase:dev priority:p2 type:spike
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
[1.0] "Create multi-community" page doesn't explain what it would mean to create a multi-communityオープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Open-Earth-Foundation/CityCatalyst#3395 ·
メンテナーはふだん 2 日以内に返信
-
Bug GUI
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
SCIInstitute/SCIRun#2907 ·
メンテナーはふだん 2 日以内に返信