From 6121131a001f33083b393406fd994f6142d750e1 Mon Sep 17 00:00:00 2001 From: Samuel Therrien Date: Tue, 3 Dec 2024 17:10:56 -0500 Subject: [PATCH] More various fixes - Text that shouldn't always be uppercase - Use username in user management page - Default map zoom is now more zoomed out --- canopeum_frontend/src/components/social/PostCard.tsx | 2 +- canopeum_frontend/src/locale/en/analytics.ts | 1 - canopeum_frontend/src/locale/fr/analytics.ts | 1 - canopeum_frontend/src/pages/MapPage.tsx | 2 +- canopeum_frontend/src/pages/UserManagement.tsx | 2 +- 5 files changed, 3 insertions(+), 5 deletions(-) diff --git a/canopeum_frontend/src/components/social/PostCard.tsx b/canopeum_frontend/src/components/social/PostCard.tsx index 67a316d86..ca3956abc 100644 --- a/canopeum_frontend/src/components/social/PostCard.tsx +++ b/canopeum_frontend/src/components/social/PostCard.tsx @@ -99,7 +99,7 @@ const PostCard = ({ post, showActions }: Props) => { />
-
+
{post.site.name}
diff --git a/canopeum_frontend/src/locale/en/analytics.ts b/canopeum_frontend/src/locale/en/analytics.ts index 0cf0d73f2..6f34eecb0 100644 --- a/canopeum_frontend/src/locale/en/analytics.ts +++ b/canopeum_frontend/src/locale/en/analytics.ts @@ -23,7 +23,6 @@ export default { 'table-row-13': 'Types of seeds collected', 'last-update': 'Last Update', visitors: 'Visitors', - sponsored: 'Sponsored', 'unnamed-site': 'Unnamed site', 'site-save-success': 'Site saved successfully', 'site-save-error': 'Error saving Site', diff --git a/canopeum_frontend/src/locale/fr/analytics.ts b/canopeum_frontend/src/locale/fr/analytics.ts index 093a43b0b..e6bea5c83 100644 --- a/canopeum_frontend/src/locale/fr/analytics.ts +++ b/canopeum_frontend/src/locale/fr/analytics.ts @@ -25,7 +25,6 @@ export default { 'table-row-13': 'Types de graines collectées', 'last-update': 'Dernière Mise à Jour', visitors: 'Visiteurs', - sponsored: 'Sponsorisé', 'unnamed-site': 'Site sans nom', 'site-save-success': 'Site saved successfully', 'site-save-error': 'Error saving Site', diff --git a/canopeum_frontend/src/pages/MapPage.tsx b/canopeum_frontend/src/pages/MapPage.tsx index 15a421eae..f500f5e8c 100644 --- a/canopeum_frontend/src/pages/MapPage.tsx +++ b/canopeum_frontend/src/pages/MapPage.tsx @@ -14,7 +14,7 @@ import { getSiteTypeIconKey, type SiteTypeID } from '@models/SiteType' import type { SiteMap } from '@services/api' import { getApiBaseUrl } from '@services/apiSettings' -const PIN_FOCUS_ZOOM_LEVEL = 15 +const PIN_FOCUS_ZOOM_LEVEL = 12 const MAP_DISTANCE_ZOOM_MULTIPLIER = 20 /** diff --git a/canopeum_frontend/src/pages/UserManagement.tsx b/canopeum_frontend/src/pages/UserManagement.tsx index 33d30d871..4acbc1966 100644 --- a/canopeum_frontend/src/pages/UserManagement.tsx +++ b/canopeum_frontend/src/pages/UserManagement.tsx @@ -78,7 +78,7 @@ const UserManagement = () => {
-

CANOPEUM

+

{currentUser?.username}

{tabsDisplay()}