Skip to content

Commit

Permalink
GIVbacks V2 and Stellar hotfixes (#4748)
Browse files Browse the repository at this point in the history
* add givbacks and qf badges to stellar

* fix connect wallet copy

* remove givbacks old badge

* add qf not eligible badges for stellar

* fix passport banner position

* donate page change for stellar donations

* making the style proper

* fix stellar QF green badge

* fix not eligible warning badge color

* remove badges on qr page

* Estimated Matching Value added

* update warning badges and icons

* project image card change

* run linter

* update estimated matching toast

* remove GIVBackToast from OneTimeDonationCard.tsx

* QF Toast for Stellar

* Check For Stellar Chain

* run linter

* fix: Stellar QF for issue 4752

* fix input back color, select border color, donate button type

* add donation value USD to input

* change anonymous donation design

* fix: Donate first and lead the way text is now shown for amountraised in the round

* fix: estimated amount in estimated matching toast in stellar

* run linter

* chore add padding to Donate Index

* fix: Donation Success container padding

* run linter'

* update common styled and reused components

* fix: pending issues realted to QF and stellar

* update DonateToGiveth design

* show qf badge only when there's active qf

* fix Stellar usd badge design

* remove DonateQFEligibleNetworks.tsx and add animation to estimated matching

* add Eligible networks for QF matching

* add Eligible networks for QF matching

* add animation to Estimated Matching

* fix connected wallet bug

* fix stellar bug

* fix: Already Donated if it is in Stellar Network

* run linter

* add new copy for qf matching

* fix switch chain to Solana

* fix crash on switch chain

* fix: bugs realted to qf success toast and givbacks for stellar

* change eligibility copies

* fix: connect wallet on stellar

* revert last commit

* dont show connect your wallet to win and match is chain isnt in the qf round eligible networks

* fix non evm chains logo

* change copy

* update copies

* fix Solana eligibility badge check

* fix: text on not connected

* fix showing Stellar and Solana badges

* rename getBalanceForToken

* update version for donate page redesign release

* this should be reverted before merge

* revert

* add wrong network new toast

* change chain qf copy

* update stellar icon

* add transition for color change

* amount for all tokens should be shown with the correct decimals

* fix: calculate donation value according to decimals

* run linter

* prevent SwitchToAcceptedChain flickering

* stellar: qf issues

* run linter

* fix XLM price

---------

Co-authored-by: HrithikSampson <hrithikedwardsampson@gmail.com>
  • Loading branch information
RamRamez and HrithikSampson committed Sep 24, 2024
1 parent 1700f6b commit 33ba3e1
Show file tree
Hide file tree
Showing 56 changed files with 47,471 additions and 2,539 deletions.
23 changes: 19 additions & 4 deletions lang/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@
"label.donation_status": "Estat de la donació",
"label.donation_submitted": "Donació enviada",
"label.donation_to": "Donació a",
"label.donate_to": "Donar a",
"label.donation_to_the": "Donació a la",
"label.done": "Fet",
"label.donor": "Donant",
Expand All @@ -379,6 +380,7 @@
"label.eg_we_are_a_dao_that_works": "per exemple. 'Som una organització autònoma descentralitzada que treballa en el desenvolupament d'aplicacions web3'",
"label.elevate_projects": "Potencia projectes",
"label.eligible_for_matching": "Elegible per l'emparellament",
"label.eligible_networks_for_matching": "Xarxes aptes per a la concordança QF",
"label.email": "correu electrònic",
"label.email_address": "Adreça electrònica",
"label.enable_change": "Habilita el canvi",
Expand Down Expand Up @@ -621,7 +623,9 @@
"label.lock_your_tokens": "Bloqueja els teus tokens",
"label.look_for_the_share_and_get_rewarded": "Busca el botó 'Comparteix i guanya recompenses' per generar enllaços a pàgines específiques a tot el lloc de Giveth.",
"label.make_a_recurring_donation_with": "Fes una donació recurrent amb ",
"label.make_it_anonymous": "Fes-ho anònim",
"label.make_it_anonymous": "Fes que la meva donació sigui anònima",
"label.transaction_detail": "Detall de la transacció",
"label.qr_code_error": "S'ha produït un error en generar el codi QR. Torneu-ho a provar.",
"label.make_it_easier_for_donors_to_find_your_project": "Fes més fàcil que els donants trobin el teu projecte proporcionant una ubicació.",
"label.make_it_unique_and_memorable_to_stand_out_from_other_projects": "Fes-ho únic i memorable per destacar entre altres projectes.",
"label.make_sure_your_description_aligns_with_our": "Assegura't que la teva descripció s'aligna amb el nostre ",
Expand Down Expand Up @@ -747,6 +751,10 @@
"label.photo_by": "Foto per",
"label.please_confirm_your_email": "Si us plau, confirma el teu correu electrònic",
"label.please_connect_your_wallet": "Si us plau, connecta la teva cartera",
"label.please_connect_your_wallet_to_win_givbacks": "Connecta la teva cartera per guanyar GIVbacks.",
"label.please_connect_your_wallet_to_win_givbacks_and_match": "Connecta la teva cartera per guanyar GIVbacks i igualar la teva donació en QF.",
"label.please_connect_your_wallet_to_match": "Connecteu la vostra cartera per igualar la vostra donació a QF",
"label.stellar_donations_arent_eligible": "Les donacions estel·lars no es poden igualar",
"label.please_contact_support_team": "Si us plau, contacteu l'equip de suport.",
"label.please_do_not_enter_exchange_deposit": "Si us plau, NO introduïu una adreça de dipòsit d'intercanvi, o els vostres fons podrien perdre's! Utilitzeu un compte que controleu en aquesta xarxa. Recomanem utilitzar Metamask.",
"label.please_enter_full_link": "Introdueix el vincle complet",
Expand Down Expand Up @@ -1017,6 +1025,7 @@
"label.support_giveth_with": "Doni suport a Giveth amb una donació a la Giveth DAO. El percentatge de donació seleccionat es prendrà del total de la quantitat de la vostra donació en el mateix token que esteu donant.",
"label.support_upcoming_qf_round": "Doneu suport a les properes rondes i feu una donació al grup corresponent.",
"label.switch_network": "Canviar xarxa",
"label.switch_to_supported": "Canvia a xarxes compatibles",
"label.switch_to": "canvia a",
"label.switch_to_archive_cards": "Canvia a Targetes d'arxiu",
"label.switch_to_evm": "Canvia a la cartera EVM",
Expand Down Expand Up @@ -1083,7 +1092,7 @@
"label.this_project_is_not_active": "Aquest projecte no està actiu.",
"label.this_project_is_not_eligible_for_recurring_donations": "Aquest projecte no és elegible per a donacions recurrents",
"label.this_project_only_accepts_donations_on": "Aquest projecte només accepta donacions a {chainName}.",
"label.this_project_only_accept_on": "Aquest projecte només accepta donacions a",
"label.this_project_doesnt_accept_on": "Aquest projecte no accepta donacions a",
"label.this_projet_doesnt_receive_donations_on": "Aquest projecte no accepta donacions a {chainName}",
"label.this_regenfarm_is_only_available_on_network": "Aquest RegenFarm només està disponible a {networkLabel}",
"label.this_round": "aquesta ronda",
Expand Down Expand Up @@ -1338,14 +1347,20 @@
"page.donate.matching_toast.bottom_invalid_p1": "Només donacions de més de",
"page.donate.matching_toast.bottom_invalid_p2": "són elegibles per a l'aparellament.",
"page.donate.matching_toast.bottom_valid": "Els fons de finançament es destinaran al projecte seleccionat després que acabi la ronda. Dona a més projectes per rebre més finançament!",
"page.donate.matching_toast.upper_invalid": "Fes que compti",
"page.donate.matching_toast.upper_valid": "Emparellament estimat",
"page.donate.passport_toast.description.eligible": "La teva donació és elegible per ser emparellada! Després del",
"page.donate.passport_toast.description.eligible_2": ", totes les donacions seran revisades per a la protecció contra frau i els fons d'emparellament seran enviats als projectes. Estigues atent a les notificacions :)",
"page.donate.passport_toast.description.non_eligible": "Obtén el teu emparellament de donació amb finançament quadràtic!\nComproveu la vostra elegibilitat QF abans",
"page.donate.passport_toast.description.not_connected": "Obtén el teu emparellament de donació amb finançament quadràtic!\nVerifica el teu Gitcoin Passport abans de",
"page.donate.passport_toast.title.eligible": "Finançament Quadràtic",
"page.donate.passport_toast.title.non_eligible": "No et perdis l'emparellament!",
"page.donate.title": "Donar",
"page.donate.zero_fees": "Sense Comissions",
"page.donate.makes_you_eligible_for_givbacks": "${value} et fan elegible per a GIVbacks",
"page.donate.unlocks_matching_funds": "${value} desbloquegen fons coincidents",
"page.donate.donations_will_be_matched": "La donació serà igualada",
"page.donate.project_not_eligible_for_qf": "El projecte no és elegible per a la concordança QF.",
"page.donate.network_not_eligible_for_qf": "Les donacions de {network} no són aptes per coincidir",
"page.donate.givbacks_eligible": "GIVbacks elegibles",
"page.donate.project_not_givbacks_eligible": "El projecte no és elegible per a GIVbacks",
"page.donate.title": "Donar",
"page.donate.token_not_givbacks_eligible": "{token} no és apte per a GIVbacks",
Expand Down
25 changes: 21 additions & 4 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@
"label.donation_submitted": "Donation submitted",
"label.donation_to": "Donation to",
"label.donation_to_the": "Donation to the",
"label.donate_to": "Donate to",
"label.done": "Done",
"label.donor": "Donor",
"label.donors_to_higher_ranked_projects": "Donors to higher ranked projects get more GIVbacks.",
Expand All @@ -379,6 +380,7 @@
"label.eg_we_are_a_dao_that_works": "eg. 'We are a decentralized autonomous organization that works toward the development of web3 applications'",
"label.elevate_projects": "Elevate Projects",
"label.eligible_for_matching": "Eligible for Matching",
"label.eligible_networks_for_matching": "Eligible networks for QF matching",
"label.email": "email",
"label.email_address": "Email Address",
"label.enable_change": "Enable Change",
Expand Down Expand Up @@ -621,7 +623,11 @@
"label.lock_your_tokens": "Lock your tokens",
"label.look_for_the_share_and_get_rewarded": "Look for the 'Share & get rewarded' button to generate links to specific pages across the Giveth site.",
"label.make_a_recurring_donation_with": "Make a recurring donation with ",
"label.make_it_anonymous": "Make it anonymous",
"label.make_it_anonymous": "Make my donation anonymous",
"label.view_all_projects": "View all projects",
"label.sanctioned_wallet": "Sanctioned Address Detected !!",
"label.sanctioned_wallet_message_part1": "This address has been found on the USA",
"label.sanctioned_wallet_message_part2": "sanctioned list.\nUnfortunately, Endaoment does not permit addresses on the\nOFAC sanction list to donate to projects delivered by\nEndaoment. Check out another project to donate to. ",
"label.make_it_easier_for_donors_to_find_your_project": "Make it easier for donors to find your project by providing a location.",
"label.make_it_unique_and_memorable_to_stand_out_from_other_projects": "Make it unique and memorable to stand out from other projects.",
"label.make_sure_your_description_aligns_with_our": "Make sure your description aligns with our ",
Expand Down Expand Up @@ -747,6 +753,10 @@
"label.photo_by": "Photo by",
"label.please_confirm_your_email": "Please confirm your email",
"label.please_connect_your_wallet": "Please connect your wallet",
"label.please_connect_your_wallet_to_win_givbacks": "Connect your wallet to win GIVbacks.",
"label.please_connect_your_wallet_to_win_givbacks_and_match": "Connect your wallet to win GIVbacks and match your donation in QF.",
"label.please_connect_your_wallet_to_match": "Connect your wallet to match your donation in QF",
"label.stellar_donations_arent_eligible": "Stellar donations aren’t eligible for matching",
"label.please_contact_support_team": "Please contact support team.",
"label.please_do_not_enter_exchange_deposit": "Please DO NOT enter an exchange deposit address, or your funds maybe lost! Use an account you control on this network. We recommend using Metamask.",
"label.please_enter_full_link": "Please enter full link",
Expand Down Expand Up @@ -1017,6 +1027,7 @@
"label.support_giveth_with": "Support Giveth with a donation to the Giveth DAO. The selected donation percentage will be taken from the total of your donation amount in the same token you are donating.",
"label.support_upcoming_qf_round": "Support upcoming rounds and donate to the matching pool.",
"label.switch_network": "Switch Network",
"label.switch_to_supported": "Switch to supported networks",
"label.switch_to": "switch to",
"label.switch_to_archive_cards": "Switch to Archive Cards",
"label.switch_to_evm": "Switch to EVM wallet",
Expand Down Expand Up @@ -1083,7 +1094,7 @@
"label.this_project_is_not_active": "This project is not active.",
"label.this_project_is_not_eligible_for_recurring_donations": "This project is not eligible for recurring donations.",
"label.this_project_only_accepts_donations_on": "This project only accepts donations on {chainName}.",
"label.this_project_only_accept_on": "This project only accept donations on",
"label.this_project_doesnt_accept_on": "Project doesn’t accept donation on",
"label.this_projet_doesnt_receive_donations_on": "This project does not accept donations on {chainName}",
"label.this_regenfarm_is_only_available_on_network": "This RegenFarm is only available on {networkLabel}",
"label.this_round": "this round",
Expand Down Expand Up @@ -1338,14 +1349,20 @@
"page.donate.matching_toast.bottom_invalid_p1": "Only donations more than",
"page.donate.matching_toast.bottom_invalid_p2": "are eligible for matching.",
"page.donate.matching_toast.bottom_valid": "Matching funds will be sent to the selected project after the round ends. Donate to more projects to receive higher matching!",
"page.donate.matching_toast.upper_invalid": "Make it count",
"page.donate.matching_toast.upper_valid": "Estimated matching",
"page.donate.passport_toast.description.eligible": "Your donation is eligible to be matched! After the",
"page.donate.passport_toast.description.eligible_2": ", all donations will be reviewed for fraud protection and matching funds will be sent to the projects. Stay tuned for notifications :)",
"page.donate.passport_toast.description.non_eligible": "Get your donation matched with quadratic funding!\nCheck your QF Eligibility before",
"page.donate.passport_toast.description.not_connected": "Get your donation matched with quadratic funding!\nVerify your Gitcoin Passport before",
"page.donate.passport_toast.title.eligible": "Quadratic Funding",
"page.donate.passport_toast.title.non_eligible": "Don’t miss out on matching!",
"page.donate.title": "Donate",
"page.donate.zero_fees": "Zero Fees",
"page.donate.makes_you_eligible_for_givbacks": "${value} makes you eligible for GIVbacks",
"page.donate.unlocks_matching_funds": "${value} unlocks matching funds",
"page.donate.donations_will_be_matched": "Donation will be matched",
"page.donate.project_not_eligible_for_qf": "Project is not eligible for QF matching.",
"page.donate.network_not_eligible_for_qf": "{network} donations aren’t eligible for matching",
"page.donate.givbacks_eligible": "GIVbacks eligible",
"page.donate.project_not_givbacks_eligible": "Project is not GIVbacks eligible",
"page.donate.title": "Donate",
"page.donate.token_not_givbacks_eligible": "{token} is not eligible for GIVbacks",
Expand Down
21 changes: 17 additions & 4 deletions lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@
"label.donation_status": "Estado de la donación",
"label.donation_submitted": "Donación enviada",
"label.donation_to": "Donación a",
"label.donate_to": "Donar a",
"label.donation_to_the": "Donación a la",
"label.done": "Listo",
"label.donor": "Donante",
Expand All @@ -379,6 +380,7 @@
"label.eg_we_are_a_dao_that_works": "Ej. \"Somos una organización autónoma descentralizada que trabaja en el desarrollo de aplicaciones web3\"",
"label.elevate_projects": "Eleva proyectos",
"label.eligible_for_matching": "Elegible para Emparejamiento",
"label.eligible_networks_for_matching": "Redes elegibles para la asignación de QF",
"label.email": "Email",
"label.email_address": "Dirección de Email",
"label.enable_change": "Ayuda al Cambio",
Expand Down Expand Up @@ -621,7 +623,7 @@
"label.lock_your_tokens": "Lock tus tokens",
"label.look_for_the_share_and_get_rewarded": "Busca el botón 'Compartir y obtener recompensas' para generar enlaces a páginas específicas en todo el sitio de Giveth.",
"label.make_a_recurring_donation_with": "Haz una donación recurrente con ",
"label.make_it_anonymous": "Hazlo anónimo",
"label.make_it_anonymous": "Hacer mi donación anónimo",
"label.make_it_easier_for_donors_to_find_your_project": "Has que sea fácil encontrar tu proyecto para los donantes proporcionando una ubicación.",
"label.make_it_unique_and_memorable_to_stand_out_from_other_projects": "Hazlo único y memorable para destacar entre otros proyectos.",
"label.make_sure_your_description_aligns_with_our": "Asegúrate de que tu descripción esté alineada con nuestro ",
Expand Down Expand Up @@ -747,6 +749,10 @@
"label.photo_by": "Foto por",
"label.please_confirm_your_email": "Por favor confirma tu e-mail",
"label.please_connect_your_wallet": "Por favor conecta tu billetera",
"label.please_connect_your_wallet_to_win_givbacks": "Conecta tu billetera para ganar GIVbacks.",
"label.please_connect_your_wallet_to_win_givbacks_and_match": "Conecta tu billetera para ganar GIVbacks e igualar tu donación en QF.",
"label.please_connect_your_wallet_to_match": "Conecta tu billetera para igualar tu donación en QF",
"label.stellar_donations_arent_eligible": "Las donaciones de Stellar no son elegibles para igualación",
"label.please_contact_support_team": "Por favor contacta al equipo de soporte.",
"label.please_do_not_enter_exchange_deposit": "¡Por favor, NO introduzcas una dirección de depósito de intercambio, o podrías perder tus fondos! Usa una cuenta que controles en esta red. Recomendamos usar Metamask.",
"label.please_enter_full_link": "Por favor, introduzca el enlace completo",
Expand Down Expand Up @@ -1017,6 +1023,7 @@
"label.support_giveth_with": "Apoya a Giveth con una donación a la Giveth DAO.El porcentaje de donación seleccionado se tomará del total de la cantidad de tu donación en el mismo token que estás donando.",
"label.support_upcoming_qf_round": "Apoye las próximas rondas y done al grupo correspondiente.",
"label.switch_network": "Cambiar Red",
"label.switch_to_supported": "Cambiar a redes compatibles",
"label.switch_to": "cambiar a",
"label.switch_to_archive_cards": "Cambiar a tarjetas de archivo",
"label.switch_to_evm": "Cambiar a cartera EVM",
Expand Down Expand Up @@ -1083,7 +1090,7 @@
"label.this_project_is_not_active": "Este proyecto no esta activo.",
"label.this_project_is_not_eligible_for_recurring_donations": "Este proyecto no es elegible para donaciones recurrentes",
"label.this_project_only_accepts_donations_on": "Este proyecto solo acepta donaciones en {chainName}.",
"label.this_project_only_accept_on": "Este proyecto acepta donaciones en",
"label.this_project_doesnt_accept_on": "Este proyecto no acepta donaciones en",
"label.this_projet_doesnt_receive_donations_on": "Este proyecto no acepta donaciones en {chainName}",
"label.this_regenfarm_is_only_available_on_network": "Este RegenFarm solo esta disponible en {networkLabel}",
"label.this_round": "esta ronda",
Expand Down Expand Up @@ -1338,8 +1345,6 @@
"page.donate.matching_toast.bottom_invalid_p1": "Sólo las donaciones superiores a",
"page.donate.matching_toast.bottom_invalid_p2": "son subvencionables.",
"page.donate.matching_toast.bottom_valid": "Los fondos de emparejamiento se enviarán al proyecto seleccionado después de que termine la ronda. ¡Dona a más proyectos para recibir un mayor emparejamiento!",
"page.donate.matching_toast.upper_invalid": "Haz que cuente",
"page.donate.matching_toast.upper_valid": "Estimado del monto complementado",
"page.donate.passport_toast.description.eligible": "¡Tu donación es elegible para ser complementada! Después de la",
"page.donate.passport_toast.description.eligible_2": ", todas las donaciones serán revisadas para protección contra fraudes y los fondos de complementarios se enviarán a los proyectos. ¡Mantente atento a las notificaciones! :)",
"page.donate.passport_toast.description.non_eligible": "¡Haz que tu donación sea complementada con financiamiento cuadrático!\nCompruebe su elegibilidad QF antes de",
Expand All @@ -1350,6 +1355,14 @@
"page.donate.title": "Donar",
"page.donate.token_not_givbacks_eligible": "{token} no es elegible para GIVbacks",
"page.donate.zero_fees": "Sin Comisiones",
"page.donate.makes_you_eligible_for_givbacks": "${value} te hacen elegible para recibir GIVbacks",
"page.donate.unlocks_matching_funds": "${value} desbloquean fondos equivalentes",
"page.donate.donations_will_be_matched": "La donación será igualada",
"page.donate.project_not_eligible_for_qf": "El proyecto no es elegible para la financiación QF.",
"page.donate.network_not_eligible_for_qf": "Las donaciones de {network} no son elegibles para igualar",
"page.donate.givbacks_eligible": "Elegibles para GIVbacks",
"page.donate.project_not_givbacks_eligible": "El proyecto no es elegible para GIVbacks",
"page.donate.token_not_givbacks_eligible": "{token} no es elegible para GIVbacks",
"page.engage.discord.desc": "¡Únete a la conversación! Nuestro equipo se comunica en Discord. Preséntate, danos retroalimentación, descubre cómo contribuir o ¡sólo saluda!",
"page.engage.discourse.desc": "El foro de Giveth es donde creamos debates alrededor de propuestas existentes y nuevas. Compartimos ideas sobre el desarrollo y la gobernanza, desarrollando debates sobre temas importantes en torno a nuestro equipo y comunidad.",
"page.engage.github.desc": "¿Sabes de desarrollo? ¡Entra a nuestro Github! Las puertas siempre están abiertas para nuevos colaboradores. ¡También te invitamos a unirte a nuestro canal de devs en Discord!",
Expand Down
1 change: 0 additions & 1 deletion lang/t_ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@
"other": "Altres",
"other_desc": " ",
"page.donate.matching_toast.bottom_valid": "Els fons de finançament es destinaran al projecte seleccionat després que acabi la ronda. Dona a més projectes per rebre més finançament!",
"page.donate.matching_toast.upper_valid": "Coincidència estimada",
"page.donate.passport_toast.description.eligible": "La teva donació és elegible per ser coincidida! Després de la",
"page.donate.passport_toast.description.eligible_2": ", totes les donacions seran revisades per a la protecció contra el frau i els fons de coincidència es enviaran als projectes. Estigueu atents a les notificacions :)",
"page.donate.passport_toast.description.non_eligible": "Fes que la teva donació coincideixi amb el finançament quadràtic!\nAugmenta la teva puntuació de Passaport Gitcoin abans",
Expand Down
Loading

0 comments on commit 33ba3e1

Please sign in to comment.