Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
b085805
feat: add RowRewards component to TradeRateDetails
fairlighteth Oct 21, 2025
f0ab657
refactor: move LinkStyledButton to a separate file and enhance its props
fairlighteth Oct 21, 2025
4023e18
refactor: consolidate LinkStyledButton imports from theme to @cowprot…
fairlighteth Oct 21, 2025
7691758
feat: integrate TwapRateDetails component into TwapFormWidget and ref…
fairlighteth Oct 21, 2025
56bf16c
refactor: simplify TradeRateDetails layout and adjust LinkStyledButto…
fairlighteth Oct 21, 2025
5a49ab2
refactor: remove unused noop function and simplify onClick
fairlighteth Oct 21, 2025
b06a3cf
refactor: remove TODO comment
fairlighteth Oct 21, 2025
cea3589
feat: add RowRewards component and visibility logic
fairlighteth Oct 21, 2025
1d8fc27
refactor: remove TwapRateDetails component and update TwapFormWidget
fairlighteth Oct 21, 2025
e04daca
Merge branch 'develop' into feat/affiliate-ui-1
fairlighteth Oct 21, 2025
7a000ac
Merge branch 'develop' into feat/affiliate-ui-1
fairlighteth Oct 21, 2025
806b346
feat: integrate RowRewards component into SwapConfirmModal and TradeR…
fairlighteth Oct 21, 2025
8d90eac
feat: display RowRewards component in TwapConfirmModal
fairlighteth Oct 21, 2025
a5293ad
Merge branch 'develop' into feat/affiliate-ui-1
fairlighteth Oct 21, 2025
98af8d1
Merge branch 'develop' into feat/affiliate-ui-1
fairlighteth Oct 22, 2025
2892d42
Merge branch 'develop' into feat/affiliate-ui-1
fairlighteth Oct 23, 2025
a38b213
feat(affiliate): bootstrap module constants and api
fairlighteth Oct 24, 2025
f07ec44
feat(affiliate): add referral state
fairlighteth Oct 24, 2025
508f1cc
feat(affiliate): add referral modal state hook
fairlighteth Oct 24, 2025
f161062
feat(affiliate): add referral controller
fairlighteth Oct 24, 2025
14413c1
feat(affiliate): add referral banner and deeplink handler
fairlighteth Oct 24, 2025
f3bfc03
feat(affiliate): add referral modal controller
fairlighteth Oct 24, 2025
2dc1783
feat(affiliate): add referral modal content
fairlighteth Oct 24, 2025
9e0bfa3
feat(affiliate): add referral modal styles
fairlighteth Oct 24, 2025
1cd9b93
feat(affiliate): wire referral ui entrypoints
fairlighteth Oct 24, 2025
2067da9
refactor(affiliate): update referral supported network names to use C…
fairlighteth Oct 24, 2025
376f1f4
refactor(affiliate): update referral API timeout and URLs and improve…
fairlighteth Oct 24, 2025
707e763
feat(affiliate): enhance referral types with detailed documentation a…
fairlighteth Oct 24, 2025
bee2645
feat(affiliate): introduce affiliate supported chain IDs and enhance …
fairlighteth Oct 24, 2025
f6577d0
chore(affiliate): add modal stubs for controller slice
fairlighteth Nov 3, 2025
761770e
feat(affiliate): add referral modal content
fairlighteth Oct 24, 2025
6753b2a
Merge branch 'feat/affiliate-ui-2' into feat/affiliate-ui-3
fairlighteth Nov 3, 2025
d17fe86
Merge branch 'feat/affiliate-ui-3' into feat/affiliate-ui-4
fairlighteth Nov 3, 2025
24aaeec
Merge branch 'feat/affiliate-ui-4' into feat/affiliate-ui-5
fairlighteth Nov 3, 2025
fac8346
Merge branch 'feat/affiliate-ui-5' into feat/affiliate-ui-6
fairlighteth Nov 3, 2025
e6c70aa
feat(affiliate): refactor referral modal components and introduce new…
fairlighteth Nov 3, 2025
8e91cb1
refactor(affiliate): split referral modal content into subcomponents
fairlighteth Nov 3, 2025
000f86a
feat(affiliate): add referral modal styles
fairlighteth Nov 3, 2025
f3018d8
refactor(affiliate): modularize referral modal content
fairlighteth Nov 4, 2025
cf0fdd6
refactor(affiliate): drop header referral cta
fairlighteth Nov 4, 2025
70007f6
fix(affiliate): adjust CTA label for verified wallets
fairlighteth Nov 4, 2025
5fa13bd
feat(affiliate): enhance referral code handling and UI states
fairlighteth Nov 4, 2025
7adb2ac
feat(affiliate): implement referral code modal enhancements and helpe…
fairlighteth Nov 5, 2025
71f5573
feat(affiliate): enhance referral code verification logic and UI comp…
fairlighteth Nov 5, 2025
49830c0
feat(affiliate): improve referral code modal UI and logic with new st…
fairlighteth Nov 6, 2025
9372a32
feat(affiliate): integrate wallet chain ID support and enhance referr…
fairlighteth Nov 6, 2025
5dd5bb2
feat(affiliate): add incoming code reason handling and enhance referr…
fairlighteth Nov 6, 2025
f7a26a2
feat(affiliate): add cancel verification functionality and improve re…
fairlighteth Nov 6, 2025
db330ff
fix(affiliate): update referral code modal logic and improve responsi…
fairlighteth Nov 7, 2025
1e66e29
Merge branch 'feat/affiliate-ui-6' into feat/affiliate-ui-7
fairlighteth Nov 26, 2025
e6cd030
Merge branch 'feat/affiliate-ui-7' into feat/affiliate-ui-8
fairlighteth Nov 26, 2025
2dc2690
Merge branch 'feat/affiliate-ui-8' into feat/affiliate-ui-9
fairlighteth Nov 26, 2025
e9cc7ed
Merge branch 'feat/affiliate-ui-9' into feat/affiliate-ui-10
fairlighteth Nov 26, 2025
fa7225d
Merge branch 'feat/affiliate-ui-10' into feat/affiliate-ui-11
fairlighteth Nov 26, 2025
8f7e2be
Merge remote-tracking branch 'origin/develop' into feat/affiliate-v2
kernelwhisperer Jan 7, 2026
27295bb
fix: build
kernelwhisperer Jan 7, 2026
53717e0
feat: bootstrap my rewards & affiliate pages
kernelwhisperer Jan 9, 2026
63f8ff4
feat: improve affiliate flows
kernelwhisperer Jan 13, 2026
a6acc5d
chore: refactor + adopt the feature sliced design pattern
kernelwhisperer Jan 27, 2026
552a462
Merge remote-tracking branch 'origin/develop' into feat/affiliate
kernelwhisperer Jan 29, 2026
2f9c036
fix: add missing package after pnpm migration
kernelwhisperer Jan 29, 2026
5650653
chore: more refactors
kernelwhisperer Jan 29, 2026
9445524
Merge remote-tracking branch 'origin/develop' into feat/affiliate
kernelwhisperer Jan 30, 2026
e2c4f88
chore: refactor and fixes
kernelwhisperer Jan 30, 2026
8973094
chore: bug fixes and improvements
kernelwhisperer Feb 2, 2026
ad50145
chore: use partner instead of affiliate to refer to code creators
kernelwhisperer Feb 2, 2026
32a027e
fix: ineligibility bug
kernelwhisperer Feb 2, 2026
5b81fd1
feat: show unsupported network card
kernelwhisperer Feb 2, 2026
1359a0b
fix: bugs in affiliate program
kernelwhisperer Feb 2, 2026
93e30d2
chore: refactor
kernelwhisperer Feb 2, 2026
bdab345
feat: qr code
kernelwhisperer Feb 2, 2026
7be92d3
Merge remote-tracking branch 'origin/develop' into feat/affiliate
kernelwhisperer Feb 3, 2026
ad24844
chore: small fixes
kernelwhisperer Feb 3, 2026
8de5821
chore: fix things
kernelwhisperer Feb 3, 2026
2683ee6
fix: bugs in affiliate program
kernelwhisperer Feb 3, 2026
15273f3
feat: use feature flag
kernelwhisperer Feb 3, 2026
2fd99d2
chore: small refactor + payouts.sql
kernelwhisperer Feb 4, 2026
6a14850
chore: update sql files
kernelwhisperer Feb 4, 2026
77378f0
chore: fix sql statements
kernelwhisperer Feb 5, 2026
92d2bbd
chore: update AFFILIATE_SUPPORTED_CHAIN_IDS
kernelwhisperer Feb 5, 2026
00d3b07
fix: bug with the wrong reward amount
kernelwhisperer Feb 5, 2026
24ffdd8
fix: decimal issues in sql files
kernelwhisperer Feb 5, 2026
cd35ad2
chore: fix sql files and add documentation
kernelwhisperer Feb 5, 2026
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
1 change: 1 addition & 0 deletions apps/cowswap-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
"react-icons": "^5.2.1",
"react-inlinesvg": "^4.1.5",
"react-markdown": "^10.1.0",
"react-qrcode-logo": "^4.0.0",
"react-redux": "^8.0.2",
"react-router": "7.5.2",
"react-snowfall": "^2.2.0",
Expand Down
2 changes: 2 additions & 0 deletions apps/cowswap-frontend/src/common/constants/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export const Routes = {
ACCOUNT_TOKENS: '/account/tokens',
ACCOUNT_TOKENS_SINGLE: '/account/tokens/:address',
ACCOUNT_GOVERNANCE: '/account/governance',
ACCOUNT_AFFILIATE: '/account/affiliate',
ACCOUNT_MY_REWARDS: '/account/my-rewards',
ABOUT: '/about',
PRIVACY_POLICY: '/privacy-policy',
COOKIE_POLICY: '/cookie-policy',
Expand Down
3 changes: 1 addition & 2 deletions apps/cowswap-frontend/src/common/pure/CancelButton/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { PropsWithChildren } from 'react'

import { Command } from '@cowprotocol/types'
import { UI } from '@cowprotocol/ui'
import { UI, LinkStyledButton } from '@cowprotocol/ui'

import { Trans } from '@lingui/react/macro'
import { LinkStyledButton } from 'theme'

export type CancelButtonProps = {
onClick: Command
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { ReactNode, useCallback, useState } from 'react'

import { TokenAmount, UI } from '@cowprotocol/ui'
import { TokenAmount, UI, LinkStyledButton } from '@cowprotocol/ui'
import { CurrencyAmount } from '@uniswap/sdk-core'

import { t } from '@lingui/core/macro'
import { Trans } from '@lingui/react/macro'
import { ArrowLeft, ArrowRight } from 'react-feather'
import styled from 'styled-components/macro'
import { LinkStyledButton } from 'theme'

import NotificationBanner from 'legacy/components/NotificationBanner'

Expand Down
17 changes: 10 additions & 7 deletions apps/cowswap-frontend/src/legacy/components/Copy/CopyMod.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import React, { MouseEvent } from 'react'

import { useCopyClipboard } from '@cowprotocol/common-hooks'
import { UI } from '@cowprotocol/ui'
import { LinkStyledButton } from '@cowprotocol/ui'

import { Trans } from '@lingui/react/macro'
import { CheckCircle, Copy } from 'react-feather'
import styled, { DefaultTheme, StyledComponentProps } from 'styled-components/macro'
import { LinkStyledButton } from 'theme'

import { TransactionStatusText } from 'legacy/components/Copy/index'

Expand Down Expand Up @@ -54,12 +54,13 @@ interface CopyHelperProps
children?: React.ReactNode
clickableLink?: boolean
copyIconWidth?: string
hideCopiedLabel?: boolean
}

// TODO: Add proper return type annotation
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export default function CopyHelper(props: CopyHelperProps) {
const { toCopy, children, clickableLink, copyIconWidth, ...rest } = props
const { toCopy, children, clickableLink, copyIconWidth, hideCopiedLabel = false, ...rest } = props
const [isCopied, setCopied] = useCopyClipboard()

// TODO: Add proper return type annotation
Expand All @@ -78,11 +79,13 @@ export default function CopyHelper(props: CopyHelperProps) {
isCopied={isCopied} // mod
>
<CheckCircleIconWrapper size={'16'} />
<TransactionStatusText
isCopied={isCopied} // mod
>
<Trans>Copied</Trans>
</TransactionStatusText>
{!hideCopiedLabel ? (
<TransactionStatusText
isCopied={isCopied} // mod
>
<Trans>Copied</Trans>
</TransactionStatusText>
) : null}
</TransactionStatusText>
) : (
<TransactionStatusText>
Expand Down
Loading