diff --git a/frontend/package-lock.json b/frontend/package-lock.json index e806bde67..edec43d47 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -9293,11 +9293,20 @@ ], "license": "MIT", "dependencies": { - "micromark-util-symbol": "^2.0.0" + "@types/acorn": "^4.0.0", + "@types/estree": "^1.0.0", + "@types/unist": "^3.0.0", + "devlop": "^1.0.0", + "estree-util-visit": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0", + "vfile-message": "^4.0.0" } }, "node_modules/micromark-util-classify-character": { - "version": "2.0.0", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz", + "integrity": "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==", "funding": [ { "type": "GitHub Sponsors", @@ -9316,7 +9325,9 @@ } }, "node_modules/micromark-util-combine-extensions": { - "version": "2.0.0", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz", + "integrity": "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==", "funding": [ { "type": "GitHub Sponsors", @@ -9334,7 +9345,9 @@ } }, "node_modules/micromark-util-decode-numeric-character-reference": { - "version": "2.0.1", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz", + "integrity": "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==", "funding": [ { "type": "GitHub Sponsors", @@ -9351,7 +9364,9 @@ } }, "node_modules/micromark-util-decode-string": { - "version": "2.0.0", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz", + "integrity": "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==", "funding": [ { "type": "GitHub Sponsors", @@ -9371,7 +9386,9 @@ } }, "node_modules/micromark-util-encode": { - "version": "2.0.0", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz", + "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==", "funding": [ { "type": "GitHub Sponsors", @@ -9386,6 +9403,8 @@ }, "node_modules/micromark-util-events-to-acorn": { "version": "2.0.2", + "resolved": "https://registry.npmjs.org/micromark-util-events-to-acorn/-/micromark-util-events-to-acorn-2.0.2.tgz", + "integrity": "sha512-Fk+xmBrOv9QZnEDguL9OI9/NQQp6Hz4FuQ4YmCb/5V7+9eAh1s6AYSvL20kHkD67YIg7EpE54TiSlcsf3vyZgA==", "funding": [ { "type": "GitHub Sponsors", @@ -12640,6 +12659,7 @@ }, "node_modules/tree-sitter-json": { "version": "0.20.2", + "hasInstallScript": true, "license": "MIT", "optional": true, "dependencies": { @@ -12648,6 +12668,7 @@ }, "node_modules/tree-sitter-yaml": { "version": "0.5.0", + "hasInstallScript": true, "license": "MIT", "optional": true, "dependencies": { @@ -13180,9 +13201,7 @@ } }, "node_modules/vite": { - "version": "5.4.14", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.14.tgz", - "integrity": "sha512-EK5cY7Q1D8JNhSaPKVK4pwBFvaTmZxEnoKXLG/U9gmdDcihQGNzFlgIvaxezFR4glP1LsuiedwMBqCXH3wZccA==", + "version": "5.4.6", "dev": true, "license": "MIT", "dependencies": { @@ -19582,11 +19601,20 @@ "micromark-util-chunked": { "version": "2.0.0", "requires": { - "micromark-util-symbol": "^2.0.0" + "@types/acorn": "^4.0.0", + "@types/estree": "^1.0.0", + "@types/unist": "^3.0.0", + "devlop": "^1.0.0", + "estree-util-visit": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0", + "vfile-message": "^4.0.0" } }, "micromark-util-classify-character": { - "version": "2.0.0", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz", + "integrity": "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==", "requires": { "micromark-util-character": "^2.0.0", "micromark-util-symbol": "^2.0.0", @@ -19594,20 +19622,26 @@ } }, "micromark-util-combine-extensions": { - "version": "2.0.0", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz", + "integrity": "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==", "requires": { "micromark-util-chunked": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "micromark-util-decode-numeric-character-reference": { - "version": "2.0.1", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz", + "integrity": "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==", "requires": { "micromark-util-symbol": "^2.0.0" } }, "micromark-util-decode-string": { - "version": "2.0.0", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz", + "integrity": "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==", "requires": { "decode-named-character-reference": "^1.0.0", "micromark-util-character": "^2.0.0", @@ -19616,10 +19650,14 @@ } }, "micromark-util-encode": { - "version": "2.0.0" + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz", + "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==" }, "micromark-util-events-to-acorn": { "version": "2.0.2", + "resolved": "https://registry.npmjs.org/micromark-util-events-to-acorn/-/micromark-util-events-to-acorn-2.0.2.tgz", + "integrity": "sha512-Fk+xmBrOv9QZnEDguL9OI9/NQQp6Hz4FuQ4YmCb/5V7+9eAh1s6AYSvL20kHkD67YIg7EpE54TiSlcsf3vyZgA==", "requires": { "@types/acorn": "^4.0.0", "@types/estree": "^1.0.0", @@ -21863,9 +21901,7 @@ } }, "vite": { - "version": "5.4.14", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.14.tgz", - "integrity": "sha512-EK5cY7Q1D8JNhSaPKVK4pwBFvaTmZxEnoKXLG/U9gmdDcihQGNzFlgIvaxezFR4glP1LsuiedwMBqCXH3wZccA==", + "version": "5.4.6", "dev": true, "requires": { "esbuild": "^0.21.3", diff --git a/frontend/src/wrapper/EntrySearch.tsx b/frontend/src/wrapper/EntrySearch.tsx index 50a69dbdd..1f00d644a 100644 --- a/frontend/src/wrapper/EntrySearch.tsx +++ b/frontend/src/wrapper/EntrySearch.tsx @@ -1,5 +1,5 @@ import SearchIcon from '@mui/icons-material/Search' -import { Box, InputBase, List, ListItemButton, ListItemText, Popover, Stack } from '@mui/material' +import { Box, Chip, InputBase, List, ListItem, ListItemButton, ListItemText, Popover, Stack } from '@mui/material' import { alpha, styled, useTheme } from '@mui/material/styles' import { useListModels } from 'actions/model' import { ChangeEvent, useMemo, useState } from 'react' @@ -8,6 +8,8 @@ import Loading from 'src/common/Loading' import useDebounce from 'src/hooks/useDebounce' import Link from 'src/Link' import MessageAlert from 'src/MessageAlert' +import { EntryKindLabel } from 'types/types' +import { toTitleCase } from 'utils/stringUtils' const Search = styled('div')(({ theme }) => ({ borderRadius: theme.shape.borderRadius, @@ -53,28 +55,34 @@ export default function EntrySearch() { const modelList = useMemo( () => entries.map((entry) => ( - + - - } + > + + - + secondary: { + sx: { whiteSpace: 'nowrap', textOverflow: 'ellipsis', overflow: 'hidden', mr: 6 }, + }, + }} + /> + + )),