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

Donor Lookup Feature -- Edit Donation Functionality

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript
領域
full-stack

調査の方向性

issueで参照されているDonor LookupページとDonor Viewページから始め、寄付データに関するSequelize APIのエンドポイントとルートを追跡します。編集、数量調整、削除確認、確認、キャンセルの各動作によって、表示される寄付者データとバックエンドが仕様どおりに更新されれば完了です。プロトタイプのER図には引き続きWIPのマークが付いています。

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

説明

feature Urgent

This is an issue spawned from #193

More specifically, spawned from the original 'Edit Button' task.
  • When a user hits the 'Edit' button on a given 'Donor View' page, the 'Edit' button will disappear from the corresponding row and be replaced by a '-' button, a '+' button, a 'Delete' button, and a 'Confirm/Cancel' button.
  • Given that the row is assigned a specific index/key, pass the index/key that corresponds to the newly-edited column to the list/map used to populate 'Donor View' page.
  • Retrieve the Date, Name, and Quantity returned from the object located within the list used to populate the 'Donor View' page.
  • Store those values into a 'prototype' JSON that tracks the Date, Name, Quantity, and original index/key.
  • When the user presses the '-' button reduce the quantity of the given item by one in the 'prototype' JSON.
  • When the user presses the '+' button increase the quantity of the given item by one in the 'prototype' JSON.
  • When the user presses the 'Delete' button, prompt the user that 'This will remove the item from the Database, are you sure?'
    - If the user presses 'Yes' on the prompt:
    - Issue a Sequelize DELETE request/route on the item based on the attributes found within the 'prototype' JSON.
    - Re-populate the map/list used to display the 'Donor View' page.
    - Dump the current 'prototype' JSON.
    - If the user presses 'No' on the prompt, simply close the prompt window.
  • If the 'Prototype' JSON is different from the Item Quantity and Availability,
    - Then the 'Confirm/Cancel' button will display 'Confirm'
    - If pressed as a 'Confirm' Button
    - Issue a Sequelize UPDATE request/route on the donation based on the attributes found within the 'prototype' JSON.
    - Revert to the original 'Edit' button state.
    - Re-populate the 'Donor View' page with the appropriate backend call.
  • If the 'Prototype' JSON is NOT different from the Item Quantity and Availability
    - Then the 'Confirm/Cancel' button renders as a 'Cancel' button
    - If pressed as the 'Cancel' button, the 'Donor View' page reverts to the 'Edit' button state.
Note: The Sequelize API endpoints will need to match up with the Item's Date, Name, and Quantity exactly in order to work properly.

The list above can be copy-pasted into tasks if necessary. 'Prototype' ER Diagram is WIP.

Original UML Diagram from #193 included for reference to 'Donor Lookup' and 'Donor View' pages.

UpdatedDonorLookup

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

環境構築

はじめの一歩

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

ChicoState/PantryNode のほかの issue

ChicoState/PantryNode の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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