From 9e2b73eac9a0b4f7a4f47f5ed1072f9234b8edf8 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Mon, 2 Oct 2023 21:45:48 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix(DropdownButtonComponent):=20?= =?UTF-8?q?add=20id=20attribute=20to=20Button=20component=20to=20improve?= =?UTF-8?q?=20accessibility=20and=20testing=20capabilities=20=F0=9F=94=A7?= =?UTF-8?q?=20fix(floatComponent):=20add=20id=20attribute=20to=20Input=20c?= =?UTF-8?q?omponent=20to=20improve=20accessibility=20and=20testing=20capab?= =?UTF-8?q?ilities=20=F0=9F=94=A7=20fix(keypairListComponent):=20add=20id?= =?UTF-8?q?=20attribute=20to=20Input=20components=20to=20improve=20accessi?= =?UTF-8?q?bility=20and=20testing=20capabilities=20=F0=9F=94=A7=20fix(keyp?= =?UTF-8?q?airListComponent):=20add=20id=20attribute=20to=20Plus=20and=20M?= =?UTF-8?q?inus=20buttons=20to=20improve=20accessibility=20and=20testing?= =?UTF-8?q?=20capabilities=20=F0=9F=94=A7=20fix(toggleShadComponent):=20ad?= =?UTF-8?q?d=20id=20attribute=20to=20Switch=20component=20to=20improve=20a?= =?UTF-8?q?ccessibility=20and=20testing=20capabilities=20=F0=9F=94=A7=20fi?= =?UTF-8?q?x(EditNodeModal):=20add=20id=20attribute=20to=20ToggleShadCompo?= =?UTF-8?q?nent=20component=20to=20improve=20accessibility=20and=20testing?= =?UTF-8?q?=20capabilities=20=F0=9F=94=A7=20fix(PageComponent):=20add=20id?= =?UTF-8?q?=20attribute=20to=20div=20element=20to=20improve=20accessibilit?= =?UTF-8?q?y=20and=20testing=20capabilities=20=F0=9F=94=A7=20fix(extraSide?= =?UTF-8?q?barComponent):=20add=20id=20attribute=20to=20div=20element=20to?= =?UTF-8?q?=20improve=20accessibility=20and=20testing=20capabilities=20?= =?UTF-8?q?=F0=9F=94=A7=20fix(nodeToolbarComponent):=20add=20id=20attribut?= =?UTF-8?q?e=20to=20div=20element=20to=20improve=20accessibility=20and=20t?= =?UTF-8?q?esting=20capabilities=20=F0=9F=94=A7=20fix(nodeToolbarComponent?= =?UTF-8?q?):=20add=20id=20attribute=20to=20button=20element=20to=20improv?= =?UTF-8?q?e=20accessibility=20and=20testing=20capabilities=20=F0=9F=94=A7?= =?UTF-8?q?=20fix(types/components):=20add=20id=20attribute=20to=20ToggleC?= =?UTF-8?q?omponentType=20to=20improve=20accessibility=20and=20testing=20c?= =?UTF-8?q?apabilities?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🚀 feat(keypair.spec.ts): add tests for KeypairListComponent to verify key-value pairs functionality 🚀 feat(float.spec.ts): add tests for FloatComponent to verify float input functionality 🚀 feat: add support for toggling various options in the UI This commit adds support for toggling various options in the UI. The following options can now be toggled: - showtemperature - showtop_k - showtop_p - showuse_mlock - showuse_mmap - showverbose - showvocab_only - showcache - showecho - showf16_kv - showgrammar_path - showlast_n_tokens_size - showlogits_all - showlogprobs - showlora_base - showlora_path - showmax_tokens - showmetadata - showmodel_kwargs - showmodel_path - shown_batch - shown_ctx - shown_gpu_layers - shown_parts - shown_threads - showrepeat_penalty - showrope_freq_base - showrope_freq_scale - showseed - showstop - showstreaming - showsuffix - showtags These options can be toggled by clicking on the respective elements in the UI. The commit also includes tests to ensure that the toggling functionality works as expected. --- .../DropdownButtonComponent/index.tsx | 1 + .../src/components/floatComponent/index.tsx | 1 + .../components/keypairListComponent/index.tsx | 4 + .../components/toggleShadComponent/index.tsx | 2 + .../src/modals/EditNodeModal/index.tsx | 6 + .../components/PageComponent/index.tsx | 2 +- .../extraSidebarComponent/index.tsx | 8 +- .../components/nodeToolbarComponent/index.tsx | 7 +- src/frontend/src/types/components/index.ts | 25 +- src/frontend/tests/keypair.spec.ts | 459 ++++++++++++++++++ 10 files changed, 498 insertions(+), 17 deletions(-) create mode 100644 src/frontend/tests/keypair.spec.ts diff --git a/src/frontend/src/components/DropdownButtonComponent/index.tsx b/src/frontend/src/components/DropdownButtonComponent/index.tsx index 784a08528..9491336d6 100644 --- a/src/frontend/src/components/DropdownButtonComponent/index.tsx +++ b/src/frontend/src/components/DropdownButtonComponent/index.tsx @@ -21,6 +21,7 @@ export default function DropdownButton({