From ddfb7ad7ad7f603c3a527321ebe7cec9f8b8ffc3 Mon Sep 17 00:00:00 2001 From: Maurice Date: Mon, 30 Nov 2026 14:50:40 +0100 Subject: [PATCH] fix(studio): read a finer country outline only as a plain path The trip PDF writes an outline's d into an SVG string as it stands. A detail file that carries anything but moves, lines and closes in numbers (a stale cache, a proxy in between) is now refused, and the coarse outline is drawn. --- client/src/components/Studio/countryDetail.test.ts | 2 ++ client/src/components/Studio/countryDetail.ts | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/client/src/components/Studio/countryDetail.test.ts b/client/src/components/Studio/countryDetail.test.ts index 2e01989df..38bc0d725 100644 --- a/client/src/components/Studio/countryDetail.test.ts +++ b/client/src/components/Studio/countryDetail.test.ts @@ -46,6 +46,8 @@ describe('a file', () => { expect(readCountryDetail(null)).toBeNull(); expect(readCountryDetail('M0 0')).toBeNull(); expect(readCountryDetail({ ...SHAPE, d: '' })).toBeNull(); + expect(readCountryDetail({ ...SHAPE, d: 'M0 0"/>