Skip to content

Commit

Permalink
Merge pull request #4276 from Giveth/add_additional_ids
Browse files Browse the repository at this point in the history
Add additional ids to dom elements for analytics
  • Loading branch information
MohammadPCh authored Jun 17, 2024
2 parents 118778b + 7aa0f1c commit 20f5967
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"dependencies": {
"@apollo/client": "^3.10.4",
"@giveth/ui-design-system": "^1.11.28",
"@giveth/ui-design-system": "^1.11.29",
"@reduxjs/toolkit": "^2.2.4",
"@safe-global/api-kit": "^2.1.0",
"@segment/snippet": "^4.15.3",
Expand Down
1 change: 1 addition & 0 deletions src/components/project-card/ProjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ const ProjectCard = (props: IProjectCard) => {
)}
<ActionButtons>
<Link
id='Donate_Card'
href={donateLink}
onClick={e => {
setDestination(donateLink);
Expand Down
1 change: 1 addition & 0 deletions src/components/views/donate/CryptoDonation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ const CryptoDonation: FC = () => {
)}
{isConnected && (
<MainButton
id='Donate_Final'
label={formatMessage({ id: 'label.donate' })}
disabled={donationDisabled}
size='medium'
Expand Down
5 changes: 4 additions & 1 deletion src/components/views/homepage/ProjectsCampaignBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ const ProjectsCampaignBlock: FC<IProjectsCampaignBlockProps> = ({
<BottomSection>
<Title>
<H1 weight={700}>{campaign.title}</H1>
<Link href={campaignLinkGenerator(campaign) || ''}>
<Link
id='Explore_Row'
href={campaignLinkGenerator(campaign) || ''}
>
<Button
buttonType='texty-primary'
label={formatMessage({
Expand Down
5 changes: 4 additions & 1 deletion src/components/views/homepage/introBlock/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ const IntroBlock = () => {
})}
</CustomLead>
<ButtonsContainer gap='16px'>
<Link href={Routes.AllProjects}>
<Link
id='Explore_Hero'
href={Routes.AllProjects}
>
<ButtonLink
label={formatMessage({
id: 'label.explore_projects',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export const ProjectPublicActions = () => {
</SublineBold>
</AlreadyDonatedWrapper>
)}
<Link href={slugToProjectDonate(slug || '')}>
<Link id='Donate_Project' href={slugToProjectDonate(slug || '')}>
<DonateButton
label={formatMessage({ id: 'label.donate' })}
disabled={!isActive}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1351,10 +1351,10 @@
"@solana/wallet-adapter-base" "^0.9.17"
bs58 "^5.0.0"

"@giveth/ui-design-system@^1.11.28":
version "1.11.28"
resolved "https://registry.yarnpkg.com/@giveth/ui-design-system/-/ui-design-system-1.11.28.tgz#3063105cab954ed545bfff4ac1fef526710c947e"
integrity sha512-YYqIJ3w1CpXoJgsYNQNwCnTVBT0EUgHQjOCQBvI3UecpT2f4P3AZuUD53Kn1vDS5jg1PPLwN1N2zy6TCdtG31Q==
"@giveth/ui-design-system@^1.11.29":
version "1.11.29"
resolved "https://registry.yarnpkg.com/@giveth/ui-design-system/-/ui-design-system-1.11.29.tgz#2ac267ec9ff0e9c0ce2e55068fd931d8974363d8"
integrity sha512-MQB9ScC6NCSglV1UOKdWjrppfi5XCAr5y3c/32XDwVi+82ctwq0JaT2P2Qa1jPLVtuv6VYAn2O8hnpkQMPO23w==
dependencies:
next "14.1.0"
react "^18"
Expand Down

0 comments on commit 20f5967

Please sign in to comment.