Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dashboard] form周りの改善(valibotの使用, contextの利用) #938

Merged
merged 53 commits into from
Aug 24, 2024

Conversation

eyemono-moe
Copy link
Contributor

@eyemono-moe eyemono-moe commented Jul 22, 2024

なぜやるか

fix #902, fix #899

「modular formsのコンポーネントで自動生成される formのstore制御用のonInput, onChange, onBlur」と、独自のform制御
(kobalteのradio groupでbooleanが値として使えないから文字列↔booleanの変換を挟んだり, ビルドタイプの設定のために"runtime"/"static"と"buildpack"/"cmd"/"docker"の2*3のradio groupの入力値を組み合わせて"runtimeCmd"に変換したりしてる部分とか)がかみ合っていないために複数バグが存在していた。(#902, #899)
#902 (comment)

やったこと

やらなかったこと

  • 既存のコンポーネントのディレクトリ整理

資料

Copy link

Preview (prod backend + PR dashboard) → https://938.ns-preview.trapti.tech/

@eyemono-moe eyemono-moe changed the title Fix/use-valibot [dashboard] form周りの改善(valibotの使用, contextの利用) Jul 22, 2024
@eyemono-moe eyemono-moe marked this pull request as ready for review August 23, 2024 13:25
dashboard/package.json Outdated Show resolved Hide resolved
@cp-20
Copy link
Contributor

cp-20 commented Aug 24, 2024

(まだ中身見てなくてdescription読んだだけなんですが) #827 が修正されてるなら fix #827 もしておくと良さそうです?

handlerをpropsで受け取ることで使いまわせるようにしようと思っていたが、使いまわされる予定が無さそう
Copy link
Contributor

@cp-20 cp-20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

全体的には良さそうに見えます👍 ありがとうございます!

細かいところをいくつか書いたんですが、どれもmustではないので適当に対応してもらえるとGoodです

createApplicationFormInitialValues -> getInitialValueOfCreateAppForm
updateApplicationFormInitialValues -> getInitialValueOfUpdateAppForm
createRepositoryFormInitialValues -> getInitialValueOfCreateRepoForm
updateRepositoryFormInitialValues -> getInitialValueOfUpdateRepoForm
@eyemono-moe eyemono-moe merged commit 7b7de61 into main Aug 24, 2024
19 checks passed
@eyemono-moe eyemono-moe deleted the fix/use-valibot branch August 24, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants