feat: model prices and latency in browser, Waypoint-style settings tabs
- Model browser: per-million input/output price on every row; time to first token (p50) and tokens/s for the busiest OpenRouter provider, fetched lazily for visible rows and cached 10 minutes. - Fix: Free badge and free-first sorting (prices are strings), and the list was empty until typing. - Settings: text-only tabs styled like Waypoint's; drop the heading that repeated the tab name.
This commit is contained in:
1 parent
b4d962047b
commit
564e3ea8b3
4 files changed
+187
-83
No files matched your search
+23
-37
@@ -113,6 +113,14 @@
|
||||
color: var(--text-on-accent);
|
||||
font-size: 0.75em;
|
||||
}
|
||||
.model-suggestion-stats {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0 12px;
|
||||
font-size: 0.8em;
|
||||
color: var(--text-muted);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.model-suggestion-desc {
|
||||
font-size: 0.75em;
|
||||
opacity: 0.5;
|
||||
@@ -138,62 +146,40 @@
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* ── Settings Tab Bar ── */
|
||||
/* ── Settings Tab Bar (matches Waypoint's settings tabs) ── */
|
||||
.nibbleai-tab-bar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
padding: 4px 0 12px 0;
|
||||
margin-bottom: 20px;
|
||||
border-bottom: 1px solid var(--background-modifier-border);
|
||||
margin-bottom: 16px;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.nibbleai-tab {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 6px 14px;
|
||||
border-radius: 6px;
|
||||
background: none;
|
||||
border: none;
|
||||
background: transparent;
|
||||
cursor: var(--cursor-link, pointer);
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
padding: 6px 14px;
|
||||
border-radius: 6px 6px 0 0;
|
||||
font-size: var(--font-ui-small);
|
||||
transition: background 0.15s, color 0.15s;
|
||||
white-space: nowrap;
|
||||
user-select: none;
|
||||
font-weight: var(--font-medium);
|
||||
transition: color 100ms, background 100ms;
|
||||
}
|
||||
|
||||
.nibbleai-tab:hover {
|
||||
background: var(--background-modifier-hover);
|
||||
color: var(--text-normal);
|
||||
background: var(--background-modifier-hover);
|
||||
}
|
||||
|
||||
.nibbleai-tab-active {
|
||||
background: var(--interactive-accent);
|
||||
color: var(--text-on-accent);
|
||||
}
|
||||
|
||||
.nibbleai-tab-active:hover {
|
||||
background: var(--interactive-accent-hover);
|
||||
color: var(--text-on-accent);
|
||||
}
|
||||
|
||||
.nibbleai-tab-icon svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
display: block;
|
||||
.nibbleai-tab.is-active {
|
||||
color: var(--text-accent);
|
||||
background: var(--background-modifier-active-hover);
|
||||
border-bottom: 2px solid var(--text-accent);
|
||||
margin-bottom: -9px;
|
||||
}
|
||||
|
||||
/* ── Tab Content ── */
|
||||
.nibbleai-tab-content h2 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 16px;
|
||||
font-size: var(--font-ui-large);
|
||||
font-weight: 700;
|
||||
color: var(--text-normal);
|
||||
}
|
||||
|
||||
.nibbleai-tab-content h3 {
|
||||
margin-top: 28px;
|
||||
margin-bottom: 10px;
|
||||
|
||||
Reference in new issue
Block a user