[Time Between Classes] Bind the minimum-gap input

オープン 初心者向け
#784 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 11 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
86/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
next.js, react, typescript
領域
frontend

調査の方向性

src/components/plans/CreatePlanDialog.tsxを読み、特にFilters fieldset、単位時間入力欄、getRecommendedSchedules({...})の呼び出しを確認します。新しい任意の値はダイアログの状態に保持し、minGapMinutesとmaxGapMinutesとして渡します。最小値が最大値を超える場合はインラインメッセージを表示し、生成を防ぎます。受け入れケースを確認し、pnpm lint、pnpm typecheck、pnpm testを実行します。

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

説明

Frontend time-gaps

What to build

Add the minimum “time between classes” field to the create-plan form. Send the entered number of minutes to schedule generation, and leave the setting unset when the field is empty.

Files

Steps

  1. Add a string state for the optional minutes field and a labelled number input in the Filters fieldset.
  2. Follow the existing credit-hour markup; empty text maps to omission, not 0. On submit add the parsed number to getRecommendedSchedules input.
  3. Keep state local to the dialog; do not persist preferences in this slice.

Example

Shortest input 15/90 → matching numeric action key; empty → no key.

Check it works

In src/components/plans/CreatePlanDialog.test.tsx, check the example above and the failure or limit described in the steps. Run pnpm test -- src/components/plans/CreatePlanDialog.test.tsx, pnpm lint and pnpm typecheck.

References

Assign yourself before starting, or comment to claim the issue. Project setup.

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

環境構築

はじめの一歩

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

DevDogsUGA/DogDays のほかの issue

DevDogsUGA/DogDays の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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