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

Recurring donation functionality #3436

Merged
merged 158 commits into from
Dec 26, 2023
Merged
Changes from 1 commit
Commits
Show all changes
158 commits
Select commit Hold shift + click to select a range
b670f3b
handle error
MohammadPCh Nov 28, 2023
adf170c
fix amount
MohammadPCh Nov 28, 2023
6f33d5b
fix approve token
MohammadPCh Nov 29, 2023
a73f075
show super tokens
MohammadPCh Nov 29, 2023
43dcf30
update giveth ui package to fix givback icon
MohammadPCh Nov 29, 2023
efabd28
create a flow
MohammadPCh Nov 29, 2023
69ce035
show underlying token symbol if exists
MohammadPCh Nov 29, 2023
f711f27
remove wagmi provider
MohammadPCh Nov 29, 2023
3b3c498
handle zero flowrates
MohammadPCh Nov 29, 2023
a4b9094
add batch call
MohammadPCh Nov 29, 2023
c179186
check allowance before continue
MohammadPCh Nov 29, 2023
471d28e
Merge branch 'superfluid-develop-branch' into recurring-donation-func…
MohammadPCh Dec 2, 2023
5adca5a
move selected token functionality to context
MohammadPCh Dec 2, 2023
b03cdfa
init ConfirmRecurringDonationModal
MohammadPCh Dec 2, 2023
9670364
remove confirm from the name
MohammadPCh Dec 2, 2023
641e449
show donation modal
MohammadPCh Dec 2, 2023
fe6f430
add title
MohammadPCh Dec 2, 2023
b980971
handle steps
MohammadPCh Dec 2, 2023
5aac609
separate inputs
MohammadPCh Dec 2, 2023
8515dbb
change max and percentage to options
MohammadPCh Dec 2, 2023
47d5e20
add StakingAmountInput
MohammadPCh Dec 2, 2023
667cfec
add ids
MohammadPCh Dec 2, 2023
fb5464c
use Amount input component
MohammadPCh Dec 2, 2023
af7103a
remove NumericalInput
MohammadPCh Dec 2, 2023
82d0112
update BaseInput styles
MohammadPCh Dec 2, 2023
86f5695
update StakingAmountInput styles
MohammadPCh Dec 2, 2023
5406307
update input style
MohammadPCh Dec 2, 2023
fd69033
fix icons
MohammadPCh Dec 2, 2023
55447f6
add token TokenIconWithGIVBack
MohammadPCh Dec 2, 2023
17e184c
use TokenIconWithGIVBack
MohammadPCh Dec 2, 2023
b4cd596
fix maxAmount
MohammadPCh Dec 2, 2023
732353c
handle decimals
MohammadPCh Dec 2, 2023
1570948
update onUserInput by decimals
MohammadPCh Dec 2, 2023
3565718
update color
MohammadPCh Dec 2, 2023
4cb1c92
init slider
MohammadPCh Dec 2, 2023
3af8ccd
show streams info
MohammadPCh Dec 2, 2023
e35a929
use GivethSection
MohammadPCh Dec 3, 2023
d834f27
add donate info
MohammadPCh Dec 3, 2023
17084e0
fix DonateToGiveth title
MohammadPCh Dec 3, 2023
c315013
add powered row
MohammadPCh Dec 3, 2023
ae38476
fix InputWithUnit imports
MohammadPCh Dec 4, 2023
206382d
init item
MohammadPCh Dec 4, 2023
aa0691f
add useTokenPrice
MohammadPCh Dec 4, 2023
f867a6d
move donation modal
MohammadPCh Dec 4, 2023
fe850e6
use wagmi address type
MohammadPCh Dec 4, 2023
ee3901d
show items
MohammadPCh Dec 4, 2023
aa65436
show correct amount
MohammadPCh Dec 4, 2023
bf6f502
update donate button disable condition
MohammadPCh Dec 4, 2023
d062dde
show price
MohammadPCh Dec 4, 2023
b04c63f
add run out section
MohammadPCh Dec 4, 2023
bae639e
update token info disable condition
MohammadPCh Dec 5, 2023
bc22a9e
add approve button
MohammadPCh Dec 5, 2023
ed7735d
fix select token
MohammadPCh Dec 5, 2023
17673b9
add loading to refresh
MohammadPCh Dec 5, 2023
aa86c11
fix eth refreshing
MohammadPCh Dec 5, 2023
6ad2bae
move stake steps to steps folder
MohammadPCh Dec 5, 2023
3f2b438
init steps
MohammadPCh Dec 5, 2023
6f4d753
remove old stake steps
MohammadPCh Dec 5, 2023
2889daa
add new stake steps
MohammadPCh Dec 5, 2023
c1b0326
use new stake steps
MohammadPCh Dec 5, 2023
aac047b
move mint modal
MohammadPCh Dec 5, 2023
d4b59fd
add mint step
MohammadPCh Dec 5, 2023
5a1e21d
use mint step
MohammadPCh Dec 5, 2023
202e37a
add translation to steps
MohammadPCh Dec 5, 2023
55cfbcd
add DonateSteps
MohammadPCh Dec 5, 2023
f077fd9
fix typo
MohammadPCh Dec 5, 2023
90a61bf
add theme to step title
MohammadPCh Dec 5, 2023
e55b490
add theme to steps
MohammadPCh Dec 5, 2023
e577019
move donate steps to inner modal
MohammadPCh Dec 5, 2023
c27f3ad
add theme to steps line
MohammadPCh Dec 5, 2023
80a2545
add user select none
MohammadPCh Dec 5, 2023
689db36
add approve functionality
MohammadPCh Dec 6, 2023
b9b05c3
add findSuperTokenByTokenAddress
MohammadPCh Dec 6, 2023
f1864eb
update on donate functionality
MohammadPCh Dec 6, 2023
f03de5f
fix button label
MohammadPCh Dec 6, 2023
db20f77
use wagmi address type
MohammadPCh Dec 6, 2023
b145cdb
handle multiple stream
MohammadPCh Dec 6, 2023
d3de565
fix approve
MohammadPCh Dec 6, 2023
a071115
handle user has stream to giveth
MohammadPCh Dec 6, 2023
423643a
fix donation on giveth for second time
MohammadPCh Dec 7, 2023
ec412c0
make button disable on loading
MohammadPCh Dec 7, 2023
8c7f902
handle Eth
MohammadPCh Dec 7, 2023
006cc01
show super token balance as amount
MohammadPCh Dec 7, 2023
5e873cb
remove unused functions
MohammadPCh Dec 7, 2023
7a7f61d
move token streams to context
MohammadPCh Dec 7, 2023
f5e0e6c
add findUserStreamOnSelectedToken
MohammadPCh Dec 7, 2023
60026ea
handle userStreamOnSelectedToken
MohammadPCh Dec 8, 2023
72fbcfa
fix useTokenPrice
MohammadPCh Dec 10, 2023
44c1b22
set percentage on update
MohammadPCh Dec 11, 2023
eb779d5
show other recurring donations row
MohammadPCh Dec 11, 2023
d9f2206
fix action button for confirming
MohammadPCh Dec 11, 2023
d875296
calc total stream per sec
MohammadPCh Dec 11, 2023
e3cb7c8
fix changing selected token
MohammadPCh Dec 11, 2023
ac0cd81
handle updating in donate modal
MohammadPCh Dec 11, 2023
870d630
fix submitted step
MohammadPCh Dec 11, 2023
22684bb
use ONE_MONTH_SECONDS
MohammadPCh Dec 11, 2023
18c5c79
change slider color on exceed
MohammadPCh Dec 11, 2023
7bef7a0
fix isTotalStreamExceed
MohammadPCh Dec 11, 2023
846e445
init layer
MohammadPCh Dec 14, 2023
8bcfb29
Merge branch 'superfluid-develop-branch' into recurring-donation-func…
MohammadPCh Dec 17, 2023
6ac14f5
fix prettier
MohammadPCh Dec 17, 2023
9eebc94
add wrapper
MohammadPCh Dec 18, 2023
fdacd0e
init toast
MohammadPCh Dec 18, 2023
d966e4d
add SwitchButton
MohammadPCh Dec 18, 2023
4e3ad32
add desc
MohammadPCh Dec 18, 2023
a288539
handle switch network
MohammadPCh Dec 18, 2023
b76b50e
show one-time donation
MohammadPCh Dec 18, 2023
2149793
disable closing modal on approving and donation
MohammadPCh Dec 18, 2023
9162e20
add top up button
MohammadPCh Dec 18, 2023
e0772fd
init DepositSteps
MohammadPCh Dec 20, 2023
a8f1e32
init ModifySuperTokenModal
MohammadPCh Dec 20, 2023
7fcdda2
init tabs
MohammadPCh Dec 20, 2023
baf2b2e
init DepositSuperToken
MohammadPCh Dec 21, 2023
ed28c4f
update test2
MohammadPCh Dec 21, 2023
3c2b6de
fix super token and token
MohammadPCh Dec 21, 2023
d610d4c
add stream balance
MohammadPCh Dec 21, 2023
a182003
add streams info
MohammadPCh Dec 21, 2023
d850a99
pass token streams to deposit
MohammadPCh Dec 21, 2023
ba9de8e
calc run out stream time
MohammadPCh Dec 21, 2023
02c11b6
add ModifyInfoToast
MohammadPCh Dec 21, 2023
3563018
use ModifyInfoToast
MohammadPCh Dec 21, 2023
02f3f00
add confirm button
MohammadPCh Dec 21, 2023
fb3013d
show steps
MohammadPCh Dec 21, 2023
f7feb40
add deposit translation
MohammadPCh Dec 21, 2023
3c2911d
fix super token balance
MohammadPCh Dec 21, 2023
c26e8ec
separate run out info section
MohammadPCh Dec 24, 2023
e7b8b1f
handle division by zero
MohammadPCh Dec 24, 2023
85a8e53
add approve step ui
MohammadPCh Dec 24, 2023
68e34b0
add approve functionality
MohammadPCh Dec 24, 2023
0ac4204
skip approve for native token
MohammadPCh Dec 24, 2023
c09d1d7
handle steps
MohammadPCh Dec 24, 2023
7544259
fix disable condition
MohammadPCh Dec 24, 2023
0ca1486
fix fetchEthPrice
MohammadPCh Dec 24, 2023
305adac
add onDeposit
MohammadPCh Dec 24, 2023
666f0bf
handle done action
MohammadPCh Dec 24, 2023
71cbf6d
fix loading state
MohammadPCh Dec 24, 2023
c18adcd
fix disable condition
MohammadPCh Dec 24, 2023
e978845
hide tabs
MohammadPCh Dec 24, 2023
fcd16e5
use token balance only from use token
MohammadPCh Dec 24, 2023
0cbdb46
add feature flag
MohammadPCh Dec 25, 2023
c1b234b
hide tokens with stream on project from token list
MohammadPCh Dec 25, 2023
89313c0
comment eruda
MohammadPCh Dec 25, 2023
c8cff63
fix typo
MohammadPCh Dec 25, 2023
ba01150
update SuccessView
MohammadPCh Dec 25, 2023
951f23d
show SuccessView
MohammadPCh Dec 25, 2023
0798083
update styles
MohammadPCh Dec 25, 2023
f1118cb
update one time donation
MohammadPCh Dec 25, 2023
29fa2c9
remove unused
MohammadPCh Dec 25, 2023
367dd3a
use project data from props instead of context in QFSection
MohammadPCh Dec 25, 2023
906d96a
use project data from props instead of context in DonationSection
MohammadPCh Dec 25, 2023
1bc3e6e
pass projectData
MohammadPCh Dec 25, 2023
4c032c8
show project Info
MohammadPCh Dec 25, 2023
a35bb25
fix already donated width
MohammadPCh Dec 25, 2023
e77c852
set donation tx
MohammadPCh Dec 25, 2023
8822ffa
Merge branch 'superfluid-develop-branch' into recurring-donation-func…
aminlatifi Dec 25, 2023
9b7a776
fix no stream
MohammadPCh Dec 26, 2023
53731ce
handle giveth project
MohammadPCh Dec 26, 2023
d2c5337
fix nice banner width
MohammadPCh Dec 26, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
pass projectData
MohammadPCh committed Dec 25, 2023
commit 1bc3e6e80890f6eecae2fa6080b33e1952af4875
Original file line number Diff line number Diff line change
@@ -35,11 +35,16 @@ export const ProjectActionCard = () => {
const ProjectActionInnerCard = () => {
const { isAdmin, hasActiveQFRound, isDraft } = useProjectContext();
const isMobile = !useMediaQuery(device.tablet);
const { projectData } = useProjectContext();

return (
<>
{isAdmin && !isDraft && <AdminActions />}
{!isMobile && hasActiveQFRound ? <QFSection /> : <DonateSection />}
{!isMobile && hasActiveQFRound ? (
<QFSection projectData={projectData} />
) : (
<DonateSection projectData={projectData} />
)}
{!isMobile && !isAdmin && <ProjectPublicActions />}
{isAdmin && <ProjectStats />}
</>