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

feat: APP-395 hide in the UI the anonymous purchasing #2535

Merged
merged 2 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,16 @@ export const Retirement = ({ retiring }: Props) => {
/>
</Title>
<TextField
className="!my-20 sm:!my-30"
className="!mt-20 sm:!mt-30"
label={_(msg`Explain the reason you are retiring these credits`)}
{...register('retirementReason')}
error={!!errors['retirementReason']}
helperText={errors['retirementReason']?.message}
labelClassName="text-sm sm:text-base font-normal"
optional
/>
<CheckboxLabel
{/* <CheckboxLabel
className=" !mt-20 sm:!mt-30"
checked={anonymousPurchase}
optional
optionalTextClassName="sm:after:text-sm"
Expand All @@ -89,7 +90,7 @@ export const Retirement = ({ retiring }: Props) => {
</Body>
}
{...register('anonymousPurchase')}
/>
/> */}
</Card>
<Card className="py-30 px-20 sm:py-50 sm:px-40 border-grey-300 my-20">
<Title variant="h6" className="flex items-center pb-30">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const CustomerInfo = ({
<TextField
label={_(msg`Your name`)}
description={_(
msg`This name will appear on the retirement certificate unless you choose to retire anonymously in the next step. It is also your user profile name.`,
msg`This name will appear on the retirement certificate. It is also your user profile name.`,
)}
{...register('name')}
error={!!errors['name']}
Expand Down
98 changes: 44 additions & 54 deletions web-marketplace/src/lib/i18n/locales/en.po
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2024-11-14 15:26+0100\n"
"POT-Creation-Date: 2024-11-18 11:02+0100\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: @lingui/cli\n"
"Language: en\n"
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Plural-Forms: \n"

#: src/components/organisms/CreditActivityTable/CreditActivityTable.tsx:65
#: src/components/organisms/Documentation/Documentation.constants.ts:11
Expand Down Expand Up @@ -101,7 +95,7 @@ msgstr ""
msgid "{remainingTitleCharacters, plural, one {{remainingTitleCharacters} character remaining} other {{remainingTitleCharacters} characters remaining}}"
msgstr ""

#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:116
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:115
msgid "{years} year project duration"
msgstr ""

Expand Down Expand Up @@ -545,7 +539,7 @@ msgstr ""
msgid "Are you sure you want to discard your changes?"
msgstr ""

#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:146
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:145
msgid "Area Actions"
msgstr ""

Expand Down Expand Up @@ -674,7 +668,7 @@ msgid "BATCH START DATE"
msgstr ""

#: src/components/molecules/ProjectPageMetadata/ProjectPageMetadata.tsx:159
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.ComplianceInfo.tsx:88
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.ComplianceInfo.tsx:97
msgid "biome"
msgstr ""

Expand Down Expand Up @@ -754,7 +748,7 @@ msgstr ""
msgid "Buy"
msgstr ""

#: src/components/organisms/SellOrdersActionsBar/SellOrdersActionsBar.tsx:212
#: src/components/organisms/SellOrdersActionsBar/SellOrdersActionsBar.tsx:215
#: src/pages/Marketplace/Storefront/Storefront.constants.ts:4
msgid "BUY"
msgstr ""
Expand All @@ -771,7 +765,7 @@ msgstr ""
msgid "buy credits"
msgstr ""

#: src/components/organisms/SellOrdersActionsBar/SellOrdersActionsBar.tsx:212
#: src/components/organisms/SellOrdersActionsBar/SellOrdersActionsBar.tsx:215
msgid "BUY CREDITS"
msgstr ""

Expand Down Expand Up @@ -863,7 +857,7 @@ msgstr ""
msgid "Caribbean"
msgstr ""

#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:35
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:34
msgid "Categories of the IUCN Red List of Ecosystems assess ecosystem health and risk at a global scale. Tebu promotes protecting the most threatened ecosystems by giving a higher score to those at higher risk."
msgstr ""

Expand Down Expand Up @@ -1032,7 +1026,7 @@ msgstr ""
msgid "Compliance"
msgstr ""

#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCredits.utils.tsx:54
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCredits.utils.tsx:56
msgid "Compliance Credits"
msgstr ""

Expand Down Expand Up @@ -1085,7 +1079,7 @@ msgstr ""
msgid "Connect wallet address"
msgstr ""

#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:71
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:70
msgid "Connectivity allows the flow of species and ecological processes that support biodiversity across a larger area. Tebu promotes projects that contribute to the restoration of maintenance of the ecological connectivity at a landscape scale."
msgstr ""

Expand Down Expand Up @@ -1308,7 +1302,7 @@ msgstr ""
msgid "Credit prices vary. By default the lowest priced credits will be purchased first."
msgstr ""

#: src/components/organisms/AgreePurchaseForm/AgreePurchaseForm.Retirement.tsx:96
#: src/components/organisms/AgreePurchaseForm/AgreePurchaseForm.Retirement.tsx:97
msgid "Credit retirement location"
msgstr ""

Expand Down Expand Up @@ -1351,11 +1345,11 @@ msgstr ""
msgid "Credits Available"
msgstr ""

#: src/pages/Projects/AllProjects/AllProjects.config.ts:18
#: src/pages/Projects/AllProjects/AllProjects.config.ts:20
msgid "Credits available - high to low"
msgstr ""

#: src/pages/Projects/AllProjects/AllProjects.config.ts:14
#: src/pages/Projects/AllProjects/AllProjects.config.ts:16
msgid "Credits available - low to high"
msgstr ""

Expand Down Expand Up @@ -1619,7 +1613,7 @@ msgstr ""
msgid "ecocredits tradable"
msgstr ""

#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:69
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:68
msgid "Ecological Connectivity Level"
msgstr ""

Expand Down Expand Up @@ -1726,7 +1720,7 @@ msgstr ""
msgid "eligible activities"
msgstr ""

#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:106
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:105
msgid "Eligible projects implement preservation and/or restoration activities in different proportion/rates. Tebu recognizes restoration activities have a higher cost by assigning a greater value to restoration actions."
msgstr ""

Expand Down Expand Up @@ -1803,14 +1797,14 @@ msgstr ""
msgid "Explore Banks"
msgstr ""

#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:30
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:29
msgid "factor"
msgstr ""

#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:39
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:75
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:110
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:187
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:38
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:74
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:109
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:186
msgid "Factor:"
msgstr ""

Expand All @@ -1823,7 +1817,7 @@ msgstr ""
msgid "Failed to resend passcode"
msgstr ""

#: src/pages/Projects/AllProjects/AllProjects.config.ts:10
#: src/pages/Projects/AllProjects/AllProjects.config.ts:12
msgid "Featured projects"
msgstr ""

Expand Down Expand Up @@ -2165,7 +2159,7 @@ msgstr ""

#: src/components/organisms/ChooseCreditsForm/ChooseCreditsForm.CryptoOptions.tsx:52
#: src/components/organisms/TebuBannerWrapper/TebuBannerWrapper.contants.ts:10
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.TebuInfo.tsx:98
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.TebuInfo.tsx:97
msgid "Learn more"
msgstr ""

Expand Down Expand Up @@ -2304,10 +2298,6 @@ msgstr ""
msgid "Make the location data private"
msgstr ""

#: src/components/organisms/AgreePurchaseForm/AgreePurchaseForm.Retirement.tsx:84
msgid "Make your purchase anonymous. Your name will be hidden from the retirement certificate and the certificate will be hidden from your public profile."
msgstr ""

#: src/pages/Projects/AllProjects/AllProjects.ProjectFilterBody.utils.tsx:177
msgid "Market"
msgstr ""
Expand Down Expand Up @@ -2814,7 +2804,7 @@ msgstr ""
msgid "Post is public"
msgstr ""

#: src/components/organisms/AgreePurchaseForm/AgreePurchaseForm.Retirement.tsx:150
#: src/components/organisms/AgreePurchaseForm/AgreePurchaseForm.Retirement.tsx:151
msgid "Postal code"
msgstr ""

Expand Down Expand Up @@ -2848,11 +2838,11 @@ msgstr ""
msgid "Premontane humid forest"
msgstr ""

#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:164
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:163
msgid "Preservation"
msgstr ""

#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:156
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:155
msgid "Preservation Factor:"
msgstr ""

Expand All @@ -2872,11 +2862,11 @@ msgstr ""
msgid "Price"
msgstr ""

#: src/pages/Projects/AllProjects/AllProjects.config.ts:12
#: src/pages/Projects/AllProjects/AllProjects.config.ts:14
msgid "Price - high to low"
msgstr ""

#: src/pages/Projects/AllProjects/AllProjects.config.ts:11
#: src/pages/Projects/AllProjects/AllProjects.config.ts:13
msgid "Price - low to high"
msgstr ""

Expand Down Expand Up @@ -3043,7 +3033,7 @@ msgstr ""
msgid "Project documentation"
msgstr ""

#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:104
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:103
msgid "Project Duration"
msgstr ""

Expand Down Expand Up @@ -3151,7 +3141,7 @@ msgstr ""
msgid "Projects"
msgstr ""

#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:148
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:147
msgid "Projects must have a duration of at least 20 years to ensure demonstrable and quantifiable results in biodiversity. Tebu promotes projects that last longer, ensuring long term ecological processes."
msgstr ""

Expand Down Expand Up @@ -3336,11 +3326,11 @@ msgstr ""
msgid "Resources for Getting Started"
msgstr ""

#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:165
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:164
msgid "Restoration"
msgstr ""

#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:152
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:151
msgid "Restoration Factor:"
msgstr ""

Expand Down Expand Up @@ -3684,8 +3674,8 @@ msgstr ""
msgid "Social Accounts"
msgstr ""

#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:181
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:193
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:180
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:192
msgid "Social and Cultural Index"
msgstr ""

Expand Down Expand Up @@ -3746,7 +3736,7 @@ msgid "Start typing the location"
msgstr ""

#: src/components/molecules/BottomCreditRetireFields/BottomCreditRetireFields.tsx:144
#: src/components/organisms/AgreePurchaseForm/AgreePurchaseForm.Retirement.tsx:129
#: src/components/organisms/AgreePurchaseForm/AgreePurchaseForm.Retirement.tsx:130
#: src/lib/constants/shared.constants.tsx:59
#: src/lib/constants/shared.constants.tsx:161
msgid "State / Region"
Expand Down Expand Up @@ -3791,7 +3781,7 @@ msgid "Story video or photo"
msgstr ""

#: src/components/molecules/ProjectPageMetadata/ProjectPageMetadata.tsx:158
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.ComplianceInfo.tsx:87
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.ComplianceInfo.tsx:93
msgid "sub-watershed"
msgstr ""

Expand Down Expand Up @@ -3840,7 +3830,7 @@ msgstr ""
msgid "Take from basket"
msgstr ""

#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.TebuInfo.tsx:84
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.TebuInfo.tsx:83
msgid "Tebu badge"
msgstr ""

Expand All @@ -3852,7 +3842,7 @@ msgstr ""
msgid "Tebu Credits"
msgstr ""

#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.TebuInfo.tsx:81
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.TebuInfo.tsx:80
msgid "Tebu factors"
msgstr ""

Expand Down Expand Up @@ -3929,7 +3919,7 @@ msgstr ""
msgid "The individual or organization that is in charge of managing the project and will appear on the project page."
msgstr ""

#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:183
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:182
msgid "The integration of local communities' knowledge, social structures, and equitable participation to ensure both ecosystem conservation and community benefits."
msgstr ""

Expand Down Expand Up @@ -3958,7 +3948,7 @@ msgid "The recipient address cannot be the same as the sender address"
msgstr ""

#: src/components/molecules/BottomCreditRetireFields/BottomCreditRetireFields.tsx:105
#: src/components/organisms/AgreePurchaseForm/AgreePurchaseForm.Retirement.tsx:100
#: src/components/organisms/AgreePurchaseForm/AgreePurchaseForm.Retirement.tsx:101
#: src/lib/constants/shared.constants.tsx:155
msgid "The retirement location can be where you live or your business operates."
msgstr ""
Expand Down Expand Up @@ -3992,7 +3982,7 @@ msgstr ""
msgid "These credits will be retired upon purchase and will not be tradeable. Retirement is permanent and non-reversible."
msgstr ""

#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.TebuInfo.tsx:90
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.TebuInfo.tsx:89
msgid "These factors are used to calculate the credits issued for this project."
msgstr ""

Expand All @@ -4017,7 +4007,7 @@ msgstr ""
msgid "This data is on chain or anchored on chain via a content hash."
msgstr ""

#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:83
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:82
msgid "This factor is used to calculate the credits issued for this project."
msgstr ""

Expand Down Expand Up @@ -4068,7 +4058,7 @@ msgid "This may take up to 15 seconds."
msgstr ""

#: src/components/organisms/PaymentInfoForm/PaymentInfoForm.CustomerInfo.tsx:63
msgid "This name will appear on the retirement certificate unless you choose to retire anonymously in the next step. It is also your user profile name."
msgid "This name will appear on the retirement certificate. It is also your user profile name."
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:388
Expand All @@ -4091,8 +4081,8 @@ msgstr ""
msgid "This wallet address is already in use by another account."
msgstr ""

#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:33
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:45
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:32
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.utils.tsx:44
msgid "Threat Category of Ecosystem"
msgstr ""

Expand Down Expand Up @@ -4492,7 +4482,7 @@ msgid "watch video"
msgstr ""

#: src/components/molecules/ProjectPageMetadata/ProjectPageMetadata.tsx:157
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.ComplianceInfo.tsx:86
#: src/components/templates/ProjectDetails/TerrasosCreditsInfo/TerrasosCreditsInfo.ComplianceInfo.tsx:88
msgid "watershed"
msgstr ""

Expand Down
Loading