diff --git a/doc/changelog.md b/doc/changelog.md index e62d37761..47d48eddd 100644 --- a/doc/changelog.md +++ b/doc/changelog.md @@ -10,7 +10,7 @@ Syntax: `- short text describing the change _(Your Name)_` - Added Meeting Agenda&Notes for 15.04.2024 9:00 _(Markus Raab, Daniel)_ - _()_ -- _()_ +- Removed Blossoms from Frontend (Text from guided tour, awarding Blossoms at the end of the tour) _(Andrei Dinu)_ - _()_ - _()_ - _()_ diff --git a/frontend/src/config/i18n/de/blossoms.json b/frontend/src/config/i18n/de/blossoms.json deleted file mode 100644 index 2a105c410..000000000 --- a/frontend/src/config/i18n/de/blossoms.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "blossom_gained": "Glückwunsch, du hast ein neues Blossom verdient:", - "types": { - "graduation_day": "Willkommenszeremonie" - } -} diff --git a/frontend/src/config/i18n/de/guidedTour.json b/frontend/src/config/i18n/de/guidedTour.json index 18551762d..35aa8987f 100644 --- a/frontend/src/config/i18n/de/guidedTour.json +++ b/frontend/src/config/i18n/de/guidedTour.json @@ -18,7 +18,7 @@ "base_layer_title": "Basis-Ebene", "plants_layer_title": "Pflanzen-Ebene", "congratulations_title": "Einführungstour abgeschlossen", - "welcome_text": "
Herzlich willkommen, PermaplanTer*in!
Das ist der Map Editor, wo du deine Karte planen und verwalten wirst. PermaplanT belohnt nachhaltiges Gärtnern mit Blossoms.
Mit Abschluss dieser Einführungstour kannst du dir dein erstes Blossom verdienen.
", + "welcome_text": "Herzlich willkommen, PermaplanTer*in!
Das ist der Map Editor, wo du deine Karte planen und verwalten wirst.
", "toolbox_intro_text": "Die Toolbox bietet dir eine Reihe von nützlichen Werkzeugen für die Arbeit an deiner Karte.", "layers_intro_text": "Hier kannst du deine aktive Ebene auswählen, eine Ebene verstecken oder ihre Transparenz anpassen.", "timeline_intro_text": "Nutze die Zeitleiste, um dir für einen bestimmten Tag die Planung der Karte anzeigen zu lassen.Alle Änderungen, die du vornimmst, bekommen ihre Gültigkeit mit dem gewählten Tag.
", diff --git a/frontend/src/config/i18n/de/index.ts b/frontend/src/config/i18n/de/index.ts index ff1d962d0..04683803e 100644 --- a/frontend/src/config/i18n/de/index.ts +++ b/frontend/src/config/i18n/de/index.ts @@ -3,7 +3,6 @@ import auth from './auth.json'; import baseLayer from './baseLayer.json'; import baseLayerForm from './baseLayerForm.json'; import blog from './blog.json'; -import blossoms from './blossoms.json'; import common from './common.json'; import contact from './contact.json'; import drawings from './drawings.json'; @@ -70,7 +69,6 @@ export default { plantings, drawings, guidedTour, - blossoms, readOnly, toolboxTooltips, polygon, diff --git a/frontend/src/config/i18n/en/blossoms.json b/frontend/src/config/i18n/en/blossoms.json deleted file mode 100644 index b8cc3d93b..000000000 --- a/frontend/src/config/i18n/en/blossoms.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "blossom_gained": "Congratulations, you earned a new Blossom:", - "types": { - "graduation_day": "Graduation Day" - } -} diff --git a/frontend/src/config/i18n/en/guidedTour.json b/frontend/src/config/i18n/en/guidedTour.json index 31aa5a185..7d4d90ffc 100644 --- a/frontend/src/config/i18n/en/guidedTour.json +++ b/frontend/src/config/i18n/en/guidedTour.json @@ -18,7 +18,7 @@ "base_layer_title": "Base Layer", "plants_layer_title": "Plants Layer", "congratulations_title": "Congratulations", - "welcome_text": "Welcome to your first map, PermaplanTer. This is the Map Editor, where you will design and manage your map. PermaplanT rewards sustainable gardening with blossoms. With completion of this tour you will gain your first blossom.", + "welcome_text": "Welcome to your first map, PermaplanTer. This is the Map Editor, where you will design and manage your map.", "toolbox_intro_text": "The toolbox provides you with a variety of handy tools for your work on your map. Here you can undo and redo your actions. You can also toggle the grid from here.", "layers_intro_text": "The layers panel in the top right corner of the Map Editor lets you select your active layer, hide a specific layer or change its opacity with the blue slider.", "timeline_intro_text": "Use the timeline to change the current map date. It allows you to see the map at a certain date. Actions will refer to this date.", diff --git a/frontend/src/config/i18n/en/index.ts b/frontend/src/config/i18n/en/index.ts index 38b17fb79..5b5626935 100644 --- a/frontend/src/config/i18n/en/index.ts +++ b/frontend/src/config/i18n/en/index.ts @@ -3,7 +3,6 @@ import auth from './auth.json'; import baseLayer from './baseLayer.json'; import baseLayerForm from './baseLayerForm.json'; import blog from './blog.json'; -import blossoms from './blossoms.json'; import common from './common.json'; import contact from './contact.json'; import drawings from './drawings.json'; @@ -70,7 +69,6 @@ export default { plantings, drawings, guidedTour, - blossoms, readOnly, toolboxTooltips, polygon, diff --git a/frontend/src/features/map_planning/api/gainBlossom.ts b/frontend/src/features/map_planning/api/gainBlossom.ts deleted file mode 100644 index 61e299f1b..000000000 --- a/frontend/src/features/map_planning/api/gainBlossom.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { GainedBlossomsDto } from '@/api_types/definitions'; -import { createAPI } from '@/config/axios'; - -export async function gainBlossom(gained_blossom: GainedBlossomsDto) { - const http = createAPI(); - - try { - const response = await http.post