From a30bfeaf61cdd2fcfb632eb33b3d43c3b1b90504 Mon Sep 17 00:00:00 2001 From: blushi Date: Wed, 22 Jan 2025 10:16:25 +0100 Subject: [PATCH 1/4] fix: show offchain project admin --- .../ProjectDetails/ProjectDetails.Stakeholders.tsx | 1 - .../ProjectDetails/ProjectDetails.utils.tsx | 5 +++++ .../ProjectDetails/hooks/useStakeholders.ts | 13 +++++++++---- web-marketplace/src/generated/graphql.tsx | 4 ++-- web-marketplace/src/graphql/ProjectFragment.graphql | 2 +- .../src/pages/ProfileEdit/hooks/useAccountInfo.tsx | 12 ------------ 6 files changed, 17 insertions(+), 20 deletions(-) delete mode 100644 web-marketplace/src/pages/ProfileEdit/hooks/useAccountInfo.tsx diff --git a/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx b/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx index d71c3abe24..63fc7644f2 100644 --- a/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx +++ b/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx @@ -1,6 +1,5 @@ import { msg, Trans } from '@lingui/macro'; import { useLingui } from '@lingui/react'; -import { Grid } from '@mui/material'; import Section from 'web-components/src/components/section'; import { Title } from 'web-components/src/components/typography'; diff --git a/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.utils.tsx b/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.utils.tsx index 261e5f9415..ad742bb8b2 100644 --- a/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.utils.tsx +++ b/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.utils.tsx @@ -38,6 +38,7 @@ import { DEFAULT_PROFILE_COMPANY_AVATAR, DEFAULT_PROFILE_USER_AVATAR, } from 'pages/ProfileEdit/ProfileEdit.constants'; +import { getDefaultAvatar } from 'pages/ProfileEdit/ProfileEdit.utils'; import { UISellOrderInfo } from 'pages/Projects/AllProjects/AllProjects.types'; import { @@ -295,3 +296,7 @@ export const formatTimelineDates = (item: PrefinanceTimelineItem) => `${formatDate(item.date, 'MMM YYYY')}${ item.endDate ? ` - ${formatDate(item.endDate, 'MMM YYYY')}` : '' }`; + +export const getAccountInfo = (account?: AccountFieldsFragment | null) => { + return { account, defaultAvatar: getDefaultAvatar(account) }; +}; diff --git a/web-marketplace/src/components/templates/ProjectDetails/hooks/useStakeholders.ts b/web-marketplace/src/components/templates/ProjectDetails/hooks/useStakeholders.ts index d6c32fc747..43e6d03cb8 100644 --- a/web-marketplace/src/components/templates/ProjectDetails/hooks/useStakeholders.ts +++ b/web-marketplace/src/components/templates/ProjectDetails/hooks/useStakeholders.ts @@ -18,10 +18,13 @@ import { import { getCsrfTokenQuery } from 'lib/queries/react-query/registry-server/getCsrfTokenQuery/getCsrfTokenQuery'; import { getAccountByAddrQuery } from 'lib/queries/react-query/registry-server/graphql/getAccountByAddrQuery/getAccountByAddrQuery'; -import { useAccountInfo } from 'pages/ProfileEdit/hooks/useAccountInfo'; import { getDisplayAccountOrAddress } from 'components/organisms/DetailsSection/DetailsSection.utils'; -import { getAccount, getDisplayAccount } from '../ProjectDetails.utils'; +import { + getAccount, + getAccountInfo, + getDisplayAccount, +} from '../ProjectDetails.utils'; type Params = { projectMetadata?: AnchoredProjectMetadataBaseLD; @@ -67,6 +70,8 @@ export const useStakeholders = ({ offChainProject?.creditClassByCreditClassId?.accountByRegistryId, ); + const offChainAdmin = getAccount(offChainProject?.accountByAdminAccountId); + const adminAddr = onChainProject?.admin; const { data: csrfData } = useQuery(getCsrfTokenQuery({})); const { data: accountByAddr } = useQuery( @@ -77,8 +82,8 @@ export const useStakeholders = ({ languageCode: selectedLanguage, }), ); - const { account } = useAccountInfo({ accountByAddr }); - const admin = getDisplayAccountOrAddress(adminAddr, account); + const { account } = getAccountInfo(accountByAddr?.accountByAddr); + const admin = getDisplayAccountOrAddress(adminAddr, account) || offChainAdmin; const partners = offChainProject?.projectPartnersByProjectId?.nodes?.map( partner => getAccount(partner?.accountByAccountId), diff --git a/web-marketplace/src/generated/graphql.tsx b/web-marketplace/src/generated/graphql.tsx index 5879617018..08e6c333a7 100644 --- a/web-marketplace/src/generated/graphql.tsx +++ b/web-marketplace/src/generated/graphql.tsx @@ -7888,7 +7888,7 @@ export type ProjectFieldsFragment = ( & Pick & { accountByAdminAccountId?: Maybe<( { __typename?: 'Account' } - & Pick + & AccountFieldsFragment )>, creditClassByCreditClassId?: Maybe<( { __typename?: 'CreditClass' } & Pick @@ -8073,7 +8073,7 @@ export const ProjectFieldsFragmentDoc = gql` id adminAccountId accountByAdminAccountId { - addr + ...accountFields } onChainId metadata diff --git a/web-marketplace/src/graphql/ProjectFragment.graphql b/web-marketplace/src/graphql/ProjectFragment.graphql index f93c094d22..c5a87a7180 100644 --- a/web-marketplace/src/graphql/ProjectFragment.graphql +++ b/web-marketplace/src/graphql/ProjectFragment.graphql @@ -2,7 +2,7 @@ fragment projectFields on Project { id adminAccountId accountByAdminAccountId { - addr + ...accountFields } onChainId metadata diff --git a/web-marketplace/src/pages/ProfileEdit/hooks/useAccountInfo.tsx b/web-marketplace/src/pages/ProfileEdit/hooks/useAccountInfo.tsx deleted file mode 100644 index d58a660a35..0000000000 --- a/web-marketplace/src/pages/ProfileEdit/hooks/useAccountInfo.tsx +++ /dev/null @@ -1,12 +0,0 @@ -import { AccountByAddrQuery } from 'generated/graphql'; - -import { getDefaultAvatar } from '../ProfileEdit.utils'; - -type Params = { - accountByAddr?: AccountByAddrQuery | null; -}; - -export const useAccountInfo = ({ accountByAddr }: Params) => { - const account = accountByAddr?.accountByAddr; - return { account, defaultAvatar: getDefaultAvatar(account) }; -}; From 5ae41299a18c5badb3b7cc440d3d3e6a41827145 Mon Sep 17 00:00:00 2001 From: blushi Date: Wed, 22 Jan 2025 10:35:59 +0100 Subject: [PATCH 2/4] fix: add default name and link to profile --- .../templates/ProjectDetails/ProjectDetails.utils.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.utils.tsx b/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.utils.tsx index ad742bb8b2..d519421d40 100644 --- a/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.utils.tsx +++ b/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.utils.tsx @@ -1,4 +1,5 @@ import { MouseEvent } from 'react'; +import { i18n } from '@lingui/core'; import { MapiResponse } from '@mapbox/mapbox-sdk/lib/classes/mapi-response'; import { GeocodeResponse } from '@mapbox/mapbox-sdk/services/geocoding'; import { getResizedImageUrl } from 'utils/image/getResizedImageUrl'; @@ -35,6 +36,7 @@ import { import { getSanityImgSrc } from 'lib/imgSrc'; import { + DEFAULT_NAME, DEFAULT_PROFILE_COMPANY_AVATAR, DEFAULT_PROFILE_USER_AVATAR, } from 'pages/ProfileEdit/ProfileEdit.constants'; @@ -200,12 +202,12 @@ export function getAccount( } return { - name: account.name, + name: account.name || i18n._(DEFAULT_NAME), description: account.description, type: account.type, image: image, address: account.addr || '', - link: account?.websiteLink, + link: account?.websiteLink || `/profiles/${account.id}`, }; } From d53fd677b95f3f742c1b069dd0b103324ed2edce Mon Sep 17 00:00:00 2001 From: blushi Date: Wed, 22 Jan 2025 10:36:57 +0100 Subject: [PATCH 3/4] chore: i18n:extract --- web-marketplace/src/lib/i18n/locales/en.po | 34 +++++++++++----------- web-marketplace/src/lib/i18n/locales/es.po | 34 +++++++++++----------- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/web-marketplace/src/lib/i18n/locales/en.po b/web-marketplace/src/lib/i18n/locales/en.po index 344bd30e0d..600a7223d3 100644 --- a/web-marketplace/src/lib/i18n/locales/en.po +++ b/web-marketplace/src/lib/i18n/locales/en.po @@ -200,7 +200,7 @@ msgstr "" msgid "<0>Credit class issuer: the entity who can issue credit batches under the given credit class." msgstr "" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:104 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:103 msgid "<0>Custodian: The entity, also the project landowner, who has historically managed the territory. It is now part of the project stakeholders and receives benefits from project success." msgstr "" @@ -208,11 +208,11 @@ msgstr "" msgid "<0>drag and drop<1>or" msgstr "" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:93 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:92 msgid "<0>Monitor: The entity who tracks and verifies the environmental impact and performance of the project to ensure compliance and transparency." msgstr "" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:115 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:114 msgid "<0>Partners: can offer crucial financial support or monitor progress and ensure environmental standards are met." msgstr "" @@ -224,11 +224,11 @@ msgstr "" #~ msgid "<0>Project admin: the entity who can update a given project on the blockchain." #~ msgstr "" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:50 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:49 msgid "<0>Project admin: The entity who can update a given project on the blockchain." msgstr "" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:60 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:59 msgid "<0>Project developer: The entity in charge of managing the project. The project developer can be the land owner, land steward, or a third party." msgstr "" @@ -236,7 +236,7 @@ msgstr "" #~ msgid "<0>Project developer: the entity that is in charge of managing the project. The project developer can be the land owner, land steward, or a third party." #~ msgstr "" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:71 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:70 msgid "<0>Project operator: The entity responsible for implementing and managing the project, ensuring it meets sustainability and regulatory standards." msgstr "" @@ -248,7 +248,7 @@ msgstr "" #~ msgid "<0>Verifier: The third party eneity responsible for providing a independent, impartial assessment of project plan and project reports (that is not the monitor)." #~ msgstr "" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:82 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:81 msgid "<0>Verifier: The third party entity responsible for providing a independent, impartial assessment of project plan and project reports (that is not the monitor)." msgstr "" @@ -272,7 +272,7 @@ msgstr "" msgid "5MB max. Supported file types include text, spreadsheets, images, and video files." msgstr "" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:39 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:38 #: src/pages/CreditClassDetails/CreditClassDetailsSimple/CreditClassDetailsSimple.Stakeholders.tsx:27 msgid "A <0>program involves the eligibility rules, monitoring and certification, and registration systems for credit trading and ownership tracking." msgstr "" @@ -420,7 +420,7 @@ msgstr "" msgid "Address copied!" msgstr "" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:48 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:47 #: src/pages/CreditClassDetails/CreditClassDetailsSimple/CreditClassDetailsSimple.Stakeholders.tsx:37 #: src/pages/Post/Post.constants.ts:8 msgid "admin" @@ -1573,7 +1573,7 @@ msgstr "" msgid "Current admin address" msgstr "" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:102 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:101 msgid "custodian" msgstr "" @@ -2566,7 +2566,7 @@ msgstr "" msgid "Moderate" msgstr "" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:91 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:90 msgid "monitor" msgstr "" @@ -2795,7 +2795,7 @@ msgstr "" msgid "Oops! Page not found." msgstr "" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:69 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:68 msgid "operator" msgstr "" @@ -2863,7 +2863,7 @@ msgstr "" msgid "Pacific" msgstr "" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:113 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:112 msgid "partners" msgstr "" @@ -3161,7 +3161,7 @@ msgstr "" msgid "Profile type" msgstr "" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:37 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:36 #: src/pages/CreditClassDetails/CreditClassDetailsSimple/CreditClassDetailsSimple.Stakeholders.tsx:24 msgid "program" msgstr "" @@ -3232,7 +3232,7 @@ msgstr "" msgid "Project Design Document" msgstr "" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:58 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:57 msgid "project developer" msgstr "" @@ -3953,7 +3953,7 @@ msgstr "" msgid "Sort by:" msgstr "" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:137 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:136 msgid "Stakeholders" msgstr "" @@ -4622,7 +4622,7 @@ msgstr "" msgid "verification reports" msgstr "" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:80 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:79 msgid "verifier" msgstr "" diff --git a/web-marketplace/src/lib/i18n/locales/es.po b/web-marketplace/src/lib/i18n/locales/es.po index ded4965d8d..c5d3dd485b 100644 --- a/web-marketplace/src/lib/i18n/locales/es.po +++ b/web-marketplace/src/lib/i18n/locales/es.po @@ -199,7 +199,7 @@ msgstr "<0>Administrador de clase de crédito: la entidad que puede actualiz msgid "<0>Credit class issuer: the entity who can issue credit batches under the given credit class." msgstr "<0>Emisor de la clase de crédito: entidad que puede emitir lotes de créditos bajo la clase de crédito dada." -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:104 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:103 msgid "<0>Custodian: The entity, also the project landowner, who has historically managed the territory. It is now part of the project stakeholders and receives benefits from project success." msgstr "<0>Custodio: Entidad, también propietaria del proyecto, que históricamente ha gestionado el territorio. Actualmente forma parte de los interesados del proyecto y recibe los beneficios del éxito del mismo." @@ -207,11 +207,11 @@ msgstr "<0>Custodio: Entidad, también propietaria del proyecto, que histór msgid "<0>drag and drop<1>or" msgstr "<0>arrastrar y soltar<1>o" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:93 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:92 msgid "<0>Monitor: The entity who tracks and verifies the environmental impact and performance of the project to ensure compliance and transparency." msgstr "<0>Monitor: Entidad que da seguimiento y verifica el impacto ambiental y el desempeño del proyecto para garantizar el cumplimiento y la transparencia." -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:115 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:114 msgid "<0>Partners: can offer crucial financial support or monitor progress and ensure environmental standards are met." msgstr "<0>Socios: pueden ofrecer apoyo financiero crucial o supervisar el progreso y garantizar que se cumplan los estándares ambientales." @@ -223,11 +223,11 @@ msgstr "<0>Socios: pueden ofrecer apoyo financiero crucial o supervisar el p #~ msgid "<0>Project admin: the entity who can update a given project on the blockchain." #~ msgstr "<0>Administrador del proyecto: la entidad que puede actualizar un proyecto determinado en la cadena de bloques." -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:50 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:49 msgid "<0>Project admin: The entity who can update a given project on the blockchain." msgstr "<0>Administrador del proyecto: La entidad que puede actualizar un proyecto determinado en la cadena de bloques." -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:60 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:59 msgid "<0>Project developer: The entity in charge of managing the project. The project developer can be the land owner, land steward, or a third party." msgstr "<0>Desarrollador del proyecto: Entidad encargada de gestionar el proyecto. El desarrollador del proyecto puede ser el propietario del terreno, el administrador del terreno o un tercero." @@ -235,7 +235,7 @@ msgstr "<0>Desarrollador del proyecto: Entidad encargada de gestionar el pro #~ msgid "<0>Project developer: the entity that is in charge of managing the project. The project developer can be the land owner, land steward, or a third party." #~ msgstr "<0>Desarrollador del proyecto: entidad que se encarga de gestionar el proyecto. El desarrollador del proyecto puede ser el propietario del terreno, el administrador del terreno o un tercero." -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:71 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:70 msgid "<0>Project operator: The entity responsible for implementing and managing the project, ensuring it meets sustainability and regulatory standards." msgstr "<0>Operador del proyecto: Entidad responsable de implementar y gestionar el proyecto, garantizando que cumpla con los estándares regulatorios y de sostenibilidad." @@ -243,7 +243,7 @@ msgstr "<0>Operador del proyecto: Entidad responsable de implementar y gesti #~ msgid "<0>Verifier: A third party who provides a independent, impartial assessment of project plan and project reports (that is not the monitor)." #~ msgstr "<0>Verificador: Un tercero que proporciona una evaluación independiente e imparcial del plan del proyecto y de los informes del proyecto (que no es el monitor)." -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:82 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:81 msgid "<0>Verifier: The third party entity responsible for providing a independent, impartial assessment of project plan and project reports (that is not the monitor)." msgstr "<0>Verificador: La entidad de terceros responsable de proporcionar una evaluación independiente e imparcial del plan del proyecto y de los informes del proyecto (que no es el monitor)." @@ -267,7 +267,7 @@ msgstr "1 tonelada de CO2e" msgid "5MB max. Supported file types include text, spreadsheets, images, and video files." msgstr "Máximo de 5 MB. Los tipos de archivos admitidos incluyen texto, hojas de cálculo, imágenes y archivos de video." -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:39 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:38 #: src/pages/CreditClassDetails/CreditClassDetailsSimple/CreditClassDetailsSimple.Stakeholders.tsx:27 msgid "A <0>program involves the eligibility rules, monitoring and certification, and registration systems for credit trading and ownership tracking." msgstr "Un <0>programa implica las reglas de elegibilidad, monitoreo y certificación, y sistemas de registro para el comercio de créditos y el seguimiento de la propiedad." @@ -415,7 +415,7 @@ msgstr "Información adicional" msgid "Address copied!" msgstr "¡Dirección copiada!" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:48 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:47 #: src/pages/CreditClassDetails/CreditClassDetailsSimple/CreditClassDetailsSimple.Stakeholders.tsx:37 #: src/pages/Post/Post.constants.ts:8 msgid "admin" @@ -1572,7 +1572,7 @@ msgstr "cuenta corriente" msgid "Current admin address" msgstr "Dirección de administración actual" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:102 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:101 msgid "custodian" msgstr "custodio" @@ -2569,7 +2569,7 @@ msgstr "Mínimo 1 destinatario" msgid "Moderate" msgstr "Moderado" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:91 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:90 msgid "monitor" msgstr "monitor" @@ -2802,7 +2802,7 @@ msgstr "Sólo las ubicaciones de los archivos quedarán ocultas a la vista del p msgid "Oops! Page not found." msgstr "¡Ups! Página no encontrada." -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:69 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:68 msgid "operator" msgstr "operador" @@ -2870,7 +2870,7 @@ msgstr "Descripción general" msgid "Pacific" msgstr "Pacífico" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:113 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:112 msgid "partners" msgstr "fogonadura" @@ -3168,7 +3168,7 @@ msgstr "Perfil guardado" msgid "Profile type" msgstr "Tipo de perfil" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:37 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:36 #: src/pages/CreditClassDetails/CreditClassDetailsSimple/CreditClassDetailsSimple.Stakeholders.tsx:24 msgid "program" msgstr "programa" @@ -3239,7 +3239,7 @@ msgstr "beneficio del proyecto" msgid "Project Design Document" msgstr "Documento de diseño del proyecto" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:58 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:57 msgid "project developer" msgstr "Desarrollador de proyectos" @@ -3960,7 +3960,7 @@ msgstr "Lo sentimos, su transacción no fue exitosa." msgid "Sort by:" msgstr "Ordenar por:" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:137 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:136 msgid "Stakeholders" msgstr "Partes interesadas" @@ -4632,7 +4632,7 @@ msgstr "Informe de verificación" msgid "verification reports" msgstr "informes de verificación" -#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:80 +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:79 msgid "verifier" msgstr "verificador" From a36993e2d8aa0725e714aa792ebe73f549fbe981 Mon Sep 17 00:00:00 2001 From: blushi Date: Mon, 27 Jan 2025 09:35:40 +0100 Subject: [PATCH 4/4] chore: update project admin tooltip --- .../ProjectDetails.Stakeholders.tsx | 4 +-- web-marketplace/src/lib/i18n/locales/en.po | 26 +++++++++++-------- web-marketplace/src/lib/i18n/locales/es.po | 26 +++++++++++-------- 3 files changed, 32 insertions(+), 24 deletions(-) diff --git a/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx b/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx index 63fc7644f2..369e60e6bd 100644 --- a/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx +++ b/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx @@ -47,8 +47,8 @@ export const ProjectDetailsStakeholders: React.FC = ({ title: _(msg`admin`), tooltip: ( - Project admin: The entity who can update a given project on the - blockchain. + Project admin: The entity responsible for technical management, + content editing, and managing participant access for contributions. ), }, diff --git a/web-marketplace/src/lib/i18n/locales/en.po b/web-marketplace/src/lib/i18n/locales/en.po index 600a7223d3..fcb918112b 100644 --- a/web-marketplace/src/lib/i18n/locales/en.po +++ b/web-marketplace/src/lib/i18n/locales/en.po @@ -150,7 +150,7 @@ msgstr "" msgid "+ add another issuer'" msgstr "" -#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:300 +#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:301 msgid "+ add certification" msgstr "" @@ -220,13 +220,17 @@ msgstr "" #~ msgid "<0>Partners can offer crucial financial support or monitor progress and ensure environmental standards are met." #~ msgstr "" +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:49 +msgid "<0>Project admin: The entity responsible for technical management, content editing, and managing participant access for contributions." +msgstr "" + #: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:50 #~ msgid "<0>Project admin: the entity who can update a given project on the blockchain." #~ msgstr "" #: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:49 -msgid "<0>Project admin: The entity who can update a given project on the blockchain." -msgstr "" +#~ msgid "<0>Project admin: The entity who can update a given project on the blockchain." +#~ msgstr "" #: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:59 msgid "<0>Project developer: The entity in charge of managing the project. The project developer can be the land owner, land steward, or a third party." @@ -406,7 +410,7 @@ msgstr "" msgid "additional certifications" msgstr "" -#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:256 +#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:257 msgid "Additional Certifications" msgstr "" @@ -633,7 +637,7 @@ msgstr "" msgid "Attach arbitrary JSON-LD metadata to the credit batch below." msgstr "" -#: src/components/molecules/MetadataJSONField.tsx:56 +#: src/components/molecules/MetadataJSONField.tsx:35 msgid "Attach arbitrary JSON-LD metadata to the credit batch below. <0>Learn more»" msgstr "" @@ -1874,8 +1878,8 @@ msgstr "" msgid "end date" msgstr "" -#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:209 #: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:210 +#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:211 msgid "End Date" msgstr "" @@ -2522,7 +2526,7 @@ msgstr "" msgid "metadata" msgstr "" -#: src/components/molecules/MetadataJSONField.tsx:53 +#: src/components/molecules/MetadataJSONField.tsx:32 #: src/components/organisms/CreditClassForms/CreditClassForm.tsx:105 #: src/components/organisms/CreditClassForms/CreditClassReview.tsx:40 #: src/pages/ProjectMetadata/ProjectMetadata.tsx:72 @@ -3188,7 +3192,7 @@ msgstr "" #: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:132 #: src/components/organisms/EcocreditsTable.tsx:82 #: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.headers.tsx:18 -#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:183 +#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:184 #: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/Review.tsx:79 #: src/pages/Certificate/Certificate.constants.ts:14 #: src/pages/Certificate/Certificate.utils.ts:37 @@ -3965,8 +3969,8 @@ msgstr "" msgid "start date" msgstr "" -#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:199 #: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:200 +#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:201 msgid "Start Date" msgstr "" @@ -4163,7 +4167,7 @@ msgstr "" #~ msgid "The Custodian is the project landowner and has historically managed the territory. It is now part of the project stakeholders and receives benefits from project success." #~ msgstr "" -#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:220 +#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:221 msgid "The dates should correspond to the batch monitoring period or vintage." msgstr "" @@ -4605,7 +4609,7 @@ msgstr "" msgid "vcs retirement serial number" msgstr "" -#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:228 +#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:229 #: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/Review.tsx:86 msgid "VCS retirement serial number" msgstr "" diff --git a/web-marketplace/src/lib/i18n/locales/es.po b/web-marketplace/src/lib/i18n/locales/es.po index c5d3dd485b..ded9c58f2f 100644 --- a/web-marketplace/src/lib/i18n/locales/es.po +++ b/web-marketplace/src/lib/i18n/locales/es.po @@ -149,7 +149,7 @@ msgstr "+ añadir" msgid "+ add another issuer'" msgstr "+ añadir otro emisor'" -#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:300 +#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:301 msgid "+ add certification" msgstr "+ añadir certificación" @@ -219,13 +219,17 @@ msgstr "<0>Socios: pueden ofrecer apoyo financiero crucial o supervisar el p #~ msgid "<0>Partners can offer crucial financial support or monitor progress and ensure environmental standards are met." #~ msgstr "Los <0>socios pueden ofrecer un apoyo financiero crucial o supervisar el progreso y garantizar que se cumplan los estándares ambientales." +#: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:49 +msgid "<0>Project admin: The entity responsible for technical management, content editing, and managing participant access for contributions." +msgstr "<0>Administrador del proyecto: La entidad responsable de la gestión técnica, la edición de contenidos y la gestión del acceso de los participantes para las contribuciones." + #: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:47 #~ msgid "<0>Project admin: the entity who can update a given project on the blockchain." #~ msgstr "<0>Administrador del proyecto: la entidad que puede actualizar un proyecto determinado en la cadena de bloques." #: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:49 -msgid "<0>Project admin: The entity who can update a given project on the blockchain." -msgstr "<0>Administrador del proyecto: La entidad que puede actualizar un proyecto determinado en la cadena de bloques." +#~ msgid "<0>Project admin: The entity who can update a given project on the blockchain." +#~ msgstr "<0>Administrador del proyecto: La entidad que puede actualizar un proyecto determinado en la cadena de bloques." #: src/components/templates/ProjectDetails/ProjectDetails.Stakeholders.tsx:59 msgid "<0>Project developer: The entity in charge of managing the project. The project developer can be the land owner, land steward, or a third party." @@ -401,7 +405,7 @@ msgstr "URL de certificación adicional" msgid "additional certifications" msgstr "certificaciones adicionales" -#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:256 +#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:257 msgid "Additional Certifications" msgstr "Certificaciones adicionales" @@ -628,7 +632,7 @@ msgstr "Adjuntar una firma" msgid "Attach arbitrary JSON-LD metadata to the credit batch below." msgstr "Adjunte metadatos JSON-LD arbitrarios al lote de créditos a continuación." -#: src/components/molecules/MetadataJSONField.tsx:56 +#: src/components/molecules/MetadataJSONField.tsx:35 msgid "Attach arbitrary JSON-LD metadata to the credit batch below. <0>Learn more»" msgstr "Adjunte metadatos JSON-LD arbitrarios al lote de créditos a continuación. <0>Más información»" @@ -1873,8 +1877,8 @@ msgstr "¡Correo electrónico reenviado! Por favor, revise su bandeja de entrada msgid "end date" msgstr "Fecha de finalización" -#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:209 #: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:210 +#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:211 msgid "End Date" msgstr "Fecha de finalización" @@ -2525,7 +2529,7 @@ msgstr "mensajes" msgid "metadata" msgstr "metadatos" -#: src/components/molecules/MetadataJSONField.tsx:53 +#: src/components/molecules/MetadataJSONField.tsx:32 #: src/components/organisms/CreditClassForms/CreditClassForm.tsx:105 #: src/components/organisms/CreditClassForms/CreditClassReview.tsx:40 #: src/pages/ProjectMetadata/ProjectMetadata.tsx:72 @@ -3195,7 +3199,7 @@ msgstr "proyecto" #: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:132 #: src/components/organisms/EcocreditsTable.tsx:82 #: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.headers.tsx:18 -#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:183 +#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:184 #: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/Review.tsx:79 #: src/pages/Certificate/Certificate.constants.ts:14 #: src/pages/Certificate/Certificate.utils.ts:37 @@ -3972,8 +3976,8 @@ msgstr "Fecha de inicio y de fin" msgid "start date" msgstr "Fecha de inicio" -#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:199 #: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:200 +#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:201 msgid "Start Date" msgstr "Fecha de inicio" @@ -4173,7 +4177,7 @@ msgstr "El creador de esta cesta ha decidido que todos los créditos deben ser r msgid "The current address is already linked to your account.\\nPlease first switch wallet addresses in the Keplr app to be able to add another address to your account." msgstr "La dirección actual ya está vinculada a su cuenta. Primero cambie las direcciones de billetera en la aplicación Keplr para poder agregar otra dirección a su cuenta." -#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:220 +#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:221 msgid "The dates should correspond to the batch monitoring period or vintage." msgstr "Las fechas deben corresponder al período de seguimiento del lote o añada." @@ -4615,7 +4619,7 @@ msgstr "tipo de proyecto vcs" msgid "vcs retirement serial number" msgstr "Número de serie de retiro de VCS" -#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:228 +#: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreditBasics.tsx:229 #: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/Review.tsx:86 msgid "VCS retirement serial number" msgstr "Número de serie de retiro de VCS"