From a8ffb483edb73c3d27032b43b78ab26fa6473aa6 Mon Sep 17 00:00:00 2001 From: Noah Onyejese <129368606+noahonyejese@users.noreply.github.com> Date: Fri, 8 Nov 2024 07:05:00 +0100 Subject: [PATCH 01/13] feat: Added a Bug Report Component --- app/homepage/bug-report.tsx | 61 +++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 app/homepage/bug-report.tsx diff --git a/app/homepage/bug-report.tsx b/app/homepage/bug-report.tsx new file mode 100644 index 000000000..269720725 --- /dev/null +++ b/app/homepage/bug-report.tsx @@ -0,0 +1,61 @@ +import { Box, Button, Link, Typography } from "@mui/material"; + +import Flex from "@/components/flex"; + +export const BugReport = ({ + headline, + description, + buttonLabel, + buttonUrl, +}: { + headline: string; + description: string; + buttonLabel: string; + buttonUrl: string; +}) => { + return ( + + + + + + {headline} + + + {description} + + + + + + + + + ); +}; From a75610b0db3d30f9e9bd3aa3e35f8c725d82f33b Mon Sep 17 00:00:00 2001 From: Noah Onyejese <129368606+noahonyejese@users.noreply.github.com> Date: Fri, 8 Nov 2024 07:05:11 +0100 Subject: [PATCH 02/13] feat: Added a Newsletter Component --- app/homepage/newsletter.tsx | 61 +++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 app/homepage/newsletter.tsx diff --git a/app/homepage/newsletter.tsx b/app/homepage/newsletter.tsx new file mode 100644 index 000000000..bfd08e78e --- /dev/null +++ b/app/homepage/newsletter.tsx @@ -0,0 +1,61 @@ +import { Box, Button, Link, Typography } from "@mui/material"; + +import Flex from "@/components/flex"; + +export const Newsletter = ({ + headline, + description, + buttonLabel, + buttonUrl, +}: { + headline: string; + description: string; + buttonLabel: string; + buttonUrl: string; +}) => { + return ( + + + + + + {headline} + + + {description} + + + + + + + + + ); +}; From fa7a5268babdf16e7f0d99e5484664f0d25284f8 Mon Sep 17 00:00:00 2001 From: Noah Onyejese <129368606+noahonyejese@users.noreply.github.com> Date: Fri, 8 Nov 2024 07:05:34 +0100 Subject: [PATCH 03/13] feat: Added BugReport and Newsletter Comps. to statics --- app/components/content-mdx-provider.tsx | 11 +++++++- app/docs/homepage.docs.mdx | 37 +++++++++++++++++++------ app/docs/homepage.stories.tsx | 21 +++++++++++++- app/homepage/index.ts | 6 ++-- app/static-pages/de/index.mdx | 12 ++++++++ app/static-pages/en/index.mdx | 12 ++++++++ app/static-pages/fr/index.mdx | 12 ++++++++ app/static-pages/it/index.mdx | 12 ++++++++ 8 files changed, 111 insertions(+), 12 deletions(-) diff --git a/app/components/content-mdx-provider.tsx b/app/components/content-mdx-provider.tsx index 3e8997dd1..141609d69 100644 --- a/app/components/content-mdx-provider.tsx +++ b/app/components/content-mdx-provider.tsx @@ -3,7 +3,14 @@ import { Box } from "@mui/material"; import { ReactNode } from "react"; import { ContentLayout, StaticContentLayout } from "@/components/layout"; -import { Contribute, Examples, Intro, Tutorial } from "@/homepage"; +import { + BugReport, + Contribute, + Examples, + Intro, + Newsletter, + Tutorial, +} from "@/homepage"; const castContentId = (contentId: unknown) => { if (typeof contentId === "string") { @@ -35,6 +42,8 @@ const defaultMDXComponents = { Tutorial, Examples, Contribute, + Newsletter, + BugReport, }; export const ContentMDXProvider = ({ children }: { children: ReactNode }) => { diff --git a/app/docs/homepage.docs.mdx b/app/docs/homepage.docs.mdx index 65a5fc793..3ffe89bc8 100644 --- a/app/docs/homepage.docs.mdx +++ b/app/docs/homepage.docs.mdx @@ -1,25 +1,34 @@ import { Box } from "@mui/material"; import { ReactSpecimen } from "./catalog"; -import { Contribute, Examples, Intro, Tutorial } from "@/homepage"; -import { Canvas, Meta } from '@storybook/blocks'; -import * as HomepageStories from './homepage.stories'; +import { + BugReport, + Contribute, + Examples, + Intro, + Newsletter, + Tutorial, +} from "@/homepage"; +import { Canvas, Meta } from "@storybook/blocks"; +import * as HomepageStories from "./homepage.stories"; > The Homepage is the main page you see when you enter the Visualize app. -It consists of 4 different components: Intro, Tutorial, Examples and Contribute. In order to compose a complete Homepage, you have to use them all in the correct order. +It consists of 4 different components: Intro, Tutorial, Examples and Contribute. +In order to compose a complete Homepage, you have to use them all in the correct +order. -You can either import them directly to JSX files or create a separate MDX file and use a MDXProvider to render the page (see ContentMDXProvider component). +You can either import them directly to JSX files or create a separate MDX file +and use a MDXProvider to render the page (see ContentMDXProvider component). - ## How to use ```jsx -import { Contribute, Examples, Intro, Tutorial } from "../homepage"; +import { Contribute, Examples, Intro, Tutorial, Newsletter } from "../homepage"; + + -``` \ No newline at end of file +``` diff --git a/app/docs/homepage.stories.tsx b/app/docs/homepage.stories.tsx index ad3cb8480..f16633ae7 100644 --- a/app/docs/homepage.stories.tsx +++ b/app/docs/homepage.stories.tsx @@ -1,7 +1,14 @@ import { Box } from "@mui/material"; import { Meta } from "@storybook/react"; -import { Contribute, Examples, Intro, Tutorial } from "@/homepage"; +import { + BugReport, + Contribute, + Examples, + Intro, + Newsletter, + Tutorial, +} from "@/homepage"; import { ReactSpecimen } from "./catalog"; @@ -33,6 +40,18 @@ const HomepageStory = { example2Headline="Use powerful customizations" example2Description="With the help of custom filters and data segmentation, even complex issues can be visualized." /> + + + + + + + + + + Date: Fri, 8 Nov 2024 07:46:55 +0100 Subject: [PATCH 04/13] fix: Improved translations and design a bit --- app/docs/homepage.docs.mdx | 4 ++-- app/homepage/bug-report.tsx | 8 +++++--- app/homepage/newsletter.tsx | 14 ++++++++++---- app/static-pages/de/index.mdx | 4 ++-- app/static-pages/en/index.mdx | 4 ++-- app/static-pages/fr/index.mdx | 4 ++-- app/static-pages/it/index.mdx | 4 ++-- 7 files changed, 25 insertions(+), 17 deletions(-) diff --git a/app/docs/homepage.docs.mdx b/app/docs/homepage.docs.mdx index 3ffe89bc8..b9244373d 100644 --- a/app/docs/homepage.docs.mdx +++ b/app/docs/homepage.docs.mdx @@ -49,8 +49,8 @@ import { Contribute, Examples, Intro, Tutorial, Newsletter } from "../homepage"; example2Description="With the help of custom filters and data segmentation, even complex issues can be visualized." /> diff --git a/app/homepage/bug-report.tsx b/app/homepage/bug-report.tsx index 269720725..9df74736e 100644 --- a/app/homepage/bug-report.tsx +++ b/app/homepage/bug-report.tsx @@ -14,7 +14,7 @@ export const BugReport = ({ buttonUrl: string; }) => { return ( - + @@ -22,6 +22,7 @@ export const BugReport = ({ sx={{ fontSize: ["1.5rem", "1.5rem", "2rem"], lineHeight: 1.25, + mb: 3, }} > @@ -42,13 +43,14 @@ export const BugReport = ({ component={Link} href={buttonUrl} target="_blank" - variant="contained" + variant="inverted" rel="noopener noreferrer" - color="primary" sx={{ flexGrow: [1, 0, 0], textDecoration: "none", textAlign: "center", + bgcolor: (theme) => theme.palette.primary.contrastText, + color: (theme) => theme.palette.primary.main, }} > {buttonLabel} diff --git a/app/homepage/newsletter.tsx b/app/homepage/newsletter.tsx index bfd08e78e..fff199af6 100644 --- a/app/homepage/newsletter.tsx +++ b/app/homepage/newsletter.tsx @@ -16,8 +16,14 @@ export const Newsletter = ({ return ( - - + + {description} - + + diff --git a/app/static-pages/en/index.mdx b/app/static-pages/en/index.mdx index 362af0960..82342559d 100644 --- a/app/static-pages/en/index.mdx +++ b/app/static-pages/en/index.mdx @@ -19,8 +19,8 @@ export const contentId = "home"; example2Description="With the help of custom filters and data segmentation, even complex issues can be visualized." /> diff --git a/app/static-pages/fr/index.mdx b/app/static-pages/fr/index.mdx index a77d17a67..9be15492d 100644 --- a/app/static-pages/fr/index.mdx +++ b/app/static-pages/fr/index.mdx @@ -19,8 +19,8 @@ export const contentId = "home"; example2Description="Grâce aux filtres et aux options d'affichage, même des problèmes complexes peuvent être visualisés." /> diff --git a/app/static-pages/it/index.mdx b/app/static-pages/it/index.mdx index d53f30d87..a5413998b 100644 --- a/app/static-pages/it/index.mdx +++ b/app/static-pages/it/index.mdx @@ -19,8 +19,8 @@ export const contentId = "home"; example2Description="Grazie ai filtri personalizzati e alle opzioni di selezione dei dati, è possibile visualizzare anche problemi complessi." /> From ed88e3789c9152c147050b636c5ee2ea7fd6a553 Mon Sep 17 00:00:00 2001 From: Noah Onyejese <129368606+noahonyejese@users.noreply.github.com> Date: Mon, 11 Nov 2024 08:08:13 +0100 Subject: [PATCH 05/13] feat: Implemented Design for Bug Report & Newsletter --- app/components/content-mdx-provider.tsx | 2 + app/docs/homepage.stories.tsx | 30 ++++--- app/homepage/bug-report.tsx | 25 +++--- app/homepage/contribute.tsx | 99 +++++++++++----------- app/homepage/newsletter.tsx | 104 ++++++++++++------------ app/homepage/section.tsx | 25 ++++++ app/static-pages/de/index.mdx | 29 ++++--- app/static-pages/en/index.mdx | 29 ++++--- app/static-pages/fr/index.mdx | 29 ++++--- app/static-pages/it/index.mdx | 29 ++++--- 10 files changed, 229 insertions(+), 172 deletions(-) create mode 100644 app/homepage/section.tsx diff --git a/app/components/content-mdx-provider.tsx b/app/components/content-mdx-provider.tsx index 141609d69..084348521 100644 --- a/app/components/content-mdx-provider.tsx +++ b/app/components/content-mdx-provider.tsx @@ -11,6 +11,7 @@ import { Newsletter, Tutorial, } from "@/homepage"; +import { Section } from "@/homepage/section"; const castContentId = (contentId: unknown) => { if (typeof contentId === "string") { @@ -44,6 +45,7 @@ const defaultMDXComponents = { Contribute, Newsletter, BugReport, + Section, }; export const ContentMDXProvider = ({ children }: { children: ReactNode }) => { diff --git a/app/docs/homepage.stories.tsx b/app/docs/homepage.stories.tsx index f16633ae7..caa46dce0 100644 --- a/app/docs/homepage.stories.tsx +++ b/app/docs/homepage.stories.tsx @@ -9,6 +9,7 @@ import { Newsletter, Tutorial, } from "@/homepage"; +import { Section } from "@/homepage/section"; import { ReactSpecimen } from "./catalog"; @@ -40,24 +41,27 @@ const HomepageStory = { example2Headline="Use powerful customizations" example2Description="With the help of custom filters and data segmentation, even complex issues can be visualized." /> - +
+ +
+ +
-
), diff --git a/app/homepage/bug-report.tsx b/app/homepage/bug-report.tsx index 9df74736e..789f71eb6 100644 --- a/app/homepage/bug-report.tsx +++ b/app/homepage/bug-report.tsx @@ -14,16 +14,22 @@ export const BugReport = ({ buttonUrl: string; }) => { return ( - + - - + + {headline} @@ -31,10 +37,10 @@ export const BugReport = ({ {description} - + + theme.palette.primary.contrastText, - color: (theme) => theme.palette.primary.main, }} > {buttonLabel} diff --git a/app/homepage/contribute.tsx b/app/homepage/contribute.tsx index 696344da7..555b34206 100644 --- a/app/homepage/contribute.tsx +++ b/app/homepage/contribute.tsx @@ -1,5 +1,4 @@ -import { Box, Button, Link, Typography } from "@mui/material"; -import * as React from "react"; +import { Button, Link, Typography } from "@mui/material"; import Flex from "@/components/flex"; @@ -15,50 +14,56 @@ export const Contribute = ({ buttonUrl: string; }) => { return ( - - - - - - {headline} - - - {description} - - - - - - - - + + + + {headline} + + + {description} + + + + + + ); }; diff --git a/app/homepage/newsletter.tsx b/app/homepage/newsletter.tsx index fff199af6..32dada4e9 100644 --- a/app/homepage/newsletter.tsx +++ b/app/homepage/newsletter.tsx @@ -1,4 +1,4 @@ -import { Box, Button, Link, Typography } from "@mui/material"; +import { Button, Link, Typography } from "@mui/material"; import Flex from "@/components/flex"; @@ -14,54 +14,58 @@ export const Newsletter = ({ buttonUrl: string; }) => { return ( - - - - - - {headline} - - - {description} - - - - - - - - - + + + + {headline} + + + {description} + + + + + + ); }; diff --git a/app/homepage/section.tsx b/app/homepage/section.tsx new file mode 100644 index 000000000..7370aa6ef --- /dev/null +++ b/app/homepage/section.tsx @@ -0,0 +1,25 @@ +import { Box } from "@mui/material"; + +import Flex from "@/components/flex"; + +export const Section = ({ children }: { children: React.ReactNode }) => { + return ( + + + + {children} + + + + ); +}; diff --git a/app/static-pages/de/index.mdx b/app/static-pages/de/index.mdx index 402932775..4ef1e7a1b 100644 --- a/app/static-pages/de/index.mdx +++ b/app/static-pages/de/index.mdx @@ -18,21 +18,24 @@ export const contentId = "home"; example2Headline="Entdecken Sie die umfangreichen Möglichkeiten" example2Description="Mit Hilfe von benutzerdefinierten Filtern und Darstellungsoptionen, können selbst komplexe Sachverhalte visualisiert werden." /> - +
+ +
+ +
- diff --git a/app/static-pages/en/index.mdx b/app/static-pages/en/index.mdx index 82342559d..d012a226d 100644 --- a/app/static-pages/en/index.mdx +++ b/app/static-pages/en/index.mdx @@ -18,21 +18,24 @@ export const contentId = "home"; example2Headline="Use powerful customizations" example2Description="With the help of custom filters and data segmentation, even complex issues can be visualized." /> - +
+ +
+ +
- diff --git a/app/static-pages/fr/index.mdx b/app/static-pages/fr/index.mdx index 9be15492d..569a6f6af 100644 --- a/app/static-pages/fr/index.mdx +++ b/app/static-pages/fr/index.mdx @@ -18,21 +18,24 @@ export const contentId = "home"; example2Headline="Exploitez les nombreuses options disponibles" example2Description="Grâce aux filtres et aux options d'affichage, même des problèmes complexes peuvent être visualisés." /> - +
+ +
+ +
- diff --git a/app/static-pages/it/index.mdx b/app/static-pages/it/index.mdx index a5413998b..0607a9a30 100644 --- a/app/static-pages/it/index.mdx +++ b/app/static-pages/it/index.mdx @@ -18,21 +18,24 @@ export const contentId = "home"; example2Headline="Personalizzale come desideri" example2Description="Grazie ai filtri personalizzati e alle opzioni di selezione dei dati, è possibile visualizzare anche problemi complessi." /> - +
+ +
+ +
- From 605629e6b07faeefe413e36dff32b07ce6b72e53 Mon Sep 17 00:00:00 2001 From: Noah Onyejese <129368606+noahonyejese@users.noreply.github.com> Date: Mon, 11 Nov 2024 09:52:00 +0100 Subject: [PATCH 06/13] fix: Fixed Mobile view based on design --- app/homepage/contribute.tsx | 6 ++++-- app/homepage/newsletter.tsx | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/homepage/contribute.tsx b/app/homepage/contribute.tsx index 555b34206..9207def2c 100644 --- a/app/homepage/contribute.tsx +++ b/app/homepage/contribute.tsx @@ -27,7 +27,7 @@ export const Contribute = ({ width: ["100%", "100%", "70%"], flexDirection: "column", gap: 4, - maxWidth: "330px", + maxWidth: ["100%", "330px"], }} > -
-
-
-
+ {headline} + + + {description} + + + + + + ); }; diff --git a/app/homepage/contribute.tsx b/app/homepage/contribute.tsx index 9207def2c..6850fc1e7 100644 --- a/app/homepage/contribute.tsx +++ b/app/homepage/contribute.tsx @@ -46,7 +46,7 @@ export const Contribute = ({ sx={{ width: ["100%", "100%", "70%"], maxWidth: ["100%", "330px"], - paddingBottom: ["72px", "none"], + paddingBottom: ["72px", "0px"], borderBottom: ["1px solid #e5e5e5", "none"], }} > @@ -58,7 +58,6 @@ export const Contribute = ({ color="inherit" rel="noopener noreferrer" sx={{ - flexGrow: [1, 0, 0], textDecoration: "none", textAlign: "center", }} diff --git a/app/homepage/feature-request.tsx b/app/homepage/feature-request.tsx new file mode 100644 index 000000000..3e0e03dfa --- /dev/null +++ b/app/homepage/feature-request.tsx @@ -0,0 +1,69 @@ +import { Button, Link, Typography } from "@mui/material"; + +import Flex from "@/components/flex"; + +export const FeatureRequest = ({ + headline, + description, + buttonLabel, + buttonUrl, +}: { + headline: string; + description: string; + buttonLabel: string; + buttonUrl: string; +}) => { + return ( + + + + {headline} + + + {description} + + + + + + + ); +}; diff --git a/app/homepage/newsletter.tsx b/app/homepage/newsletter.tsx index 18a08a8e7..b7b55fc8c 100644 --- a/app/homepage/newsletter.tsx +++ b/app/homepage/newsletter.tsx @@ -57,7 +57,6 @@ export const Newsletter = ({ rel="noopener noreferrer" color="inherit" sx={{ - flexGrow: [1, 0, 0], textDecoration: "none", textAlign: "center", }} diff --git a/app/homepage/section.tsx b/app/homepage/section.tsx index 7370aa6ef..6563eb761 100644 --- a/app/homepage/section.tsx +++ b/app/homepage/section.tsx @@ -1,12 +1,17 @@ -import { Box } from "@mui/material"; +import { Box, SxProps } from "@mui/material"; +import { Theme } from "@mui/material/styles"; import Flex from "@/components/flex"; -export const Section = ({ children }: { children: React.ReactNode }) => { +export const Section = ({ + children, + sx = { backgroundColor: "primary.main", color: "grey.100", width: "100%" }, +}: { + children: React.ReactNode; + sx?: SxProps; +}) => { return ( - + - +
+ +
+ +
diff --git a/app/static-pages/en/index.mdx b/app/static-pages/en/index.mdx index d012a226d..8b5bf937e 100644 --- a/app/static-pages/en/index.mdx +++ b/app/static-pages/en/index.mdx @@ -1,3 +1,8 @@ +import { bugReportTemplates } from "@/templates/email/bug-report"; +import { featureRequestTemplates } from "@/templates/email/feature-request"; + +import { createMailtoLink } from "../../../app/templates/email"; + export const contentId = "home"; - +
+ +
+ +
diff --git a/app/static-pages/fr/index.mdx b/app/static-pages/fr/index.mdx index 569a6f6af..31ca065b7 100644 --- a/app/static-pages/fr/index.mdx +++ b/app/static-pages/fr/index.mdx @@ -1,3 +1,8 @@ +import { bugReportTemplates } from "@/templates/email/bug-report"; +import { featureRequestTemplates } from "@/templates/email/feature-request"; + +import { createMailtoLink } from "../../../app/templates/email"; + export const contentId = "home"; - +
+ +
+ +
diff --git a/app/static-pages/it/index.mdx b/app/static-pages/it/index.mdx index 0607a9a30..3cc1b32e3 100644 --- a/app/static-pages/it/index.mdx +++ b/app/static-pages/it/index.mdx @@ -1,3 +1,8 @@ +import { bugReportTemplates } from "@/templates/email/bug-report"; +import { featureRequestTemplates } from "@/templates/email/feature-request"; + +import { createMailtoLink } from "../../../app/templates/email"; + export const contentId = "home"; - +
+ +
+ +
diff --git a/app/templates/email/bug-report.ts b/app/templates/email/bug-report.ts new file mode 100644 index 000000000..8526d0128 --- /dev/null +++ b/app/templates/email/bug-report.ts @@ -0,0 +1,149 @@ +export const bugReportTemplates = { + en: ` +Bug Report + +Describe the bug +---------------- +A clear and concise description of what the bug is. If it seems connected to some data problem (missing values, wrong parsing), please first check the cube in Cube Validator to see if everything is fine there. +Please describe... + +To Reproduce +------------ +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '...' +3. Scroll down to '...' +4. See error + +Expected behavior +----------------- +A clear and concise description of what you expected to happen. +Please describe... + +Screenshots or video +-------------------- +If applicable, add screenshots or a short video to help put your problem into a context. + +Environment +----------- +Please complete the following information. +- Visualize environment and version: [e.g., INT v3.12.0] +- Browser and version [e.g., Chrome 107] + +Additional context +------------------ +Add any other context about the problem here. +Please describe... +`, + + de: ` +Fehlermeldung + +Beschreiben Sie den Fehler +-------------------------- +Eine klare und präzise Beschreibung des Fehlers. Wenn es mit einem Datenproblem zusammenhängt (fehlende Werte, falsche Analyse), überprüfen Sie bitte zuerst den Cube im Cube Validator, um sicherzustellen, dass dort alles in Ordnung ist. +Bitte beschreiben Sie... + +Zum Reproduzieren +----------------- +Schritte zum Reproduzieren des Verhaltens: +1. Gehen Sie zu '...' +2. Klicken Sie auf '...' +3. Scrollen Sie nach unten zu '...' +4. Fehlermeldung erscheint + +Erwartetes Verhalten +-------------------- +Eine klare und präzise Beschreibung dessen, was Sie erwartet haben. +Bitte beschreiben Sie... + +Screenshots oder Video +---------------------- +Falls zutreffend, fügen Sie Screenshots oder ein kurzes Video hinzu, um Ihr Problem in einen Kontext zu setzen. + +Umgebung +-------- +Bitte vervollständigen Sie die folgenden Informationen. +- Visualize-Umgebung und Version: [z.B., INT v3.12.0] +- Browser und Version [z.B., Chrome 107] + +Zusätzlicher Kontext +-------------------- +Fügen Sie hier weitere Kontextinformationen zum Problem hinzu. +Bitte beschreiben Sie... +`, + + fr: ` +Rapport de Bug + +Description du bug +------------------ +Une description claire et concise du bug. S'il semble lié à un problème de données (valeurs manquantes, analyse incorrecte), veuillez d'abord vérifier le cube dans le Cube Validator pour vous assurer que tout y est correct. +Veuillez décrire... + +Pour reproduire +--------------- +Étapes pour reproduire le comportement : +1. Aller à '...' +2. Cliquer sur '...' +3. Faire défiler jusqu'à '...' +4. Voir l'erreur + +Comportement attendu +-------------------- +Une description claire et concise de ce que vous attendiez. +Veuillez décrire... + +Captures d'écran ou vidéo +------------------------- +Le cas échéant, ajoutez des captures d'écran ou une courte vidéo pour mettre votre problème en contexte. + +Environnement +------------- +Veuillez compléter les informations suivantes. +- Environnement et version Visualize : [ex. INT v3.12.0] +- Navigateur et version [ex. Chrome 107] + +Contexte supplémentaire +----------------------- +Ajoutez ici tout autre contexte concernant le problème. +Veuillez décrire... +`, + + it: ` +Segnalazione Bug + +Descrizione del bug +------------------- +Una descrizione chiara e concisa del bug. Se sembra collegato a un problema di dati (valori mancanti, analisi errata), controllare prima il cubo nel Cube Validator per assicurarsi che tutto sia a posto. +Si prega di descrivere... + +Per riprodurre +-------------- +Passaggi per riprodurre il comportamento: +1. Andare a '...' +2. Cliccare su '...' +3. Scorrere fino a '...' +4. Vedere l'errore + +Comportamento previsto +---------------------- +Una descrizione chiara e concisa di ciò che ci si aspettava. +Si prega di descrivere... + +Screenshot o video +------------------ +Se applicabile, aggiungere screenshot o un breve video per contestualizzare il problema. + +Ambiente +-------- +Si prega di completare le seguenti informazioni. +- Ambiente e versione Visualize: [es. INT v3.12.0] +- Browser e versione [es. Chrome 107] + +Contesto aggiuntivo +------------------- +Aggiungere qui qualsiasi altro contesto sul problema. +Si prega di descrivere... +`, +}; diff --git a/app/templates/email/feature-request.ts b/app/templates/email/feature-request.ts new file mode 100644 index 000000000..83e080a97 --- /dev/null +++ b/app/templates/email/feature-request.ts @@ -0,0 +1,141 @@ +export const featureRequestTemplates = { + en: ` +Feature Request + +Is your feature request related to a problem? +--------------------------------------------- +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] +Please describe... + +Describe the solution you'd like +-------------------------------- +A clear and concise description of what you want to happen. +Please describe... + +Describe alternatives you've considered +--------------------------------------- +A clear and concise description of any alternative solutions or features you've considered. +Please describe... + +Use cases and impact +-------------------- +Examples of how the feature would be beneficial and an estimation of how much impact it would have. +Please describe... + +Environment +----------- +Please complete the following information. +- Visualize environment and version: [e.g., INT v3.12.0] +- Browser and version [e.g., Chrome 107] + +Additional context +------------------ +Add any other context or screenshots about the feature request here. +Please describe... +`, + + de: ` +Funktionsanfrage + +Bezieht sich Ihre Feature-Anfrage auf ein Problem? +------------------------------------------------- +Eine klare und präzise Beschreibung des Problems. Z.B. Es frustriert mich immer, wenn [...] +Bitte beschreiben Sie... + +Beschreiben Sie die gewünschte Lösung +------------------------------------- +Eine klare und präzise Beschreibung dessen, was passieren soll. +Bitte beschreiben Sie... + +Beschreiben Sie Alternativen, die Sie in Betracht gezogen haben +-------------------------------------------------------------- +Eine klare und präzise Beschreibung aller alternativen Lösungen oder Funktionen, die Sie in Betracht gezogen haben. +Bitte beschreiben Sie... + +Anwendungsfälle und Auswirkungen +-------------------------------- +Beispiele dafür, wie die Funktion nützlich wäre und eine Einschätzung der Auswirkungen. +Bitte beschreiben Sie... + +Umgebung +-------- +Bitte vervollständigen Sie die folgenden Informationen. +- Visualize-Umgebung und Version: [z.B., INT v3.12.0] +- Browser und Version [z.B., Chrome 107] + +Zusätzlicher Kontext +-------------------- +Fügen Sie hier weitere Kontextinformationen oder Screenshots zur Feature-Anfrage hinzu. +Bitte beschreiben Sie... +`, + + fr: ` +Demande de Fonctionnalité + +Votre demande de fonctionnalité est-elle liée à un problème ? +------------------------------------------------------------ +Une description claire et concise du problème. Ex. Je suis toujours frustré quand [...] +Veuillez décrire... + +Décrivez la solution que vous souhaitez +--------------------------------------- +Une description claire et concise de ce que vous voulez qu'il se passe. +Veuillez décrire... + +Décrivez les alternatives que vous avez envisagées +-------------------------------------------------- +Une description claire et concise des solutions ou fonctionnalités alternatives que vous avez envisagées. +Veuillez décrire... + +Cas d'utilisation et impact +--------------------------- +Exemples de l'utilité de la fonctionnalité et estimation de son impact. +Veuillez décrire... + +Environnement +------------- +Veuillez compléter les informations suivantes. +- Environnement et version Visualize : [ex. INT v3.12.0] +- Navigateur et version [ex. Chrome 107] + +Contexte supplémentaire +----------------------- +Ajoutez ici tout autre contexte ou captures d'écran concernant la demande de fonctionnalité. +Veuillez décrire... +`, + + it: ` +Richiesta di Funzionalità + +La sua richiesta di funzionalità è legata a un problema? +-------------------------------------------------------- +Una descrizione chiara e concisa del problema. Es. Sono sempre frustrato quando [...] +Si prega di descrivere... + +Descriva la soluzione che vorrebbe +---------------------------------- +Una descrizione chiara e concisa di ciò che vuole che accada. +Si prega di descrivere... + +Descriva le alternative considerate +----------------------------------- +Una descrizione chiara e concisa di eventuali soluzioni o funzionalità alternative che ha considerato. +Si prega di descrivere... + +Casi d'uso e impatto +-------------------- +Esempi di come la funzionalità sarebbe utile e una stima del suo impatto. +Si prega di descrivere... + +Ambiente +-------- +Si prega di completare le seguenti informazioni. +- Ambiente e versione Visualize: [es. INT v3.12.0] +- Browser e versione [es. Chrome 107] + +Contesto aggiuntivo +------------------- +Aggiunga qui qualsiasi altro contesto o screenshot sulla richiesta di funzionalità. +Si prega di descrivere... +`, +}; diff --git a/app/templates/email/index.ts b/app/templates/email/index.ts new file mode 100644 index 000000000..8b8b8d7de --- /dev/null +++ b/app/templates/email/index.ts @@ -0,0 +1,21 @@ +import { bugReportTemplates } from "./bug-report"; + +type EmailRecipients = { + to: string; + cc: string; +}; + +export const createMailtoLink = ( + lang: keyof typeof bugReportTemplates, + options: { + recipients: EmailRecipients; + template: typeof bugReportTemplates; + } +) => { + const template = options.template[lang]; + return `mailto:${options.recipients.to}?cc=${ + options.recipients.cc + }&subject=${encodeURIComponent("Bug Report")}&body=${encodeURIComponent( + template + )}`; +}; From 7e39d701dc8fff2700932a9dc579a4f5ebbda3ec Mon Sep 17 00:00:00 2001 From: Noah Onyejese <129368606+noahonyejese@users.noreply.github.com> Date: Tue, 12 Nov 2024 10:11:34 +0100 Subject: [PATCH 09/13] fix: Adjust Email body formatting --- app/templates/email/bug-report.ts | 51 +++++++++++-------------- app/templates/email/feature-request.ts | 52 ++++++++++---------------- 2 files changed, 41 insertions(+), 62 deletions(-) diff --git a/app/templates/email/bug-report.ts b/app/templates/email/bug-report.ts index 8526d0128..22d5ac674 100644 --- a/app/templates/email/bug-report.ts +++ b/app/templates/email/bug-report.ts @@ -1,37 +1,34 @@ export const bugReportTemplates = { en: ` -Bug Report - Describe the bug ----------------- A clear and concise description of what the bug is. If it seems connected to some data problem (missing values, wrong parsing), please first check the cube in Cube Validator to see if everything is fine there. Please describe... +---------------------------------------------- To Reproduce ------------- Steps to reproduce the behavior: 1. Go to '...' 2. Click on '...' 3. Scroll down to '...' 4. See error +---------------------------------------------- Expected behavior ------------------ A clear and concise description of what you expected to happen. Please describe... +---------------------------------------------- Screenshots or video --------------------- If applicable, add screenshots or a short video to help put your problem into a context. +---------------------------------------------- Environment ------------ Please complete the following information. - Visualize environment and version: [e.g., INT v3.12.0] - Browser and version [e.g., Chrome 107] +---------------------------------------------- Additional context ------------------- Add any other context about the problem here. Please describe... `, @@ -39,110 +36,104 @@ Please describe... de: ` Fehlermeldung +---------------------------------------------- Beschreiben Sie den Fehler --------------------------- Eine klare und präzise Beschreibung des Fehlers. Wenn es mit einem Datenproblem zusammenhängt (fehlende Werte, falsche Analyse), überprüfen Sie bitte zuerst den Cube im Cube Validator, um sicherzustellen, dass dort alles in Ordnung ist. Bitte beschreiben Sie... +---------------------------------------------- Zum Reproduzieren ------------------ Schritte zum Reproduzieren des Verhaltens: 1. Gehen Sie zu '...' 2. Klicken Sie auf '...' 3. Scrollen Sie nach unten zu '...' 4. Fehlermeldung erscheint +---------------------------------------------- Erwartetes Verhalten --------------------- Eine klare und präzise Beschreibung dessen, was Sie erwartet haben. Bitte beschreiben Sie... +---------------------------------------------- Screenshots oder Video ----------------------- Falls zutreffend, fügen Sie Screenshots oder ein kurzes Video hinzu, um Ihr Problem in einen Kontext zu setzen. +---------------------------------------------- Umgebung --------- Bitte vervollständigen Sie die folgenden Informationen. - Visualize-Umgebung und Version: [z.B., INT v3.12.0] - Browser und Version [z.B., Chrome 107] +---------------------------------------------- Zusätzlicher Kontext --------------------- Fügen Sie hier weitere Kontextinformationen zum Problem hinzu. Bitte beschreiben Sie... `, fr: ` -Rapport de Bug - Description du bug ------------------- Une description claire et concise du bug. S'il semble lié à un problème de données (valeurs manquantes, analyse incorrecte), veuillez d'abord vérifier le cube dans le Cube Validator pour vous assurer que tout y est correct. Veuillez décrire... +---------------------------------------------- Pour reproduire ---------------- Étapes pour reproduire le comportement : 1. Aller à '...' 2. Cliquer sur '...' 3. Faire défiler jusqu'à '...' 4. Voir l'erreur +---------------------------------------------- Comportement attendu --------------------- Une description claire et concise de ce que vous attendiez. Veuillez décrire... +---------------------------------------------- Captures d'écran ou vidéo -------------------------- Le cas échéant, ajoutez des captures d'écran ou une courte vidéo pour mettre votre problème en contexte. +---------------------------------------------- Environnement -------------- Veuillez compléter les informations suivantes. - Environnement et version Visualize : [ex. INT v3.12.0] - Navigateur et version [ex. Chrome 107] +---------------------------------------------- Contexte supplémentaire ------------------------ Ajoutez ici tout autre contexte concernant le problème. Veuillez décrire... `, it: ` -Segnalazione Bug - Descrizione del bug -------------------- Una descrizione chiara e concisa del bug. Se sembra collegato a un problema di dati (valori mancanti, analisi errata), controllare prima il cubo nel Cube Validator per assicurarsi che tutto sia a posto. Si prega di descrivere... +---------------------------------------------- Per riprodurre --------------- Passaggi per riprodurre il comportamento: 1. Andare a '...' 2. Cliccare su '...' 3. Scorrere fino a '...' 4. Vedere l'errore +---------------------------------------------- Comportamento previsto ----------------------- Una descrizione chiara e concisa di ciò che ci si aspettava. Si prega di descrivere... +---------------------------------------------- Screenshot o video ------------------- Se applicabile, aggiungere screenshot o un breve video per contestualizzare il problema. +---------------------------------------------- Ambiente --------- Si prega di completare le seguenti informazioni. - Ambiente e versione Visualize: [es. INT v3.12.0] - Browser e versione [es. Chrome 107] +---------------------------------------------- Contesto aggiuntivo -------------------- Aggiungere qui qualsiasi altro contesto sul problema. Si prega di descrivere... `, diff --git a/app/templates/email/feature-request.ts b/app/templates/email/feature-request.ts index 83e080a97..4af6c8c55 100644 --- a/app/templates/email/feature-request.ts +++ b/app/templates/email/feature-request.ts @@ -1,140 +1,128 @@ export const featureRequestTemplates = { en: ` -Feature Request - Is your feature request related to a problem? ---------------------------------------------- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] Please describe... +---------------------------------------------- Describe the solution you'd like --------------------------------- A clear and concise description of what you want to happen. Please describe... +---------------------------------------------- Describe alternatives you've considered ---------------------------------------- A clear and concise description of any alternative solutions or features you've considered. Please describe... +---------------------------------------------- Use cases and impact --------------------- Examples of how the feature would be beneficial and an estimation of how much impact it would have. Please describe... +---------------------------------------------- Environment ------------ Please complete the following information. - Visualize environment and version: [e.g., INT v3.12.0] - Browser and version [e.g., Chrome 107] +---------------------------------------------- Additional context ------------------- Add any other context or screenshots about the feature request here. Please describe... `, de: ` -Funktionsanfrage - Bezieht sich Ihre Feature-Anfrage auf ein Problem? -------------------------------------------------- Eine klare und präzise Beschreibung des Problems. Z.B. Es frustriert mich immer, wenn [...] Bitte beschreiben Sie... +---------------------------------------------- Beschreiben Sie die gewünschte Lösung -------------------------------------- Eine klare und präzise Beschreibung dessen, was passieren soll. Bitte beschreiben Sie... +---------------------------------------------- Beschreiben Sie Alternativen, die Sie in Betracht gezogen haben --------------------------------------------------------------- Eine klare und präzise Beschreibung aller alternativen Lösungen oder Funktionen, die Sie in Betracht gezogen haben. Bitte beschreiben Sie... +---------------------------------------------- Anwendungsfälle und Auswirkungen --------------------------------- Beispiele dafür, wie die Funktion nützlich wäre und eine Einschätzung der Auswirkungen. Bitte beschreiben Sie... +---------------------------------------------- Umgebung --------- Bitte vervollständigen Sie die folgenden Informationen. - Visualize-Umgebung und Version: [z.B., INT v3.12.0] - Browser und Version [z.B., Chrome 107] +---------------------------------------------- Zusätzlicher Kontext --------------------- Fügen Sie hier weitere Kontextinformationen oder Screenshots zur Feature-Anfrage hinzu. Bitte beschreiben Sie... `, fr: ` -Demande de Fonctionnalité - Votre demande de fonctionnalité est-elle liée à un problème ? ------------------------------------------------------------- Une description claire et concise du problème. Ex. Je suis toujours frustré quand [...] Veuillez décrire... +---------------------------------------------- Décrivez la solution que vous souhaitez ---------------------------------------- Une description claire et concise de ce que vous voulez qu'il se passe. Veuillez décrire... +---------------------------------------------- Décrivez les alternatives que vous avez envisagées --------------------------------------------------- Une description claire et concise des solutions ou fonctionnalités alternatives que vous avez envisagées. Veuillez décrire... +---------------------------------------------- Cas d'utilisation et impact ---------------------------- Exemples de l'utilité de la fonctionnalité et estimation de son impact. Veuillez décrire... +---------------------------------------------- Environnement -------------- Veuillez compléter les informations suivantes. - Environnement et version Visualize : [ex. INT v3.12.0] - Navigateur et version [ex. Chrome 107] +---------------------------------------------- Contexte supplémentaire ------------------------ Ajoutez ici tout autre contexte ou captures d'écran concernant la demande de fonctionnalité. Veuillez décrire... `, it: ` -Richiesta di Funzionalità - La sua richiesta di funzionalità è legata a un problema? --------------------------------------------------------- Una descrizione chiara e concisa del problema. Es. Sono sempre frustrato quando [...] Si prega di descrivere... -Descriva la soluzione che vorrebbe ---------------------------------- +Descriva la soluzione che vorrebbe Una descrizione chiara e concisa di ciò che vuole che accada. Si prega di descrivere... +---------------------------------------------- Descriva le alternative considerate ------------------------------------ Una descrizione chiara e concisa di eventuali soluzioni o funzionalità alternative che ha considerato. Si prega di descrivere... +---------------------------------------------- Casi d'uso e impatto --------------------- Esempi di come la funzionalità sarebbe utile e una stima del suo impatto. Si prega di descrivere... +---------------------------------------------- Ambiente --------- Si prega di completare le seguenti informazioni. - Ambiente e versione Visualize: [es. INT v3.12.0] - Browser e versione [es. Chrome 107] +---------------------------------------------- Contesto aggiuntivo -------------------- Aggiunga qui qualsiasi altro contesto o screenshot sulla richiesta di funzionalità. Si prega di descrivere... `, From 67a325ebdcfbabf48db2c9f4be8256dd4dcf55b7 Mon Sep 17 00:00:00 2001 From: Noah Onyejese <129368606+noahonyejese@users.noreply.github.com> Date: Tue, 12 Nov 2024 11:42:47 +0100 Subject: [PATCH 10/13] fix: Fixed all adjustments from @bprusinowski & @KerstinFaye --- app/docs/homepage.stories.tsx | 4 ++-- app/homepage/bug-report.tsx | 4 ++-- app/homepage/contribute.tsx | 4 ++-- app/homepage/feature-request.tsx | 4 ++-- app/homepage/newsletter.tsx | 4 ++-- app/static-pages/de/index.mdx | 28 ++++++++++++++++------------ app/static-pages/en/index.mdx | 22 +++++++++++++--------- app/static-pages/fr/index.mdx | 22 +++++++++++++--------- app/static-pages/it/index.mdx | 21 +++++++++++++-------- app/templates/email/bug-report.ts | 16 ++++++++-------- app/templates/email/config.ts | 2 ++ 11 files changed, 75 insertions(+), 56 deletions(-) create mode 100644 app/templates/email/config.ts diff --git a/app/docs/homepage.stories.tsx b/app/docs/homepage.stories.tsx index 6a9d3c59e..dfb90f092 100644 --- a/app/docs/homepage.stories.tsx +++ b/app/docs/homepage.stories.tsx @@ -64,12 +64,12 @@ const HomepageStory = {
{headline} diff --git a/app/homepage/contribute.tsx b/app/homepage/contribute.tsx index 6850fc1e7..fa797f4e3 100644 --- a/app/homepage/contribute.tsx +++ b/app/homepage/contribute.tsx @@ -32,8 +32,8 @@ export const Contribute = ({ > {headline} diff --git a/app/homepage/feature-request.tsx b/app/homepage/feature-request.tsx index 3e0e03dfa..d06c5d058 100644 --- a/app/homepage/feature-request.tsx +++ b/app/homepage/feature-request.tsx @@ -33,8 +33,8 @@ export const FeatureRequest = ({ > {headline} diff --git a/app/homepage/newsletter.tsx b/app/homepage/newsletter.tsx index b7b55fc8c..51f6daba8 100644 --- a/app/homepage/newsletter.tsx +++ b/app/homepage/newsletter.tsx @@ -33,8 +33,8 @@ export const Newsletter = ({ > {headline} diff --git a/app/static-pages/de/index.mdx b/app/static-pages/de/index.mdx index b900c4916..741b05a6c 100644 --- a/app/static-pages/de/index.mdx +++ b/app/static-pages/de/index.mdx @@ -1,7 +1,11 @@ import { bugReportTemplates } from "@/templates/email/bug-report"; import { featureRequestTemplates } from "@/templates/email/feature-request"; - +import { Divider } from "@mui/material"; import { createMailtoLink } from "../../../app/templates/email"; +import { + BAFU_VISUALIZE_EMAIL, + IXT_SUPPORT_EMAIL, +} from "../../../app/templates/email/config"; export const contentId = "home"; @@ -30,40 +34,40 @@ export const contentId = "home"; buttonLabel="Mehr erfahren" buttonUrl="https://lindas.admin.ch/?lang=de" /> -
+
-
+ -
+
-
+ -
+
-
+ -
+
-
+ Date: Tue, 12 Nov 2024 12:01:18 +0100 Subject: [PATCH 11/13] fix: Fixed Remaining issues --- app/static-pages/de/index.mdx | 26 +++++++++++++++++--------- app/static-pages/en/index.mdx | 26 +++++++++++++++++--------- app/static-pages/fr/index.mdx | 26 +++++++++++++++++--------- app/static-pages/it/index.mdx | 26 +++++++++++++++++--------- app/templates/email/bug-report.ts | 16 ++++++++-------- app/templates/email/config.ts | 4 ++-- 6 files changed, 78 insertions(+), 46 deletions(-) diff --git a/app/static-pages/de/index.mdx b/app/static-pages/de/index.mdx index 741b05a6c..90c5f6a9a 100644 --- a/app/static-pages/de/index.mdx +++ b/app/static-pages/de/index.mdx @@ -3,8 +3,8 @@ import { featureRequestTemplates } from "@/templates/email/feature-request"; import { Divider } from "@mui/material"; import { createMailtoLink } from "../../../app/templates/email"; import { - BAFU_VISUALIZE_EMAIL, - IXT_SUPPORT_EMAIL, + OWNER_ORGANIZATION_EMAIL, + SUPPORT_EMAIL, } from "../../../app/templates/email/config"; export const contentId = "home"; @@ -34,12 +34,16 @@ export const contentId = "home"; buttonLabel="Mehr erfahren" buttonUrl="https://lindas.admin.ch/?lang=de" /> - +
- + - +
- + - +
- + - +
- + Date: Wed, 13 Nov 2024 05:49:52 +0100 Subject: [PATCH 12/13] fix: Fixed translations --- app/docs/homepage.docs.mdx | 2 +- app/docs/homepage.stories.tsx | 2 +- app/static-pages/en/index.mdx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/docs/homepage.docs.mdx b/app/docs/homepage.docs.mdx index 874567959..09a8b79f4 100644 --- a/app/docs/homepage.docs.mdx +++ b/app/docs/homepage.docs.mdx @@ -53,7 +53,7 @@ import { Contribute, Examples, Intro, Tutorial, Newsletter, BugReport, FeatureRe /> diff --git a/app/docs/homepage.stories.tsx b/app/docs/homepage.stories.tsx index dfb90f092..ce86fe4f1 100644 --- a/app/docs/homepage.stories.tsx +++ b/app/docs/homepage.stories.tsx @@ -56,7 +56,7 @@ const HomepageStory = {
diff --git a/app/static-pages/en/index.mdx b/app/static-pages/en/index.mdx index 97e91c3f3..3252148b0 100644 --- a/app/static-pages/en/index.mdx +++ b/app/static-pages/en/index.mdx @@ -41,7 +41,7 @@ export const contentId = "home"; /> From 1569f9fef087d0027f052796de9d16a697ac37aa Mon Sep 17 00:00:00 2001 From: Noah Onyejese <129368606+noahonyejese@users.noreply.github.com> Date: Wed, 13 Nov 2024 05:58:49 +0100 Subject: [PATCH 13/13] fix: Translation Requests --- app/docs/homepage.docs.mdx | 5 +++- app/docs/homepage.stories.tsx | 5 +++- app/static-pages/de/index.mdx | 6 +++-- app/static-pages/en/index.mdx | 4 ++-- app/static-pages/fr/index.mdx | 6 +++-- app/static-pages/it/index.mdx | 6 +++-- app/templates/email/bug-report.ts | 6 +++++ app/templates/email/feature-request.ts | 32 +++++++------------------- app/templates/email/index.ts | 3 ++- 9 files changed, 38 insertions(+), 35 deletions(-) diff --git a/app/docs/homepage.docs.mdx b/app/docs/homepage.docs.mdx index 09a8b79f4..4f054848d 100644 --- a/app/docs/homepage.docs.mdx +++ b/app/docs/homepage.docs.mdx @@ -10,6 +10,7 @@ import { Tutorial, } from "@/homepage"; import { bugReportTemplates } from "@/templates/email/bug-report"; +import { OWNER_ORGANIZATION_EMAIL } from "@/templates/email/config"; import { featureRequestTemplates } from "@/templates/email/feature-request"; import { Canvas, Meta } from "@storybook/blocks"; import { createMailtoLink } from "../../app/templates/email"; @@ -55,7 +56,7 @@ import { Contribute, Examples, Intro, Tutorial, Newsletter, BugReport, FeatureRe headline="Stay up to date" description="Stay up to date and subscribe to our newsletter by adding your email address below." buttonLabel="Subscribe" - buttonUrl="mailto:visualize@bafu.admin.ch" + buttonUrl={`mailto:${OWNER_ORGANIZATION_EMAIL}`} />
@@ -77,6 +78,7 @@ const HomepageStory = { cc: "supprt@interactivethings.com", }, template: bugReportTemplates, + subject: "Visualize Bug Report", })} />
@@ -90,6 +92,7 @@ const HomepageStory = { cc: "supprt@interactivethings.com", }, template: featureRequestTemplates, + subject: "Visualize Feature Request", })} /> diff --git a/app/static-pages/de/index.mdx b/app/static-pages/de/index.mdx index 90c5f6a9a..0fd448f5b 100644 --- a/app/static-pages/de/index.mdx +++ b/app/static-pages/de/index.mdx @@ -41,9 +41,9 @@ export const contentId = "home"; />
diff --git a/app/static-pages/en/index.mdx b/app/static-pages/en/index.mdx index 3252148b0..c3600380b 100644 --- a/app/static-pages/en/index.mdx +++ b/app/static-pages/en/index.mdx @@ -41,9 +41,9 @@ export const contentId = "home"; />
diff --git a/app/static-pages/it/index.mdx b/app/static-pages/it/index.mdx index 5cc70184b..fae06cbdf 100644 --- a/app/static-pages/it/index.mdx +++ b/app/static-pages/it/index.mdx @@ -42,9 +42,9 @@ export const contentId = "home"; />
diff --git a/app/templates/email/bug-report.ts b/app/templates/email/bug-report.ts index f7323c4d9..695f198dd 100644 --- a/app/templates/email/bug-report.ts +++ b/app/templates/email/bug-report.ts @@ -1,5 +1,7 @@ export const bugReportTemplates = { en: ` +Bug Report + Describe the bug A clear and concise description of what the bug is. If it seems connected to some data problem (missing values, wrong parsing), please first check the cube in Cube Validator (https://cube-validator.lindas.admin.ch/select) to see if everything is fine there. Please describe... @@ -71,6 +73,8 @@ Bitte beschreiben Sie... `, fr: ` +Rapport de bug + Description du bug Une description claire et concise du bug. S'il semble lié à un problème de données (valeurs manquantes, analyse incorrecte), veuillez d'abord vérifier le cube dans le Cube Validator (https://cube-validator.lindas.admin.ch/select) pour vous assurer que tout y est correct. Veuillez décrire... @@ -105,6 +109,8 @@ Veuillez décrire... `, it: ` +Segnalazione di bug + Descrizione del bug Una descrizione chiara e concisa del bug. Se sembra collegato a un problema di dati (valori mancanti, analisi errata), controllare prima il cubo nel Cube Validator (https://cube-validator.lindas.admin.ch/select) per assicurarsi che tutto sia a posto. Si prega di descrivere... diff --git a/app/templates/email/feature-request.ts b/app/templates/email/feature-request.ts index 4af6c8c55..285256df4 100644 --- a/app/templates/email/feature-request.ts +++ b/app/templates/email/feature-request.ts @@ -1,5 +1,7 @@ export const featureRequestTemplates = { en: ` +New Feature + Is your feature request related to a problem? A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] Please describe... @@ -19,12 +21,6 @@ Use cases and impact Examples of how the feature would be beneficial and an estimation of how much impact it would have. Please describe... ----------------------------------------------- -Environment -Please complete the following information. -- Visualize environment and version: [e.g., INT v3.12.0] -- Browser and version [e.g., Chrome 107] - ---------------------------------------------- Additional context Add any other context or screenshots about the feature request here. @@ -32,6 +28,8 @@ Please describe... `, de: ` +Neue Funktion + Bezieht sich Ihre Feature-Anfrage auf ein Problem? Eine klare und präzise Beschreibung des Problems. Z.B. Es frustriert mich immer, wenn [...] Bitte beschreiben Sie... @@ -51,12 +49,6 @@ Anwendungsfälle und Auswirkungen Beispiele dafür, wie die Funktion nützlich wäre und eine Einschätzung der Auswirkungen. Bitte beschreiben Sie... ----------------------------------------------- -Umgebung -Bitte vervollständigen Sie die folgenden Informationen. -- Visualize-Umgebung und Version: [z.B., INT v3.12.0] -- Browser und Version [z.B., Chrome 107] - ---------------------------------------------- Zusätzlicher Kontext Fügen Sie hier weitere Kontextinformationen oder Screenshots zur Feature-Anfrage hinzu. @@ -64,6 +56,8 @@ Bitte beschreiben Sie... `, fr: ` +Nouvelle fonctionnalité + Votre demande de fonctionnalité est-elle liée à un problème ? Une description claire et concise du problème. Ex. Je suis toujours frustré quand [...] Veuillez décrire... @@ -83,12 +77,6 @@ Cas d'utilisation et impact Exemples de l'utilité de la fonctionnalité et estimation de son impact. Veuillez décrire... ----------------------------------------------- -Environnement -Veuillez compléter les informations suivantes. -- Environnement et version Visualize : [ex. INT v3.12.0] -- Navigateur et version [ex. Chrome 107] - ---------------------------------------------- Contexte supplémentaire Ajoutez ici tout autre contexte ou captures d'écran concernant la demande de fonctionnalité. @@ -96,6 +84,8 @@ Veuillez décrire... `, it: ` +Nuova funzionalità + La sua richiesta di funzionalità è legata a un problema? Una descrizione chiara e concisa del problema. Es. Sono sempre frustrato quando [...] Si prega di descrivere... @@ -115,12 +105,6 @@ Casi d'uso e impatto Esempi di come la funzionalità sarebbe utile e una stima del suo impatto. Si prega di descrivere... ----------------------------------------------- -Ambiente -Si prega di completare le seguenti informazioni. -- Ambiente e versione Visualize: [es. INT v3.12.0] -- Browser e versione [es. Chrome 107] - ---------------------------------------------- Contesto aggiuntivo Aggiunga qui qualsiasi altro contesto o screenshot sulla richiesta di funzionalità. diff --git a/app/templates/email/index.ts b/app/templates/email/index.ts index 8b8b8d7de..a1726e278 100644 --- a/app/templates/email/index.ts +++ b/app/templates/email/index.ts @@ -10,12 +10,13 @@ export const createMailtoLink = ( options: { recipients: EmailRecipients; template: typeof bugReportTemplates; + subject: string; } ) => { const template = options.template[lang]; return `mailto:${options.recipients.to}?cc=${ options.recipients.cc - }&subject=${encodeURIComponent("Bug Report")}&body=${encodeURIComponent( + }&subject=${encodeURIComponent(options.subject)}&body=${encodeURIComponent( template )}`; };