Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

寄付した後にsuccess.tsxで表示される推定上乗せ額の計算があっているか確認 #27

Closed
tkgshn opened this issue May 2, 2024 · 1 comment
Assignees

Comments

@tkgshn
Copy link
Collaborator

tkgshn commented May 2, 2024

概要

プロジェクトに寄付した後に、次のような画面が表示される。これには、「寄付した額」と『(その寄付により)推定される上乗せ金額』が含まれる。ただ、これが本当に"ユーザーがそのプロジェクトに寄付したことによって上乗せされる金額なのか"がわかっていない。コードが間違っているのかもしれない。
Image from Gyazo
(このコード自体はgrant/checkout/success.tsxにある)

再現手順

  1. プロジェクト一覧から適当なプロジェクトをカートに入れ、適当な金額で寄付する
  2. 寄付に成功すると添付のスクリーンショットの画面が表示される

期待する動作

  1. 寄付した瞬間に存在する過去の寄付データ(contributiontableに存在する)を参照し、 ユーザーがプロジェクトに寄付したあと、MatchedFund テーブルを生成・更新するようにする #19 を更新する
  2. そこから自分の寄付によって上乗せされる金額を計算し、表示する

このissueは、 #28 とかなり近いことを言っているが、違う点は「寄付した瞬間の」上乗せ金額を計算すること。こちらの方が考慮するシチュエーションが少ないので、(寄付された瞬間の上乗せ金額だけを計算し、表示すればいい)難易度的にはあまり高くない。

@tkgshn tkgshn changed the title 寄付した後に表示される推定上乗せ額があっているの確認 寄付した後にsuccess.tsxで表示される推定上乗せ額の計算があっているか確認 May 3, 2024
@tkgshn tkgshn self-assigned this May 3, 2024
@tkgshn
Copy link
Collaborator Author

tkgshn commented May 11, 2024

9f99192
これで解決

@tkgshn tkgshn closed this as completed May 11, 2024
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

No branches or pull requests

1 participant