Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Import/Export] Show import pending and completion states

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

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

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
react, typescript
領域
frontend

調査の方向性

Start in src/components/plans/ImportPlanDialog.tsx, which the prerequisite #848 wires to the import writer, and read src/hooks/data/useSavedPlans.ts for the existing save flow. Add a pending state that disables input and Confirm while the awaited callback runs, then show a saved-to-term message on success or keep the preview on failure without retrying. Done when the example in src/components/plans/ImportPlanDialog.test.tsx passes (two taps produce one callback call, failure keeps the preview), and pnpm test, pnpm lint and pnpm typecheck succeed. Confirm #848 is merged before starting.

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

説明

import-export

What to build

Make import submission show whether saving is in progress, succeeded or failed. Prevent repeated clicks while saving and keep the preview available when a failure needs a retry.

Files

Steps

  1. Make confirm callback awaitable; set pending before calling it and disable input/Confirm while it runs.
  2. On success show Saved to . and allow close; on rejection clear pending and keep preview for retry.
  3. Do not automatically repeat a failed write.

Example

Two taps during pending → one callback; failure retains preview; success reports the imported term.

Check it works

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

Before starting

  • #848 — Bind confirm to the supplied import writer

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 を短くまとめたダイジェスト。