Skip to content

Commit 6db1304

Browse files
authored
ui: Bump packages + address build warnings (ggml-org#23300)
* chore: Update vulnerable packages * chore: Formatting * refactor: Update Tailwind CSS imports * ci: Use `ubuntu-latest` for Unit/E2E UI tests * chore: Bump package * fix: Add missing tag * refactor: Enums files naming
1 parent 4b262ab commit 6db1304

29 files changed

Lines changed: 138 additions & 129 deletions

.github/workflows/ui-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
ui-checks:
4242
name: UI Checks
4343
needs: ui-build
44-
runs-on: ubuntu-slim
44+
runs-on: ubuntu-latest
4545
continue-on-error: true
4646
steps:
4747
- name: Checkout code
@@ -93,7 +93,7 @@ jobs:
9393
e2e-tests:
9494
name: E2E Tests
9595
needs: ui-build
96-
runs-on: ubuntu-slim
96+
runs-on: ubuntu-latest
9797
steps:
9898
- name: Checkout code
9999
uses: actions/checkout@v6

tools/ui/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ vite.config.ts.timestamp-*
2525

2626
*storybook.log
2727
storybook-static
28-
*.code-workspace
28+
*.code-workspace

tools/ui/eslint.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,15 @@ export default ts.config(
2020
prettier,
2121
...svelte.configs.prettier,
2222
{
23-
languageOptions: {
24-
globals: { ...globals.browser, ...globals.node }
25-
},
23+
languageOptions: { globals: { ...globals.browser, ...globals.node } },
2624
rules: {
2725
// typescript-eslint strongly recommend that you do not use the no-undef lint rule on TypeScript projects.
2826
// see: https://typescript-eslint.io/troubleshooting/faqs/eslint/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
2927
'no-undef': 'off',
3028
'svelte/no-at-html-tags': 'off',
3129
// This app uses hash-based routing (#/) where resolve() from $app/paths does not apply
3230
'svelte/no-navigation-without-resolve': 'off',
31+
3332
// Enforce empty line at end of file
3433
'eol-last': 'error'
3534
}

tools/ui/package-lock.json

Lines changed: 27 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/ui/src/app.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@import 'tailwindcss';
2-
@source ".";
3-
2+
@source '.';
3+
@plugin '@tailwindcss/forms';
4+
@plugin '@tailwindcss/typography';
45
@import 'tw-animate-css';
56

67
@custom-variant dark (&:is(.dark *));

tools/ui/src/lib/components/app/chat/ChatAttachments/ChatAttachmentsPreview/ChatAttachmentsPreviewCurrentItem/ChatAttachmentsPreviewCurrentItemVideo.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
{#if videoSrc}
1717
<video controls class="mb-4 w-full" src={videoSrc}>
18+
<track kind="captions" src="" />
1819
Your browser does not support the video element.
1920
</video>
2021
{:else}

tools/ui/src/lib/components/app/content/MarkdownContent/MarkdownContent.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
SETTINGS_KEYS
2929
} from '$lib/constants';
3030
import { ColorMode, UrlProtocol } from '$lib/enums';
31-
import { FileTypeText } from '$lib/enums/files';
31+
import { FileTypeText } from '$lib/enums/files.enums';
3232
import { highlightCode, detectIncompleteCodeBlock, type IncompleteCodeBlock } from '$lib/utils';
3333
import '$styles/katex-custom.scss';
3434
import githubDarkCss from 'highlight.js/styles/github-dark.css?inline';

tools/ui/src/lib/components/app/settings/SettingsChat/SettingsChat.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
} from '$lib/constants';
1818
import { RouterService } from '$lib/services/router.service';
1919
import { setMode } from 'mode-watcher';
20-
import { ColorMode } from '$lib/enums/ui';
20+
import { ColorMode } from '$lib/enums/ui.enums';
2121
import { fade } from 'svelte/transition';
2222
import { goto } from '$app/navigation';
2323
import { page } from '$app/state';

tools/ui/src/lib/components/app/settings/SettingsChat/SettingsChatFields.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import * as Select from '$lib/components/ui/select';
77
import { Textarea } from '$lib/components/ui/textarea';
88
import { SETTING_CONFIG_INFO, SETTINGS_KEYS } from '$lib/constants';
9-
import { SettingsFieldType } from '$lib/enums/settings';
9+
import { SettingsFieldType } from '$lib/enums/settings.enums';
1010
import { settingsStore } from '$lib/stores/settings.svelte';
1111
import { serverStore } from '$lib/stores/server.svelte';
1212
import { modelsStore, selectedModelName, propsCacheVersion } from '$lib/stores/models.svelte';

tools/ui/src/lib/constants/mcp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Zap, Globe, Radio } from '@lucide/svelte';
22
import { MCPTransportType } from '$lib/enums';
33
import type { ClientCapabilities, Implementation } from '$lib/types';
44
import type { Component } from 'svelte';
5-
import { MimeTypeImage } from '$lib/enums/files';
5+
import { MimeTypeImage } from '$lib/enums/files.enums';
66

77
export const DEFAULT_CLIENT_VERSION = '1.0.0';
88
export const MCP_CLIENT_NAME = 'llama-ui-mcp';

0 commit comments

Comments
 (0)