mirror of
https://github.com/mudler/LocalAI.git
synced 2026-09-21 05:34:56 -04:00
* feat(nodes): report CPU telemetry Assisted-by: Codex:gpt-6 * feat(nodes): add fleet view utilities Assisted-by: Codex:gpt-6 * feat(nodes): add fleet operations dashboard Replace the panel roster with aggregate capacity gauges, fleet filtering and selection, bounded bulk actions, and an on-demand node inspector. Extend node details and distributed-mode documentation with CPU and models-disk telemetry. Assisted-by: Codex:gpt-6 * fix(nodes): harden fleet lifecycle actions Assisted-by: Codex:gpt-6 * fix(nodes): restore compact fleet composition Keep fleet health, capacity, and attention in one compact overview at ordinary desktop widths. The inspector now overlays the roster until the workbench can preserve a useful table beside it. Assisted-by: Codex:gpt-6 * feat(nodes): add accessible running models workbench Assisted-by: Codex:gpt-6 * fix(nodes): correct model view ARIA links Keep each tab panel available for its controlling tab while native hidden state removes inactive content from accessibility navigation. Model controls now expose only supported state and valid inspector relationships. Assisted-by: Codex:gpt-6 * fix(nodes): align lifecycle and capacity states Pending nodes now expose approval wherever node actions appear, while other lifecycle controls follow the server transition rules. Capacity totals exclude incomplete readings so missing availability remains unknown. Assisted-by: Codex:gpt-6 * fix(nodes): restore approved dashboard composition Assisted-by: Codex:gpt-6 * fix(nodes): integrate operate navigation Assisted-by: Codex:gpt-6 * fix(nodes): restore low density fleet view Assisted-by: Codex:gpt-6 * fix(nodes): preserve complete operate menu Assisted-by: Codex:gpt-6 * fix(nodes): preserve inspector workspace height Assisted-by: Codex:gpt-6 * fix(nodes): restore standard operate navigation Assisted-by: Codex:gpt-6 * feat(ui): add collapsible console rail Assisted-by: Codex:gpt-6 * feat(nodes): stop models from fleet view Assisted-by: Codex:gpt-6 * fix(nodes): make inspector a full height drawer Assisted-by: Codex:gpt-6 * fix(model): stop mixed local and remote placements Assisted-by: Codex:gpt-6 * fix(ui): announce action menu navigation Assisted-by: Codex:gpt-6 * fix(nodes): keep inspector within viewport Assisted-by: Codex:gpt-6 * fix(ui): preserve focus across model actions Assisted-by: Codex:gpt-6 --------- Co-authored-by: Ettore Di Giacinto <mudler@localai.io>
67 lines
2.7 KiB
JavaScript
67 lines
2.7 KiB
JavaScript
import { test, expect } from './coverage-fixtures.js'
|
|
|
|
test.describe('Operate console on a narrow screen', () => {
|
|
test('ignores the desktop collapsed preference', async ({ page }) => {
|
|
await page.setViewportSize({ width: 390, height: 800 })
|
|
await page.addInitScript(() => localStorage.setItem('localai_console_rail_collapsed', 'true'))
|
|
await page.goto('/app/operate')
|
|
|
|
const rail = page.locator('.console-rail')
|
|
await expect(rail).toHaveCSS('width', '374px')
|
|
await expect(rail.getByText('Operate', { exact: true })).toBeVisible()
|
|
await expect(rail.getByRole('button', { name: 'Expand Operate navigation' })).toBeVisible()
|
|
await expect(rail.locator('.console-rail-collapse')).toBeHidden()
|
|
})
|
|
|
|
test('expanding the rail leaves the overview on screen', async ({ page }) => {
|
|
await page.setViewportSize({ width: 390, height: 800 })
|
|
await page.goto('/app/operate')
|
|
|
|
const toggle = page.locator('.console-rail-toggle')
|
|
await expect(toggle).toBeVisible()
|
|
await toggle.click()
|
|
await expect(page.locator('.console-rail-groups')).toBeVisible()
|
|
|
|
const heading = page.getByRole('heading', { name: 'Overview', exact: true })
|
|
const box = await heading.boundingBox()
|
|
expect(box).not.toBeNull()
|
|
expect(box.y).toBeLessThan(800)
|
|
})
|
|
|
|
test('the rail scrolls internally rather than growing without bound', async ({ page }) => {
|
|
await page.setViewportSize({ width: 390, height: 800 })
|
|
await page.goto('/app/operate')
|
|
await page.locator('.console-rail-toggle').click()
|
|
|
|
const groups = page.locator('.console-rail-groups')
|
|
await expect(groups).toBeVisible()
|
|
const height = await groups.evaluate(el => el.getBoundingClientRect().height)
|
|
expect(height).toBeLessThan(800)
|
|
})
|
|
})
|
|
|
|
test.describe('Operate headline figures', () => {
|
|
for (const width of [390, 768, 1024]) {
|
|
test(`labels remain legible at ${width}px`, async ({ page }) => {
|
|
await page.setViewportSize({ width, height: 1000 })
|
|
await page.goto('/app/operate')
|
|
|
|
const labels = page.locator('.operate-headline dt')
|
|
await expect(labels.first()).toBeVisible()
|
|
const clipped = await labels.evaluateAll(els =>
|
|
els.filter(el => el.scrollWidth > el.clientWidth + 1).map(el => el.textContent))
|
|
expect(clipped).toEqual([])
|
|
})
|
|
}
|
|
|
|
test('values remain legible in dark theme', async ({ page }) => {
|
|
await page.setViewportSize({ width: 390, height: 950 })
|
|
await page.goto('/app/operate')
|
|
|
|
const invisible = await page.locator('.operate-headline__value').evaluateAll(els => els
|
|
.map(el => ({ text: el.textContent, color: getComputedStyle(el).color }))
|
|
.filter(value => value.color === 'rgb(0, 0, 0)'))
|
|
expect(invisible).toEqual([])
|
|
})
|
|
})
|