Skip to content

Commit 8eda9b8

Browse files
committed
Merge PR 26048 (map style failure notice) into the i18n batch
Claude-Session: https://claude.ai/code/session_01FpUtgwNrSiRgWJ8GAepPeP Co-authored-by: Claude <noreply@anthropic.com> # Conflicts: # packages/objectql/src/engine.ts # packages/services/service-automation/src/builtin/notify-node.ts # scripts/partition-test-shards.mjs # scripts/sdui-manifest.record.json # scripts/test-shard-timings.json
2 parents 0746279 + 79dcecf commit 8eda9b8

18 files changed

Lines changed: 481 additions & 38 deletions
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@object-ui/plugin-map': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
fix(plugin-map): a map whose style or tiles fail to load shows the record list with a translated notice, instead of a grey canvas under an English alert
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
- **`@object-ui/plugin-map`:** when MapLibre reports a style or tile load failure (an intranet or proxied deployment that cannot reach the tile host, an unreachable style URL), the map view now removes the map and lists its records in its place, the same list a browser without WebGL2 already got: searchable, and each row opens the record the way its marker did. A "Try the map again" button brings the map back. The notice above the list keeps MapLibre's reason and names a remedy that exists: a view with its own map style is told to check that URL, and a view on the public default style is told to ask an administrator to set a map style for the view. It no longer says the markers are "listed in the search box" or asks for a "custom map style for production use" setting that does not exist. That notice, the WebGL2 notice, the list's label and empty text, and the "records excluded for missing or invalid coordinates" count now read the translation bundle, so a zh-CN console shows them in Chinese.
12+
- **`@object-ui/i18n`:** eight new `element.map.*` keys in all ten packs.
13+
14+
What to do: nothing. A deployment-wide map style setting is not part of this change.

‎ui/packages/i18n/src/__tests__/ariaLabelLiteralCensus-12145.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ const BACKLOG: Declared[] = (
282282
['packages/plugin-list/src/ListView.tsx', ['Bulk actions']],
283283
[
284284
'packages/plugin-map/src/ObjectMap.tsx',
285-
['Locations', 'Show my location', 'Your location', 'Location details', 'Close details'],
285+
['Show my location', 'Your location', 'Location details', 'Close details'],
286286
],
287287
] as Array<[string, string[]]>
288288
).map(([file, names]) => ({ file, names, verdict: 'backlog' as const, reason: BACKLOG_REASON }));

