Skip to content

プログレスバーの更新#642

Open
mikio815 wants to merge 2 commits intodevelopfrom
project-complete-bar
Open

プログレスバーの更新#642
mikio815 wants to merge 2 commits intodevelopfrom
project-complete-bar

Conversation

@mikio815
Copy link
Contributor

更新して、判定ロジックも少し変えたので色々試してみてください

@github-actions
Copy link

github-actions bot commented Apr 25, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 3.59% 511 / 14231
🔵 Statements 3.59% 511 / 14231
🔵 Functions 38.87% 131 / 337
🔵 Branches 59.81% 189 / 316
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/app/dashboard/Project.tsx 0% 0% 0% 0% 1-55
src/app/dashboard/RegistrationDashboard.tsx 0% 100% 100% 0% 2-144
src/app/register/page.tsx 0% 100% 100% 0% 3-85
src/common_components/RegistrationProgress.tsx 0% 0% 0% 0% 1-36
Generated in workflow #1130 for commit eed243e by the Vitest Coverage Report Action

@cloudflare-workers-and-pages
Copy link

Deploying sos25-client with  Cloudflare Pages  Cloudflare Pages

Latest commit: eed243e
Status: ✅  Deploy successful!
Preview URL: https://465856dc.sos25-client.pages.dev
Branch Preview URL: https://project-complete-bar.sos25-client.pages.dev

View logs

@reversed-R reversed-R self-requested a review April 26, 2025 02:10
Copy link
Contributor

@reversed-R reversed-R left a comment

Choose a reason for hiding this comment

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

LBTMeow...
^ ^
(; ω ;) ) ~

projectData: components["schemas"]["Project"];
mutation: () => void;
step: 1 | 2 | 3 | 4 | 5;
step: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
Copy link
Contributor

Choose a reason for hiding this comment

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

ステップを全て直列化させているのは流石にエグいかな、と。
例えば、状態をそれぞれが完了しているかのbooleanをもった構造体で表現して、表示する部分でprogress\d.svgに変換したほうがロジックが分かりやすそう

}

if (!formIsLoading && formData) {
let hasAnsweredEveryForm = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

全ての申請に答えていなければならないので、もとのほうが正しそう
プレビューで実験したところ1つだけ答えたところで申請提出doneになっていて、正しい挙動でない
誓約書提出フォームを除く全ての申請にしたほうが良い

@naohanpen
Copy link
Contributor

@mikio815 どうなってますか?

@mikio815
Copy link
Contributor Author

@mikio815 どうなってますか?

今絶妙に手がつけられそうにないです
もし手が空いている人がいれば代わりにお願いしたいです

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments