Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/ui/src/components/text-shimmer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ export const TextShimmer = <T extends ValidComponent = "span">(props: {
})

const shimmerSize = createMemo(() => {
const len = Math.max(props.text.length, 1)
const len = Math.max((props.text ?? "").length, 1)
return Math.max(300, Math.round(200 + 1400 / len))
})

// duration = len × (size - 1) / velocity → uniform perceived sweep speed
const VELOCITY = 0.01375 // ch per ms, ~10% faster than original 0.0125 baseline
const shimmerDuration = createMemo(() => {
const len = Math.max(props.text.length, 1)
const len = Math.max((props.text ?? "").length, 1)
const s = shimmerSize() / 100
return Math.max(1000, Math.min(2500, Math.round((len * (s - 1)) / VELOCITY)))
})
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/i18n/ar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export const dict = {
"ui.tool.questions": "أسئلة",
"ui.tool.agent": "وكيل {{type}}",
"ui.tool.agent.default": "وكيل",
"ui.tool.skill": "مهارة",

"ui.common.file.one": "ملف",
"ui.common.file.other": "ملفات",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/i18n/br.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export const dict = {
"ui.tool.questions": "Perguntas",
"ui.tool.agent": "Agente {{type}}",
"ui.tool.agent.default": "Agente",
"ui.tool.skill": "Habilidade",

"ui.common.file.one": "arquivo",
"ui.common.file.other": "arquivos",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/i18n/bs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const dict = {
"ui.tool.questions": "Pitanja",
"ui.tool.agent": "{{type}} agent",
"ui.tool.agent.default": "agent",
"ui.tool.skill": "Vještina",

"ui.common.file.one": "datoteka",
"ui.common.file.other": "datoteke",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/i18n/da.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export const dict = {
"ui.tool.questions": "Spørgsmål",
"ui.tool.agent": "{{type}} Agent",
"ui.tool.agent.default": "Agent",
"ui.tool.skill": "Skill",

"ui.common.file.one": "fil",
"ui.common.file.other": "filer",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/i18n/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export const dict = {
"ui.tool.questions": "Fragen",
"ui.tool.agent": "{{type}} Agent",
"ui.tool.agent.default": "Agent",
"ui.tool.skill": "Skill",

"ui.common.file.one": "Datei",
"ui.common.file.other": "Dateien",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/i18n/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export const dict: Record<string, string> = {
"ui.tool.questions": "Questions",
"ui.tool.agent": "{{type}} Agent",
"ui.tool.agent.default": "Agent",
"ui.tool.skill": "Skill",

"ui.common.file.one": "file",
"ui.common.file.other": "files",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/i18n/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export const dict = {
"ui.tool.questions": "Preguntas",
"ui.tool.agent": "Agente {{type}}",
"ui.tool.agent.default": "Agente",
"ui.tool.skill": "Habilidad",

"ui.common.file.one": "archivo",
"ui.common.file.other": "archivos",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/i18n/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export const dict = {
"ui.tool.questions": "Questions",
"ui.tool.agent": "Agent {{type}}",
"ui.tool.agent.default": "Agent",
"ui.tool.skill": "Compétence",

"ui.common.file.one": "fichier",
"ui.common.file.other": "fichiers",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/i18n/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export const dict = {
"ui.tool.questions": "質問",
"ui.tool.agent": "{{type}}エージェント",
"ui.tool.agent.default": "エージェント",
"ui.tool.skill": "スキル",

"ui.common.file.one": "ファイル",
"ui.common.file.other": "ファイル",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/i18n/ko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export const dict = {
"ui.tool.questions": "질문",
"ui.tool.agent": "{{type}} 에이전트",
"ui.tool.agent.default": "에이전트",
"ui.tool.skill": "스킬",

"ui.common.file.one": "파일",
"ui.common.file.other": "파일",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/i18n/no.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export const dict: Record<Keys, string> = {
"ui.tool.questions": "Spørsmål",
"ui.tool.agent": "{{type}}-agent",
"ui.tool.agent.default": "agent",
"ui.tool.skill": "Ferdighet",

"ui.common.file.one": "fil",
"ui.common.file.other": "filer",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/i18n/pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export const dict = {
"ui.tool.questions": "Pytania",
"ui.tool.agent": "Agent {{type}}",
"ui.tool.agent.default": "Agent",
"ui.tool.skill": "Umiejętność",

"ui.common.file.one": "plik",
"ui.common.file.other": "pliki",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/i18n/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export const dict = {
"ui.tool.questions": "Вопросы",
"ui.tool.agent": "Агент {{type}}",
"ui.tool.agent.default": "Агент",
"ui.tool.skill": "Навык",

"ui.common.file.one": "файл",
"ui.common.file.other": "файлов",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/i18n/th.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export const dict = {
"ui.tool.questions": "คำถาม",
"ui.tool.agent": "เอเจนต์ {{type}}",
"ui.tool.agent.default": "เอเจนต์",
"ui.tool.skill": "ทักษะ",

"ui.common.file.one": "ไฟล์",
"ui.common.file.other": "ไฟล์",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/i18n/tr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export const dict = {
"ui.tool.questions": "Sorular",
"ui.tool.agent": "{{type}} Ajan",
"ui.tool.agent.default": "Ajan",
"ui.tool.skill": "Beceri",

"ui.common.file.one": "dosya",
"ui.common.file.other": "dosya",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/i18n/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const dict = {
"ui.tool.questions": "问题",
"ui.tool.agent": "{{type}} 智能体",
"ui.tool.agent.default": "智能体",
"ui.tool.skill": "技能",

"ui.common.file.one": "个文件",
"ui.common.file.other": "个文件",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/i18n/zht.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const dict = {
"ui.tool.questions": "問題",
"ui.tool.agent": "{{type}} 代理程式",
"ui.tool.agent.default": "代理程式",
"ui.tool.skill": "技能",

"ui.common.file.one": "個檔案",
"ui.common.file.other": "個檔案",
Expand Down