From cf53c791ad2374023bb57f531b42cb595499caef Mon Sep 17 00:00:00 2001
From: sepeterson <10458078+sepeterson@users.noreply.github.com>
Date: Thu, 20 Nov 2025 17:59:57 -0600
Subject: [PATCH] MOB-512 hide confidence metrics
---
src/components/Match/MatchHeader.tsx | 23 +++++++++++--------
.../SavedMatch/SavedMatch.tsx | 8 +++----
2 files changed, 16 insertions(+), 15 deletions(-)
diff --git a/src/components/Match/MatchHeader.tsx b/src/components/Match/MatchHeader.tsx
index 51fb47733..b7dad0c44 100644
--- a/src/components/Match/MatchHeader.tsx
+++ b/src/components/Match/MatchHeader.tsx
@@ -19,9 +19,10 @@ interface Props {
score?: number;
taxon: RealmTaxon;
};
+ hideObservationStatus?: boolean
}
-const MatchHeader = ( { topSuggestion }: Props ) => {
+const MatchHeader = ( { topSuggestion, hideObservationStatus }: Props ) => {
const { t } = useTranslation( );
const taxon = topSuggestion?.taxon;
@@ -89,17 +90,19 @@ const MatchHeader = ( { topSuggestion }: Props ) => {
return (
- {generateCongratulatoryText( )}
+ {!hideObservationStatus && {generateCongratulatoryText( )}}
{showSuggestedTaxon( )}
-
-
- {t( "X-percent", { count: confidence } )}
-
-
- {t( "Confidence--label" )}
-
-
+ { !hideObservationStatus && (
+
+
+ {t( "X-percent", { count: confidence } )}
+
+
+ {t( "Confidence--label" )}
+
+
+ )}
);
diff --git a/src/components/ObsDetailsDefaultMode/SavedMatch/SavedMatch.tsx b/src/components/ObsDetailsDefaultMode/SavedMatch/SavedMatch.tsx
index 15a584fd5..c3f2f3a93 100644
--- a/src/components/ObsDetailsDefaultMode/SavedMatch/SavedMatch.tsx
+++ b/src/components/ObsDetailsDefaultMode/SavedMatch/SavedMatch.tsx
@@ -32,17 +32,15 @@ const SavedMatch = ( {
const latitude = observation?.privateLatitude || observation?.latitude;
const { taxon } = observation;
- /* left todo
- - simplify match header
- - add edit pencil
- - fix type errors
+ /*
+ todo: globalize class strings and maybe some of the resused container functions
*/
return (
-
+