From 14b36d455ecd1c3380210d537ff0809e8a98840a Mon Sep 17 00:00:00 2001 From: Hillel Arnold Date: Tue, 3 Dec 2024 16:49:01 -0500 Subject: [PATCH 1/2] only fetch children if they are missing --- src/components/RecordsContent/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/RecordsContent/index.js b/src/components/RecordsContent/index.js index a1aa6707..e282b6c5 100644 --- a/src/components/RecordsContent/index.js +++ b/src/components/RecordsContent/index.js @@ -179,7 +179,9 @@ export const RecordsChild = props => { if (targetIsDirectDescendant) { /* 1 */ getInitialSiblings(itemUri, params) } else { /* 2 */ - getPages(appendParams(itemUri, {...params, limit: pageSize})) + if (!children.length) { + getPages(appendParams(itemUri, {...params, limit: pageSize, offset: 0})) + } } } }, [isParentCollection, itemUri, params, targetIsDirectDescendant]) From 149eba388996901ea98f323d14cea375bba45cbc Mon Sep 17 00:00:00 2001 From: Hillel Arnold Date: Tue, 3 Dec 2024 16:49:16 -0500 Subject: [PATCH 2/2] update locales --- src/locales/de/messages.po | 6 +++--- src/locales/en/messages.po | 6 +++--- src/locales/es/messages.po | 6 +++--- src/locales/fr/messages.po | 6 +++--- src/locales/it/messages.po | 6 +++--- src/locales/ja/messages.po | 6 +++--- src/locales/ko/messages.po | 6 +++--- src/locales/pt/messages.po | 6 +++--- src/locales/tr/messages.po | 6 +++--- src/locales/zh/messages.po | 6 +++--- 10 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/locales/de/messages.po b/src/locales/de/messages.po index 47c202e0..da104711 100644 --- a/src/locales/de/messages.po +++ b/src/locales/de/messages.po @@ -48,7 +48,7 @@ msgstr "{0, select, true {Minimap} other {Einführung in die Minimap}}" msgid "{0, select, true {Request {1} Items} other {Request {2} Item}}" msgstr "{0, select, true {Anfordern {1} Element} other {Anfordern {2} Elemente}}" -#: src/components/RecordsContent/index.js:232 +#: src/components/RecordsContent/index.js:234 msgid "{0, select, true {View} other {View Online}}" msgstr "{0, select, true {Ansehen} other {Online ansehen}}" @@ -214,7 +214,7 @@ msgid "<0>Last requested on: {0}" msgstr "<0>Zuletzt angefordert am: {0}" #. Records content is loading -#: src/components/RecordsContent/index.js:401 +#: src/components/RecordsContent/index.js:403 msgid "<0>Loading" msgstr "<0>Laden" @@ -385,7 +385,7 @@ msgstr "Schließen" #. switcher label text content #. Collection Content title #: src/components/ContextSwitcher/__tests__/ContextSwitcher.test.js:20 -#: src/components/RecordsContent/index.js:405 +#: src/components/RecordsContent/index.js:407 msgid "Collection Content" msgstr "Sammlung Inhalt" diff --git a/src/locales/en/messages.po b/src/locales/en/messages.po index 626f3dfa..aeaf06a0 100644 --- a/src/locales/en/messages.po +++ b/src/locales/en/messages.po @@ -48,7 +48,7 @@ msgstr "{0, select, true {Minimap} other {Introducing the Minimap}}" msgid "{0, select, true {Request {1} Items} other {Request {2} Item}}" msgstr "{0, select, true {Request {1} Items} other {Request {2} Item}}" -#: src/components/RecordsContent/index.js:232 +#: src/components/RecordsContent/index.js:234 msgid "{0, select, true {View} other {View Online}}" msgstr "{0, select, true {View} other {View Online}}" @@ -214,7 +214,7 @@ msgid "<0>Last requested on: {0}" msgstr "<0>Last requested on: {0}" #. Records content is loading -#: src/components/RecordsContent/index.js:401 +#: src/components/RecordsContent/index.js:403 msgid "<0>Loading" msgstr "<0>Loading" @@ -385,7 +385,7 @@ msgstr "Close" #. switcher label text content #. Collection Content title #: src/components/ContextSwitcher/__tests__/ContextSwitcher.test.js:20 -#: src/components/RecordsContent/index.js:405 +#: src/components/RecordsContent/index.js:407 msgid "Collection Content" msgstr "Collection Content" diff --git a/src/locales/es/messages.po b/src/locales/es/messages.po index bc70f81e..5f2381cf 100644 --- a/src/locales/es/messages.po +++ b/src/locales/es/messages.po @@ -48,7 +48,7 @@ msgstr "{0, select, true {Minimap} other {Introducción al minimapa}}" msgid "{0, select, true {Request {1} Items} other {Request {2} Item}}" msgstr "{0, select, true {Solicitar {1} Items} other {Solicitar {2} Item}}" -#: src/components/RecordsContent/index.js:232 +#: src/components/RecordsContent/index.js:234 msgid "{0, select, true {View} other {View Online}}" msgstr "{0, select, true {Ver} other {Ver en línea}}" @@ -214,7 +214,7 @@ msgid "<0>Last requested on: {0}" msgstr "<0>Última solicitud el: {0}" #. Records content is loading -#: src/components/RecordsContent/index.js:401 +#: src/components/RecordsContent/index.js:403 msgid "<0>Loading" msgstr "<0>Cargando" @@ -385,7 +385,7 @@ msgstr "Cerrar" #. switcher label text content #. Collection Content title #: src/components/ContextSwitcher/__tests__/ContextSwitcher.test.js:20 -#: src/components/RecordsContent/index.js:405 +#: src/components/RecordsContent/index.js:407 msgid "Collection Content" msgstr "Contenido de la colección" diff --git a/src/locales/fr/messages.po b/src/locales/fr/messages.po index 8ced1666..084f1cd9 100644 --- a/src/locales/fr/messages.po +++ b/src/locales/fr/messages.po @@ -48,7 +48,7 @@ msgstr "{0, select, true {Minimap} other {Introduction de la carte minimale}}" msgid "{0, select, true {Request {1} Items} other {Request {2} Item}}" msgstr "{0, select, true {Demander {1} éléments} other {Demander {2} élément}}" -#: src/components/RecordsContent/index.js:232 +#: src/components/RecordsContent/index.js:234 msgid "{0, select, true {View} other {View Online}}" msgstr "{0, select, true {Voir} other {Voir en ligne}}" @@ -214,7 +214,7 @@ msgid "<0>Last requested on: {0}" msgstr "<0>Dernière demande le : {0}" #. Records content is loading -#: src/components/RecordsContent/index.js:401 +#: src/components/RecordsContent/index.js:403 msgid "<0>Loading" msgstr "<0>Chargement" @@ -385,7 +385,7 @@ msgstr "Fermer" #. switcher label text content #. Collection Content title #: src/components/ContextSwitcher/__tests__/ContextSwitcher.test.js:20 -#: src/components/RecordsContent/index.js:405 +#: src/components/RecordsContent/index.js:407 msgid "Collection Content" msgstr "Contenu de la collection" diff --git a/src/locales/it/messages.po b/src/locales/it/messages.po index 454e2cd6..85db301b 100644 --- a/src/locales/it/messages.po +++ b/src/locales/it/messages.po @@ -48,7 +48,7 @@ msgstr "{0, select, true {Minimap} other {Introduzione della minimappa}}" msgid "{0, select, true {Request {1} Items} other {Request {2} Item}}" msgstr "{0, select, true {Richiesta {1} Elementi} other {Richiesta {2} Elemento}}" -#: src/components/RecordsContent/index.js:232 +#: src/components/RecordsContent/index.js:234 msgid "{0, select, true {View} other {View Online}}" msgstr "{0, select, true {Visualizzazione} other {Visualizza online}}" @@ -214,7 +214,7 @@ msgid "<0>Last requested on: {0}" msgstr "<0>Ultima richiesta il: {0}" #. Records content is loading -#: src/components/RecordsContent/index.js:401 +#: src/components/RecordsContent/index.js:403 msgid "<0>Loading" msgstr "<0>Caricamento" @@ -385,7 +385,7 @@ msgstr "Chiudi" #. switcher label text content #. Collection Content title #: src/components/ContextSwitcher/__tests__/ContextSwitcher.test.js:20 -#: src/components/RecordsContent/index.js:405 +#: src/components/RecordsContent/index.js:407 msgid "Collection Content" msgstr "Contenuto della collezione" diff --git a/src/locales/ja/messages.po b/src/locales/ja/messages.po index afbc0d25..511cd7a2 100644 --- a/src/locales/ja/messages.po +++ b/src/locales/ja/messages.po @@ -48,7 +48,7 @@ msgstr "{0, select, true {Minimap} other {ミニマップの紹介}}" msgid "{0, select, true {Request {1} Items} other {Request {2} Item}}" msgstr "{0, select, true {リクエスト {1} アイテム} other {リクエスト {2} アイテム}}" -#: src/components/RecordsContent/index.js:232 +#: src/components/RecordsContent/index.js:234 msgid "{0, select, true {View} other {View Online}}" msgstr "{0, select, true {観る} other {オンラインで見る}}" @@ -214,7 +214,7 @@ msgid "<0>Last requested on: {0}" msgstr "<0>最終リクエスト日{0}" #. Records content is loading -#: src/components/RecordsContent/index.js:401 +#: src/components/RecordsContent/index.js:403 msgid "<0>Loading" msgstr "<0>ローディング" @@ -385,7 +385,7 @@ msgstr "閉じる" #. switcher label text content #. Collection Content title #: src/components/ContextSwitcher/__tests__/ContextSwitcher.test.js:20 -#: src/components/RecordsContent/index.js:405 +#: src/components/RecordsContent/index.js:407 msgid "Collection Content" msgstr "コレクション内容" diff --git a/src/locales/ko/messages.po b/src/locales/ko/messages.po index 796c0b3a..c6ad8dad 100644 --- a/src/locales/ko/messages.po +++ b/src/locales/ko/messages.po @@ -48,7 +48,7 @@ msgstr "{0, select, true {Minimap} other {미니맵 소개}}" msgid "{0, select, true {Request {1} Items} other {Request {2} Item}}" msgstr "{0, select, true {요청 {1} 항목} other {요청 {2} 항목}}" -#: src/components/RecordsContent/index.js:232 +#: src/components/RecordsContent/index.js:234 msgid "{0, select, true {View} other {View Online}}" msgstr "{0, select, true {보다} other {온라인 보기}}" @@ -214,7 +214,7 @@ msgid "<0>Last requested on: {0}" msgstr "<0>마지막으로 요청된 시간: {0}" #. Records content is loading -#: src/components/RecordsContent/index.js:401 +#: src/components/RecordsContent/index.js:403 msgid "<0>Loading" msgstr "<0>로드 중" @@ -385,7 +385,7 @@ msgstr "닫기" #. switcher label text content #. Collection Content title #: src/components/ContextSwitcher/__tests__/ContextSwitcher.test.js:20 -#: src/components/RecordsContent/index.js:405 +#: src/components/RecordsContent/index.js:407 msgid "Collection Content" msgstr "컬렉션 콘텐츠" diff --git a/src/locales/pt/messages.po b/src/locales/pt/messages.po index ec2587c4..4a9373cb 100644 --- a/src/locales/pt/messages.po +++ b/src/locales/pt/messages.po @@ -48,7 +48,7 @@ msgstr "{0, select, true {Minimap} other {Apresentando o Minimapa}}" msgid "{0, select, true {Request {1} Items} other {Request {2} Item}}" msgstr "{0, select, true {Solicitar {1} Item} other {Solicitar Unid {2}}}" -#: src/components/RecordsContent/index.js:232 +#: src/components/RecordsContent/index.js:234 msgid "{0, select, true {View} other {View Online}}" msgstr "{0, select, true {Exibir} other {Exibir online}}" @@ -214,7 +214,7 @@ msgid "<0>Last requested on: {0}" msgstr "<0>Última solicitação em: {0}" #. Records content is loading -#: src/components/RecordsContent/index.js:401 +#: src/components/RecordsContent/index.js:403 msgid "<0>Loading" msgstr "<0>Carregamento" @@ -385,7 +385,7 @@ msgstr "Fechar" #. switcher label text content #. Collection Content title #: src/components/ContextSwitcher/__tests__/ContextSwitcher.test.js:20 -#: src/components/RecordsContent/index.js:405 +#: src/components/RecordsContent/index.js:407 msgid "Collection Content" msgstr "Conteúdo da coleção" diff --git a/src/locales/tr/messages.po b/src/locales/tr/messages.po index ab4bfaf3..6989ebcb 100644 --- a/src/locales/tr/messages.po +++ b/src/locales/tr/messages.po @@ -48,7 +48,7 @@ msgstr "{0, select, true {Minimap} other {Minimap Tanıtımı}}" msgid "{0, select, true {Request {1} Items} other {Request {2} Item}}" msgstr "{0, select, true {Materyalleri̇ Talep et {1}} other {Materyalleri̇ Talep et {2}}}" -#: src/components/RecordsContent/index.js:232 +#: src/components/RecordsContent/index.js:234 msgid "{0, select, true {View} other {View Online}}" msgstr "{0, select, true {Görüş} other {Çevri̇mi̇çi̇ Görüntüle}}" @@ -214,7 +214,7 @@ msgid "<0>Last requested on: {0}" msgstr "<0>Son talep tarihi: {0}" #. Records content is loading -#: src/components/RecordsContent/index.js:401 +#: src/components/RecordsContent/index.js:403 msgid "<0>Loading" msgstr "<0>Yükleniyor" @@ -385,7 +385,7 @@ msgstr "Kapat" #. switcher label text content #. Collection Content title #: src/components/ContextSwitcher/__tests__/ContextSwitcher.test.js:20 -#: src/components/RecordsContent/index.js:405 +#: src/components/RecordsContent/index.js:407 msgid "Collection Content" msgstr "Koleksiyon İçeriği" diff --git a/src/locales/zh/messages.po b/src/locales/zh/messages.po index 305e898a..eab933ef 100644 --- a/src/locales/zh/messages.po +++ b/src/locales/zh/messages.po @@ -48,7 +48,7 @@ msgstr "{0, select, true {Minimap} other {引入最小图}}" msgid "{0, select, true {Request {1} Items} other {Request {2} Item}}" msgstr "{0, select, true {请求 {1} 项目} other {请求 {2} 项目}}" -#: src/components/RecordsContent/index.js:232 +#: src/components/RecordsContent/index.js:234 msgid "{0, select, true {View} other {View Online}}" msgstr "{0, select, true {看法} other {在线查看}}" @@ -214,7 +214,7 @@ msgid "<0>Last requested on: {0}" msgstr "<0>最后申请日期{0}" #. Records content is loading -#: src/components/RecordsContent/index.js:401 +#: src/components/RecordsContent/index.js:403 msgid "<0>Loading" msgstr "<0>加载中" @@ -385,7 +385,7 @@ msgstr "关闭" #. switcher label text content #. Collection Content title #: src/components/ContextSwitcher/__tests__/ContextSwitcher.test.js:20 -#: src/components/RecordsContent/index.js:405 +#: src/components/RecordsContent/index.js:407 msgid "Collection Content" msgstr "收藏内容目录"