diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
index 3fa7e43..9330ce9 100644
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@ -1500,6 +1500,7 @@ function App() {
const hasSelectedBirdLine = selectedBirdChart.points.length >= 2 && selectedBirdChart.path.length > 0;
const hasSelectedBirdHistoricalLine = selectedBirdChart.historicalPoints.length >= 2 && selectedBirdChart.historicalPath.length > 0;
+ const selectedBirdLatestChartPoint = selectedBirdChart.points[selectedBirdChart.points.length - 1] ?? null;
const flockWeeklyTrendItems = useMemo(() => {
return birds
@@ -4281,18 +4282,6 @@ function App() {
Species
{selectedBird.species}
-
Weight
Latest reading: {formatShortDate(selectedBird.latestRecordedOn)}
++ Latest: {formatWeight(selectedBird.latestWeightGrams)} + {selectedBird.latestRecordedOn ? ` on ${formatShortDate(selectedBird.latestRecordedOn)}` : ''} +
{selectedBirdTrendCopy}
diff --git a/frontend/src/index.css b/frontend/src/index.css index b1a7fed..a8e551c 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -892,6 +892,17 @@ textarea { font-size: 11px; } +.latest-weight-callout rect { + fill: rgba(255, 253, 249, 0.94); + stroke: rgba(31, 42, 42, 0.16); +} + +.latest-weight-callout text { + fill: var(--text); + font-size: 11px; + font-weight: 700; +} + .historical-weight-line, .historical-weight-dot { opacity: 0.48;