diff --git a/src/features/atlas/AtlasCard.tsx b/src/features/atlas/AtlasCard.tsx index c244c7a..4336f2d 100644 --- a/src/features/atlas/AtlasCard.tsx +++ b/src/features/atlas/AtlasCard.tsx @@ -95,8 +95,8 @@ export function AtlasCard({ {name || formatHex(node?.id ?? pin.id)} {node && {node.nodeTypeName}} - {node?.stale === false && {t("observerPage.statusRecent")}} - {node?.stale === true && {t("observerPage.statusStale")}} + {node?.stale === false && {t("atlas.recent")}} + {node?.stale === true && {t("atlas.stale")}} ); diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index d9d97e9..58dcca3 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -987,6 +987,8 @@ "lastSeen": "Last seen", "meanHops": "Mean hops", "heardBy": "Heard by", + "recent": "Recent", + "stale": "Stale", "observers_one": "{{count}} observer heard the latest packet", "observers_other": "{{count}} observers heard the latest packet", "noReports": "No observations in this window.", diff --git a/src/i18n/locales/fr.json b/src/i18n/locales/fr.json index 0b03911..086a497 100644 --- a/src/i18n/locales/fr.json +++ b/src/i18n/locales/fr.json @@ -989,6 +989,8 @@ "lastSeen": "Vu pour la dernière fois", "meanHops": "Sauts moyens", "heardBy": "Entendu par", + "recent": "Récent", + "stale": "Périmé", "observers_one": "{{count}} observateur a entendu le dernier paquet", "observers_many": "{{count}} observateurs ont entendu le dernier paquet", "observers_other": "{{count}} observateurs ont entendu le dernier paquet", diff --git a/tests/features/atlas/AtlasCard.test.tsx b/tests/features/atlas/AtlasCard.test.tsx index cac643e..9c100d6 100644 --- a/tests/features/atlas/AtlasCard.test.tsx +++ b/tests/features/atlas/AtlasCard.test.tsx @@ -56,7 +56,7 @@ describe("AtlasCard", () => { mount(); expect(await screen.findByRole("button", { name: "Renamed repeater" })).toBeInTheDocument(); expect(screen.getByText("REPEATER")).toBeInTheDocument(); - expect(screen.getByText("Recent status")).toBeInTheDocument(); + expect(screen.getByText("Recent")).toBeInTheDocument(); expect(screen.getByText("Observations")).toBeInTheDocument(); expect(screen.getByText("Mean SNR")).toBeInTheDocument(); expect(screen.getByText("0.0 dB")).toBeInTheDocument(); @@ -71,7 +71,7 @@ describe("AtlasCard", () => { it("shows the stale badge and the server's type name even when the type is unknown", async () => { vi.mocked(api.getNode).mockResolvedValue({ ...node, stale: true, nodeType: 9, nodeTypeName: "WEIRD" }); mount(); - expect(await screen.findByText("Status is stale")).toBeInTheDocument(); + expect(await screen.findByText("Stale")).toBeInTheDocument(); expect(screen.getByText("WEIRD")).toBeInTheDocument(); expect(screen.queryByText(/atlas\.roles/)).not.toBeInTheDocument(); });