‎ui/packages/i18n/src/locales/ar.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5068,6 +5068,14 @@ const ar = {
50685068
},
50695069
map: {
50705070
sourceUnresolved: "تعذّر تحديد مصدر بيانات هذه الخريطة",
5071+
invalidCoordinatesExcluded: "السجلات المستبعدة من الخريطة بسبب إحداثيات مفقودة أو غير صالحة: {{excluded}}",
5072+
styleFailedConfigured: "تعذّر تحميل الخريطة ({{reason}}). السجلات مدرجة أدناه؛ تحقّق من عنوان URL لنمط الخريطة المحدد في طريقة العرض هذه.",
5073+
styleFailedDefault: "تعذّر تحميل الخريطة ({{reason}}). السجلات مدرجة أدناه؛ تعذّر تحميل مربعات الخريطة العامة الافتراضية هنا، لذا اطلب من المسؤول تعيين نمط خريطة لطريقة العرض هذه.",
5074+
styleFailedUnknownReason: "تعذّر تحميل نمط الخريطة أو مربعاتها",
5075+
webgl2Unavailable: "تعذّر تحميل الخريطة (هذا المتصفح لا يوفّر WebGL2 الذي تحتاجه الخريطة). السجلات مدرجة أدناه؛ فعّل تسريع الأجهزة أو استخدم متصفحًا يدعم WebGL2 لعرض الخريطة.",
5076+
retry: "إعادة محاولة تحميل الخريطة",
5077+
listLabel: "المواقع",
5078+
listEmpty: "لا توجد مواقع لعرضها.",
50715079
},
50725080
timeline: {
50735081
sourceUnresolved: "تعذّر تحديد مصدر بيانات هذا المخطط الزمني",

‎ui/packages/i18n/src/locales/de.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4614,6 +4614,14 @@ const de = {
46144614
},
46154615
map: {
46164616
sourceUnresolved: "Die Datenquelle dieser Karte konnte nicht aufgelöst werden",
4617+
invalidCoordinatesExcluded: "Wegen fehlender oder ungültiger Koordinaten nicht auf der Karte angezeigte Datensätze: {{excluded}}",
4618+
styleFailedConfigured: "Die Karte konnte nicht geladen werden ({{reason}}). Die Datensätze sind unten aufgelistet; prüfen Sie die für diese Ansicht festgelegte Kartenstil-URL.",
4619+
styleFailedDefault: "Die Karte konnte nicht geladen werden ({{reason}}). Die Datensätze sind unten aufgelistet; die öffentlichen Standard-Kartenkacheln konnten hier nicht geladen werden. Bitten Sie Ihren Administrator, für diese Ansicht einen Kartenstil festzulegen.",
4620+
styleFailedUnknownReason: "Kartenstil oder Kacheln konnten nicht geladen werden",
4621+
webgl2Unavailable: "Die Karte konnte nicht geladen werden (dieser Browser unterstützt kein WebGL2, das die Karte benötigt). Die Datensätze sind unten aufgelistet; aktivieren Sie die Hardwarebeschleunigung oder verwenden Sie einen Browser mit WebGL2, um die Karte zu sehen.",
4622+
retry: "Karte erneut laden",
4623+
listLabel: "Orte",
4624+
listEmpty: "Keine Orte vorhanden.",
46174625
},
46184626
timeline: {
46194627
sourceUnresolved: "Die Datenquelle dieser Zeitleiste konnte nicht aufgelöst werden",

‎ui/packages/i18n/src/locales/en.ts‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5411,6 +5411,18 @@ const en = {
54115411
},
54125412
map: {
54135413
sourceUnresolved: 'This map’s data source could not be resolved',
5414+
// objectstack#25889 — the map view's own notices. Both style failures
5415+
// fill `{{reason}}` with MapLibre's message, or `styleFailedUnknownReason`
5416+
// when it gave none; the excluded count reads "Label: N" so no key needs
5417+
// a plural family.
5418+
invalidCoordinatesExcluded: 'Records excluded from the map for missing or invalid coordinates: {{excluded}}',
5419+
styleFailedConfigured: 'Map failed to load ({{reason}}). The records are listed below; check the map style URL set on this view.',
5420+
styleFailedDefault: 'Map failed to load ({{reason}}). The records are listed below; the public default map tiles could not be loaded here, so ask your administrator to set a map style for this view.',
5421+
styleFailedUnknownReason: 'the map style or tiles could not be loaded',
5422+
webgl2Unavailable: 'Map failed to load (this browser does not provide WebGL2, which the map needs). The records are listed below; turn on hardware acceleration or use a browser with WebGL2 to see the map.',
5423+
retry: 'Try the map again',
5424+
listLabel: 'Locations',
5425+
listEmpty: 'No locations to list.',
54145426
},
54155427
timeline: {
54165428
sourceUnresolved: 'This timeline’s data source could not be resolved',

‎ui/packages/i18n/src/locales/es.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4727,6 +4727,14 @@ const es = {
47274727
},
47284728
map: {
47294729
sourceUnresolved: "No se pudo resolver el origen de datos de este mapa",
4730+
invalidCoordinatesExcluded: "Registros excluidos del mapa por coordenadas ausentes o no válidas: {{excluded}}",
4731+
styleFailedConfigured: "No se pudo cargar el mapa ({{reason}}). Los registros aparecen a continuación; revise la URL del estilo de mapa configurada en esta vista.",
4732+
styleFailedDefault: "No se pudo cargar el mapa ({{reason}}). Los registros aparecen a continuación; aquí no se pudieron cargar los mosaicos de mapa públicos predeterminados, así que pida a su administrador que configure un estilo de mapa para esta vista.",
4733+
styleFailedUnknownReason: "no se pudieron cargar el estilo o los mosaicos del mapa",
4734+
webgl2Unavailable: "No se pudo cargar el mapa (este navegador no admite WebGL2, que el mapa necesita). Los registros aparecen a continuación; active la aceleración por hardware o use un navegador con WebGL2 para ver el mapa.",
4735+
retry: "Reintentar el mapa",
4736+
listLabel: "Ubicaciones",
4737+
listEmpty: "No hay ubicaciones para mostrar.",
47304738
},
47314739
timeline: {
47324740
sourceUnresolved: "No se pudo resolver el origen de datos de esta línea de tiempo",

‎ui/packages/i18n/src/locales/fr.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4723,6 +4723,14 @@ const fr = {
47234723
},
47244724
map: {
47254725
sourceUnresolved: "La source de données de cette carte n’a pas pu être résolue",
4726+
invalidCoordinatesExcluded: "Enregistrements exclus de la carte (coordonnées manquantes ou invalides) : {{excluded}}",
4727+
styleFailedConfigured: "Échec du chargement de la carte ({{reason}}). Les enregistrements sont listés ci-dessous ; vérifiez l’URL du style de carte défini sur cette vue.",
4728+
styleFailedDefault: "Échec du chargement de la carte ({{reason}}). Les enregistrements sont listés ci-dessous ; les tuiles de carte publiques par défaut n’ont pas pu être chargées ici, demandez à votre administrateur de définir un style de carte pour cette vue.",
4729+
styleFailedUnknownReason: "le style ou les tuiles de la carte n’ont pas pu être chargés",
4730+
webgl2Unavailable: "Échec du chargement de la carte (ce navigateur ne prend pas en charge WebGL2, nécessaire à la carte). Les enregistrements sont listés ci-dessous ; activez l’accélération matérielle ou utilisez un navigateur compatible WebGL2 pour afficher la carte.",
4731+
retry: "Réessayer la carte",
4732+
listLabel: "Lieux",
4733+
listEmpty: "Aucun lieu à afficher.",
47264734
},
47274735
timeline: {
47284736
sourceUnresolved: "La source de données de cette chronologie n’a pas pu être résolue",

‎ui/packages/i18n/src/locales/ja.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4615,6 +4615,14 @@ const ja = {
46154615
},
46164616
map: {
46174617
sourceUnresolved: "この地図のデータソースを解決できませんでした",
4618+
invalidCoordinatesExcluded: "座標が未設定または無効なため地図から除外されたレコード:{{excluded}}",
4619+
styleFailedConfigured: "地図を読み込めませんでした({{reason}})。レコードは下に一覧表示しています。このビューに設定された地図スタイルの URL を確認してください。",
4620+
styleFailedDefault: "地図を読み込めませんでした({{reason}})。レコードは下に一覧表示しています。公開のデフォルト地図タイルをここでは読み込めないため、このビューの地図スタイルを設定するよう管理者に依頼してください。",
4621+
styleFailedUnknownReason: "地図スタイルまたはタイルを読み込めませんでした",
4622+
webgl2Unavailable: "地図を読み込めませんでした(このブラウザーは地図に必要な WebGL2 に対応していません)。レコードは下に一覧表示しています。ハードウェアアクセラレーションを有効にするか、WebGL2 対応のブラウザーで地図を表示してください。",
4623+
retry: "地図を再読み込み",
4624+
listLabel: "場所",
4625+
listEmpty: "表示する場所はありません。",
46184626
},
46194627
timeline: {
46204628
sourceUnresolved: "このタイムラインのデータソースを解決できませんでした",

‎ui/packages/i18n/src/locales/ko.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4612,6 +4612,14 @@ const ko = {
46124612
},
46134613
map: {
46144614
sourceUnresolved: "이 지도의 데이터 소스를 확인할 수 없습니다",
4615+
invalidCoordinatesExcluded: "좌표가 없거나 잘못되어 지도에서 제외된 레코드: {{excluded}}",
4616+
styleFailedConfigured: "지도를 불러오지 못했습니다({{reason}}). 레코드는 아래에 나열되어 있습니다. 이 보기에 설정된 지도 스타일 URL을 확인하세요.",
4617+
styleFailedDefault: "지도를 불러오지 못했습니다({{reason}}). 레코드는 아래에 나열되어 있습니다. 여기에서는 공개 기본 지도 타일을 불러올 수 없으므로 관리자에게 이 보기의 지도 스타일을 설정해 달라고 요청하세요.",
4618+
styleFailedUnknownReason: "지도 스타일 또는 타일을 불러올 수 없습니다",
4619+
webgl2Unavailable: "지도를 불러오지 못했습니다(이 브라우저는 지도에 필요한 WebGL2를 지원하지 않습니다). 레코드는 아래에 나열되어 있습니다. 하드웨어 가속을 켜거나 WebGL2를 지원하는 브라우저에서 지도를 확인하세요.",
4620+
retry: "지도 다시 시도",
4621+
listLabel: "위치",
4622+
listEmpty: "표시할 위치가 없습니다.",
46154623
},
46164624
timeline: {
46174625
sourceUnresolved: "이 타임라인의 데이터 소스를 확인할 수 없습니다",

‎ui/packages/i18n/src/locales/pt.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4722,6 +4722,14 @@ const pt = {
47224722
},
47234723
map: {
47244724
sourceUnresolved: "Não foi possível resolver a fonte de dados deste mapa",
4725+
invalidCoordinatesExcluded: "Registros excluídos do mapa por coordenadas ausentes ou inválidas: {{excluded}}",
4726+
styleFailedConfigured: "Não foi possível carregar o mapa ({{reason}}). Os registros estão listados abaixo; verifique a URL do estilo de mapa definida nesta visualização.",
4727+
styleFailedDefault: "Não foi possível carregar o mapa ({{reason}}). Os registros estão listados abaixo; não foi possível carregar aqui os blocos de mapa públicos padrão, então peça ao seu administrador que defina um estilo de mapa para esta visualização.",
4728+
styleFailedUnknownReason: "não foi possível carregar o estilo ou os blocos do mapa",
4729+
webgl2Unavailable: "Não foi possível carregar o mapa (este navegador não oferece WebGL2, necessário para o mapa). Os registros estão listados abaixo; ative a aceleração de hardware ou use um navegador com WebGL2 para ver o mapa.",
4730+
retry: "Tentar carregar o mapa novamente",
4731+
listLabel: "Locais",
4732+
listEmpty: "Nenhum local para listar.",
47254733
},
47264734
timeline: {
47274735
sourceUnresolved: "Não foi possível resolver a fonte de dados desta linha do tempo",

0 commit comments

Comments
 (0)