-
Notifications
You must be signed in to change notification settings - Fork 6
feat: Cleaning model dropdown #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,229 @@ | ||
| .wrapper { | ||
| width: 100%; | ||
| } | ||
|
|
||
| .toggleAnchor { | ||
| position: relative; | ||
| } | ||
|
|
||
| .labelRow { | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: space-between; | ||
| margin-bottom: 6px; | ||
| } | ||
|
|
||
| .label { | ||
| font-size: 12px; | ||
| font-weight: 600; | ||
| font-family: var(--mono); | ||
| text-transform: uppercase; | ||
| letter-spacing: 0.06em; | ||
| color: var(--t2, #3c3f42); | ||
| line-height: 1.2; | ||
| margin: 0; | ||
| } | ||
|
|
||
| .wrapper :global(.pf-v5-c-switch) { | ||
| --pf-v5-c-switch--Height: 18px !important; | ||
| --pf-v5-c-switch__toggle--Width: 32px !important; | ||
| --pf-v5-c-switch__toggle--Height: 16px !important; | ||
| --pf-v5-c-switch__toggle--BorderRadius: 9px !important; | ||
| font-size: 11.5px !important; | ||
| } | ||
|
|
||
| .wrapper :global(.pf-v5-c-switch__label) { | ||
| font-size: 11.5px !important; | ||
| font-weight: 500; | ||
| } | ||
|
|
||
| .wrapper :global(.pf-v5-c-switch__toggle) { | ||
| width: 32px !important; | ||
| height: 16px !important; | ||
| } | ||
|
|
||
| .wrapper :global(.pf-v5-c-switch__toggle::before) { | ||
| width: 12px !important; | ||
| height: 12px !important; | ||
| } | ||
|
|
||
| .wrapper :global(.pf-v5-c-switch__input:focus-visible ~ .pf-v5-c-switch__toggle) { | ||
| outline: none !important; | ||
| box-shadow: none !important; | ||
| } | ||
|
Comment on lines
+50
to
+53
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Restore the switch focus indicator. This rule removes the PatternFly switch focus outline and shadow. Keyboard users then have no visible focus indicator. Keep the PatternFly focus style, or add an equivalent visible indicator. 🧰 Tools🪛 Stylelint (17.14.0)[error] 50-50: Unknown pseudo-class selector ":global" (selector-pseudo-class-no-unknown) (selector-pseudo-class-no-unknown) 🤖 Prompt for AI Agents |
||
|
|
||
| .toggle { | ||
| display: flex; | ||
| align-items: center; | ||
| width: 100%; | ||
| height: 42px; | ||
| border: 1px solid #b8bbbe; | ||
| border-radius: 4px; | ||
| padding: 0; | ||
| background: #ffffff; | ||
| cursor: text; | ||
| box-sizing: border-box; | ||
| transition: border-color 0.15s; | ||
| } | ||
| .toggle:focus-within { | ||
| border-color: var(--blue, #0066cc); | ||
| } | ||
| .toggleOpen { | ||
| border-radius: 4px 4px 0 0; | ||
| border-color: var(--blue, #0066cc); | ||
| } | ||
|
|
||
| .input { | ||
| flex: 1; | ||
| height: 100%; | ||
| border: none; | ||
| outline: none; | ||
| padding: 0 0 0 12px; | ||
| font-size: 14px; | ||
| font-family: var(--sans); | ||
| color: var(--t, #151515); | ||
| background: transparent; | ||
| min-width: 0; | ||
| } | ||
| .input::placeholder { | ||
| color: #6a6e73; | ||
| } | ||
|
|
||
| .chevron { | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| width: 36px; | ||
| height: 100%; | ||
| cursor: pointer; | ||
| color: #6a6e73; | ||
| flex-shrink: 0; | ||
| transition: transform 0.2s; | ||
| } | ||
| .chevronOpen { | ||
| transform: rotate(180deg); | ||
| } | ||
|
|
||
| .clear { | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| width: 28px; | ||
| height: 100%; | ||
| cursor: pointer; | ||
| color: #6a6e73; | ||
| border: none; | ||
| background: none; | ||
| padding: 0; | ||
| flex-shrink: 0; | ||
| } | ||
| .clear:hover { | ||
| color: #151515; | ||
| } | ||
|
|
||
| /* ─── Dropdown panel ─── */ | ||
| .menu { | ||
| position: absolute; | ||
| top: 100%; | ||
| left: 0; | ||
| right: 0; | ||
| max-height: 320px; | ||
| overflow-y: auto; | ||
| background: #ffffff; | ||
| border: 1px solid var(--blue, #0066cc); | ||
| border-top: none; | ||
| border-radius: 0 0 4px 4px; | ||
| z-index: 1000; | ||
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); | ||
| padding: 4px 0; | ||
| } | ||
|
|
||
| .groupLabel { | ||
| padding: 8px 12px 4px; | ||
| font-size: 11.5px; | ||
| font-family: var(--mono, monospace); | ||
| font-weight: 500; | ||
| text-transform: uppercase; | ||
| letter-spacing: 0.06em; | ||
| color: #3c3f42; | ||
| user-select: none; | ||
| } | ||
|
|
||
| .option { | ||
| display: flex; | ||
| align-items: center; | ||
| padding: 8px 12px; | ||
| font-size: 14px; | ||
| font-family: var(--sans); | ||
| color: #151515; | ||
| cursor: pointer; | ||
| user-select: none; | ||
| } | ||
| .option:hover, | ||
| .optionFocused { | ||
| background: rgba(0, 102, 204, 0.08); | ||
| } | ||
| .optionSelected { | ||
| background: rgba(0, 102, 204, 0.12); | ||
| font-weight: 500; | ||
| } | ||
|
|
||
| .optionVendor { | ||
| color: #6a6e73; | ||
| margin-right: 2px; | ||
| } | ||
| .optionName { | ||
| color: #151515; | ||
| } | ||
|
|
||
| .customOption { | ||
| border-top: 1px solid #d2d2d2; | ||
| margin-top: 4px; | ||
| padding-top: 8px; | ||
| font-style: italic; | ||
| color: #3c3f42; | ||
| } | ||
| .customOptionLabel { | ||
| font-family: var(--mono, monospace); | ||
| font-size: 12px; | ||
| font-weight: 500; | ||
| color: #0066cc; | ||
| margin-right: 6px; | ||
| font-style: normal; | ||
| } | ||
|
|
||
| .empty { | ||
| padding: 12px; | ||
| font-size: 13px; | ||
| color: #6a6e73; | ||
| text-align: center; | ||
| } | ||
|
|
||
| .matchHighlight { | ||
| background: rgba(240, 171, 0, 0.25); | ||
| border-radius: 1px; | ||
| } | ||
|
|
||
| .quantRow { | ||
| margin-top: 6px; | ||
| } | ||
|
|
||
| .quantRow :global(.pf-v5-c-check__label) { | ||
| font-size: 12px; | ||
| font-family: var(--mono, monospace); | ||
| font-weight: 500; | ||
| color: var(--t2, #3c3f42); | ||
| } | ||
|
|
||
| .helperText { | ||
| font-size: 12px; | ||
| color: var(--gc-text-3, #6a6e73); | ||
| margin-top: 4px; | ||
| } | ||
|
|
||
| .requestLink { | ||
| color: var(--blue, #0066cc); | ||
| } | ||
| .requestLink:hover { | ||
| text-decoration: underline; | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Pass the tested-model list to
supportedModels.ComboBoxlabels this filter Tested only, but each view passesaicModels, which is the complete catalog used to build the options. The filter therefore does not restrict normal catalog models.app/kv-cache/KvCacheCalc.tsx#L204-L211: passgetAppConfig().testedModelsassupportedModels.app/performance/PerformanceEstimate.tsx#L1042-L1050: passgetAppConfig().testedModelsassupportedModels.app/recommend/AdvancedEstimate.tsx#L340-L348: passgetAppConfig().testedModelsassupportedModels.📍 Affects 3 files
app/kv-cache/KvCacheCalc.tsx#L204-L211(this comment)app/performance/PerformanceEstimate.tsx#L1042-L1050app/recommend/AdvancedEstimate.tsx#L340-L348🤖 Prompt for AI Agents