-
Notifications
You must be signed in to change notification settings - Fork 177
Matching estimates on checkout page #2022
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
Merged
Merged
Changes from 16 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
e7340a7
chore: update indexer client version
vacekj 080802d
feat: matching estimates on checkout and hook
vacekj 68fb3ab
chore: fix lint
vacekj b28b93b
chore: total matching
vacekj ed9a0cc
chore: rename ge scripts and fix matching estimates
vacekj 2af3ef6
feat: cleanup
vacekj c3a58e3
feat: loading and error states for estimates
vacekj a6b1dab
chore: comments
vacekj 49c7e2d
feat: per-round matching, hide per-project matching
vacekj 39d438c
chore: revert some unrelated changes
vacekj b43001b
feat: take passport into account in matching estimates
vacekj 19d58c4
feat: take passport into account in matching estimates
vacekj e0de288
chore: update lock
vacekj 01edc1d
chore: address feedback from self-review
vacekj 3a6fee6
Merge branch 'main' into 1931-spike-matching-estimates-for-donations
vacekj 2801fc3
feat(common): update closeDelay in MatchingEstimateTooltip component …
vacekj d310d54
chore: add common and verify-env tests to CI, address feedback from PR
vacekj ac8f4b2
Merge branch 'main' into 1931-spike-matching-estimates-for-donations
vacekj f360090
fix: test
vacekj 2f1dd5a
Merge branch 'main' into 1931-spike-matching-estimates-for-donations
vacekj 2b4662e
chore: drop a todoˆ
vacekj 1412e78
feat: update frontend matching estimates
vacekj ebc5b74
Merge branch 'main' into 1931-spike-matching-estimates-for-donations
vacekj 5c54fb3
fix: don't pass undefined as voter in matching estimates, pass zeroAd…
vacekj bd61965
fix: lint
vacekj a6e82cb
fix: minor fixes for feedback from review
vacekj a8c9f89
fix: don't estimate when round is not loaded, fix total matching bugˆ
vacekj e12ee25
fix: don't estimate when round is not loaded, fix total matching bug,…
vacekj f419f66
Merge branch 'main' into 1931-spike-matching-estimates-for-donations
vacekj 86b16eb
Merge branch 'main' into 1931-spike-matching-estimates-for-donations
vacekj e431d64
feat: implement colors for matching estimates based on passport
boudra f47756b
Merge branch 'main' into 1931-spike-matching-estimates-for-donations
boudra e3894d6
Merge branch 'main' into 1931-spike-matching-estimates-for-donations
vacekj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
packages/grant-explorer/src/features/common/MatchingEstimateTooltip.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| import { InformationCircleIcon } from "@heroicons/react/24/solid"; | ||
| import React from "react"; | ||
| import { Tooltip } from "@chakra-ui/react"; | ||
|
|
||
| export function MatchingEstimateTooltip(props: { isEligible: boolean }) { | ||
| return ( | ||
| <div> | ||
| <Tooltip | ||
| hasArrow | ||
| closeDelay={2000} | ||
| placement={"bottom-end"} | ||
| label={ | ||
| <p className="text-xs p-1 pointer-events-auto select-all"> | ||
vacekj marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| {props.isEligible ? ( | ||
| <> | ||
| Due to the nature of quadratic funding, this estimated match is | ||
| subject to change as the round progresses. Your match may start | ||
| at $0, but can change as the project receives more donations. | ||
| Read more about how quadratic funding works{" "} | ||
| <a href="https://wtfisqf.com">here</a>. | ||
vacekj marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| </> | ||
| ) : ( | ||
| <> | ||
| Keep in mind that this is a potential match. By connecting to | ||
| Gitcoin Passport, you can update your score before or after | ||
| submitting your donation. | ||
| <a href="https://passport.gitcoin.co" target="_blank"> | ||
| Click here | ||
| </a>{" "} | ||
| to configure your score. | ||
| </> | ||
| )} | ||
| </p> | ||
| } | ||
| id="matching-estimate-tooltip" | ||
| className={"max-w-sm bg-gray-500 text-gray-50"} | ||
| > | ||
| <InformationCircleIcon | ||
| data-background-color="#5932C4" | ||
| className="inline w-4 h-4 ml-2" | ||
| data-testid={"matching-estiamte-tooltip"} | ||
vacekj marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| /> | ||
| </Tooltip> | ||
| </div> | ||
| ); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.