mirror of
https://github.com/mudler/LocalAI.git
synced 2026-09-28 09:05:05 -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>
45 lines
2.0 KiB
JavaScript
45 lines
2.0 KiB
JavaScript
import { test, expect } from './coverage-fixtures.js'
|
|
|
|
test.describe('Installed model backend logs link', () => {
|
|
test('the detail action menu exposes Backend logs with a terminal icon', async ({ page }) => {
|
|
await page.goto('/app/models?view=installed')
|
|
await page.locator('[data-testid="installed-models-rail-item"]').first().click()
|
|
const trigger = page.locator('button.action-menu__trigger').first()
|
|
await expect(trigger).toBeVisible()
|
|
await trigger.click()
|
|
|
|
const logsItem = page.getByRole('menuitem', { name: 'Backend logs' })
|
|
await expect(logsItem).toBeVisible()
|
|
await expect(logsItem.locator('i.fa-terminal')).toBeVisible()
|
|
})
|
|
|
|
test('Backend logs navigates to the selected model logs', async ({ page }) => {
|
|
await page.goto('/app/models?view=installed')
|
|
await page.locator('[data-testid="installed-models-rail-item"]').first().click()
|
|
await page.locator('button.action-menu__trigger').first().click()
|
|
await page.getByRole('menuitem', { name: 'Backend logs' }).click()
|
|
|
|
await expect(page).toHaveURL(/\/app\/backend-logs\//)
|
|
})
|
|
|
|
test('arrow navigation announces the active action through the focused menu', async ({ page }) => {
|
|
await page.goto('/app/models?view=installed')
|
|
await page.locator('[data-testid="installed-models-rail-item"]').first().click()
|
|
const trigger = page.locator('button.action-menu__trigger').first()
|
|
await trigger.focus()
|
|
await trigger.press('Enter')
|
|
|
|
const menu = page.getByRole('menu')
|
|
await expect(menu).toBeFocused()
|
|
const firstItem = menu.getByRole('menuitem').first()
|
|
await expect(menu).toHaveAttribute('aria-activedescendant', await firstItem.getAttribute('id'))
|
|
|
|
await menu.press('ArrowDown')
|
|
const secondItem = menu.getByRole('menuitem').nth(1)
|
|
await expect(menu).toHaveAttribute('aria-activedescendant', await secondItem.getAttribute('id'))
|
|
await expect(menu).toBeFocused()
|
|
await expect(firstItem).toHaveAttribute('tabindex', '-1')
|
|
await expect(secondItem).toHaveAttribute('tabindex', '-1')
|
|
})
|
|
})
|