[Import/Export] Show import pending and completion states
まだ誰も着手していません。
評価
- 難易度
- 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 の本文から書いたものです。
説明
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
src/components/plans/ImportPlanDialog.tsx(extend the prerequisite’s file)- Starting example: src/hooks/data/useSavedPlans.ts
Steps
- Make confirm callback awaitable; set pending before calling it and disable input/Confirm while it runs.
- On success show Saved to . and allow close; on rejection clear pending and keep preview for retry.
- 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 はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DevDogsUGA/DogDays のほかの issue
-
map
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
DevDogsUGA/DogDays#868 ·
-
map
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
DevDogsUGA/DogDays#865 ·
-
sharing
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
DevDogsUGA/DogDays#854 ·
-
import-export
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
DevDogsUGA/DogDays#850 ·
-
import-export
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
DevDogsUGA/DogDays#842 ·
DevDogsUGA/DogDays の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
umami-software/umami#4637 ·
メンテナーはふだん 3 日以内に返信
-
Hotkeys fire when pressed with the Ctrl key, so browser shortcuts also trigger player actions対応中かも @RaphaelFakhri が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
muxinc/media-chrome#1332 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
polarsource/polar#15580 ·
メンテナーはふだん 1 日以内に返信
-
accepted bug via-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
pingdotgg/t3code#20931 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug/1-unconfirmed kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信