Skip to content

Commit b1ab3c8

Browse files
committed
fix: address review feedback - use token.fontSizeSM, rename Updated→RelativeTime, remove lockfile
1 parent 77b4f42 commit b1ab3c8

24 files changed

Lines changed: 25 additions & 32129 deletions

pnpm-lock.worktree-glistening-floating-yao.yaml

Lines changed: 0 additions & 32105 deletions
This file was deleted.

react/src/components/ModelCardDeployModal.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ModelCardDeployModalEndpointPollQuery } from '../__generated__/ModelCar
66
import { ModelCardDeployModalMutation } from '../__generated__/ModelCardDeployModalMutation.graphql';
77
import { ModelCardDeployModalQuery } from '../__generated__/ModelCardDeployModalQuery.graphql';
88
import { useCurrentProjectValue } from '../hooks/useCurrentProject';
9-
import { App, Form, Typography } from 'antd';
9+
import { App, Form, Typography, theme } from 'antd';
1010
import type { DefaultOptionType } from 'antd/es/select';
1111
import {
1212
BAIButton,
@@ -73,6 +73,7 @@ const ModelCardDeployModalContent: React.FC<
7373
'use memo';
7474

7575
const { t } = useTranslation();
76+
const { token } = theme.useToken();
7677
const { message } = App.useApp();
7778
const navigate = useNavigate();
7879
const { id: projectId, name: projectName } = useCurrentProjectValue();
@@ -301,7 +302,7 @@ const ModelCardDeployModalContent: React.FC<
301302
{option.data.description && (
302303
<Typography.Text
303304
type="secondary"
304-
style={{ fontSize: 12 }}
305+
style={{ fontSize: token.fontSizeSM }}
305306
ellipsis
306307
>
307308
{option.data.description}

react/src/pages/ModelStoreListPageV2.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const ModelCardV2Card: React.FC<{
125125
type="secondary"
126126
style={{ fontSize: token.fontSizeSM }}
127127
>
128-
{t('modelStore.Updated', {
128+
{t('modelStore.RelativeTime', {
129129
time: dayjs(
130130
modelCard.updatedAt ?? modelCard.createdAt,
131131
).fromNow(),

resources/i18n/de.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1624,6 +1624,7 @@
16241624
"PresetTooltip": "Ein Preset definiert die Ressourcenkonfiguration (CPU, Speicher, GPU), die zum Ausführen dieses Modells als Dienst verwendet wird.",
16251625
"ProjectNotFound": "Modellspeicher-Projekt nicht gefunden",
16261626
"ProjectNotFoundDescription": "Das MODEL_STORE-Projekt konnte nicht gefunden werden. Bitte wenden Sie sich an Ihren Administrator.",
1627+
"RelativeTime": "{{time}}",
16271628
"ResourceGroupTooltip": "Der Dienst wird in der ausgewählten Ressourcengruppe ausgeführt.",
16281629
"SearchModels": "Modelle suchen",
16291630
"ServiceDetails": "Servicedetails",
@@ -1634,7 +1635,6 @@
16341635
"SortByNameDesc": "Name (Z→A)",
16351636
"StartCommand": "Befehl starten",
16361637
"Task": "Aufgabe",
1637-
"Updated": "{{time}}",
16381638
"Version": "Ausführung"
16391639
},
16401640
"notification": {

resources/i18n/el.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1622,6 +1622,7 @@
16221622
"PresetTooltip": "Ένα preset ορίζει τη διαμόρφωση πόρων (CPU, μνήμη, GPU) που χρησιμοποιείται για την εκτέλεση αυτού του μοντέλου ως υπηρεσία.",
16231623
"ProjectNotFound": "Το έργο Model Store δεν βρέθηκε",
16241624
"ProjectNotFoundDescription": "Το έργο MODEL_STORE δεν βρέθηκε. Επικοινωνήστε με τον διαχειριστή σας.",
1625+
"RelativeTime": "{{time}}",
16251626
"ResourceGroupTooltip": "Η υπηρεσία θα εκτελεστεί στην επιλεγμένη ομάδα πόρων.",
16261627
"SearchModels": "Αναζήτηση μοντέλων",
16271628
"ServiceDetails": "Στοιχεία υπηρεσίας",
@@ -1632,7 +1633,6 @@
16321633
"SortByNameDesc": "Όνομα (Ω→Α)",
16331634
"StartCommand": "Εκκίνηση Εντολή",
16341635
"Task": "Εργασία",
1635-
"Updated": "{{time}}",
16361636
"Version": "Εκδοχή"
16371637
},
16381638
"notification": {

resources/i18n/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1625,6 +1625,7 @@
16251625
"PresetTooltip": "A preset defines the resource configuration (CPU, memory, GPU) used to run this model as a service.",
16261626
"ProjectNotFound": "Model Store project not found",
16271627
"ProjectNotFoundDescription": "The MODEL_STORE project could not be found. Please contact your administrator.",
1628+
"RelativeTime": "{{time}}",
16281629
"ResourceGroup": "Resource Group",
16291630
"ResourceGroupTooltip": "The service will run in the selected resource group.",
16301631
"Runtime": "Runtime",
@@ -1637,7 +1638,6 @@
16371638
"SortByNameDesc": "Name (Z→A)",
16381639
"StartCommand": "Start Command",
16391640
"Task": "Task",
1640-
"Updated": "{{time}}",
16411641
"Version": "Version"
16421642
},
16431643
"notification": {

resources/i18n/es.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1622,6 +1622,7 @@
16221622
"PresetTooltip": "Un preset define la configuración de recursos (CPU, memoria, GPU) utilizada para ejecutar este modelo como servicio.",
16231623
"ProjectNotFound": "Proyecto de Model Store no encontrado",
16241624
"ProjectNotFoundDescription": "No se pudo encontrar el proyecto MODEL_STORE. Contacte a su administrador.",
1625+
"RelativeTime": "{{time}}",
16251626
"ResourceGroupTooltip": "El servicio se ejecutará en el grupo de recursos seleccionado.",
16261627
"SearchModels": "Buscar modelos",
16271628
"ServiceDetails": "Detalles del servicio",
@@ -1632,7 +1633,6 @@
16321633
"SortByNameDesc": "Nombre (Z→A)",
16331634
"StartCommand": "Comando de inicio",
16341635
"Task": "Tarea",
1635-
"Updated": "{{time}}",
16361636
"Version": "Versión"
16371637
},
16381638
"notification": {

resources/i18n/fi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1622,6 +1622,7 @@
16221622
"PresetTooltip": "Esiasetus määrittää resurssikokoonpanon (CPU, muisti, GPU), jota käytetään tämän mallin palveluna suorittamiseen.",
16231623
"ProjectNotFound": "Model Store -projektia ei löydy",
16241624
"ProjectNotFoundDescription": "MODEL_STORE-projektia ei löytynyt. Ota yhteyttä järjestelmänvalvojaan.",
1625+
"RelativeTime": "{{time}}",
16251626
"ResourceGroupTooltip": "Palvelu suoritetaan valitussa resurssiryhmässä.",
16261627
"SearchModels": "Hae malleja",
16271628
"ServiceDetails": "Palvelun tiedot",
@@ -1632,7 +1633,6 @@
16321633
"SortByNameDesc": "Nimi (Ö→A)",
16331634
"StartCommand": "Käynnistä komento",
16341635
"Task": "Tehtävä",
1635-
"Updated": "{{time}}",
16361636
"Version": "Versio"
16371637
},
16381638
"notification": {

resources/i18n/fr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1625,6 +1625,7 @@
16251625
"PresetTooltip": "Un preset définit la configuration des ressources (CPU, mémoire, GPU) utilisée pour exécuter ce modèle en tant que service.",
16261626
"ProjectNotFound": "Projet Model Store introuvable",
16271627
"ProjectNotFoundDescription": "Le projet MODEL_STORE est introuvable. Veuillez contacter votre administrateur.",
1628+
"RelativeTime": "{{time}}",
16281629
"ResourceGroupTooltip": "Le service s'exécutera dans le groupe de ressources sélectionné.",
16291630
"SearchModels": "Rechercher des modèles",
16301631
"ServiceDetails": "Détails des services",
@@ -1635,7 +1636,6 @@
16351636
"SortByNameDesc": "Nom (Z→A)",
16361637
"StartCommand": "Démarrer la commande",
16371638
"Task": "Tâche",
1638-
"Updated": "{{time}}",
16391639
"Version": "Version"
16401640
},
16411641
"notification": {

resources/i18n/id.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1625,6 +1625,7 @@
16251625
"PresetTooltip": "Preset menentukan konfigurasi sumber daya (CPU, memori, GPU) yang digunakan untuk menjalankan model ini sebagai layanan.",
16261626
"ProjectNotFound": "Proyek Model Store tidak ditemukan",
16271627
"ProjectNotFoundDescription": "Proyek MODEL_STORE tidak dapat ditemukan. Silakan hubungi administrator Anda.",
1628+
"RelativeTime": "{{time}}",
16281629
"ResourceGroupTooltip": "Layanan akan berjalan di grup sumber daya yang dipilih.",
16291630
"SearchModels": "Model Pencarian",
16301631
"ServiceDetails": "Detail Layanan",
@@ -1635,7 +1636,6 @@
16351636
"SortByNameDesc": "Nama (Z→A)",
16361637
"StartCommand": "Mulai Perintah",
16371638
"Task": "Tugas",
1638-
"Updated": "{{time}}",
16391639
"Version": "Versi: kapan"
16401640
},
16411641
"notification": {

0 commit comments

Comments
 (0)