Configure embedding servers and add a Transcript Agent (#561)

* feat: configure embedding servers and transcript agents

* fix(agents): guide Transcript Agent setup

* fix(agents): require a configured embedding server URL

* docs: consolidate embedding and transcript changelog entry

* fix(webui): stabilize transcript menu interactions

* test(e2e): verify transcript scroll interruption by position

* test(webui): check transcript following without frame timing races
This commit is contained in:
Yiling-J
2026-12-05 10:17:36 +08:00
committed by GitHub
parent 72a7f68c92
commit 6c74413375
66 changed files with 2021 additions and 325 deletions
@@ -105,14 +105,6 @@ test('reads, searches and follows a saved transcript in the video player', async
const nearBottom = panel
.locator(`[data-segment-id="${nearBottomId}"]`)
.getByRole('button', { name: /Intervening segment/ })
await viewport.evaluate((element) => {
let scrollSteps = 0
const record = () => {
element.setAttribute('data-test-scroll-steps', String(++scrollSteps))
if (scrollSteps === 2) element.removeEventListener('scroll', record)
}
element.addEventListener('scroll', record)
})
await nearBottom.click()
await expect(nearBottom).toHaveAttribute('aria-current', 'true')
await expect
@@ -124,28 +116,15 @@ test('reads, searches and follows a saved transcript in the video player', async
}),
)
.toBeCloseTo(0.5, 1)
await expect(viewport).toHaveAttribute('data-test-scroll-steps', '2')
await expect(sync).toBeHidden()
await page.emulateMedia({ reducedMotion: 'reduce' })
await viewport.evaluate((element) => {
let previousTop = element.scrollTop
const record = () => {
const top = element.scrollTop
if (top < previousTop) {
element.setAttribute('data-test-first-reverse-scroll-top', String(top))
element.removeEventListener('scroll', record)
}
previousTop = top
}
element.addEventListener('scroll', record)
})
await video.evaluate((element) => {
const media = element as HTMLVideoElement
media.currentTime = 0
})
await expect(first).toHaveAttribute('aria-current', 'true')
await expect(first).toBeInViewport()
await expect(viewport).toHaveAttribute('data-test-first-reverse-scroll-top', '0')
await expect(viewport).toHaveJSProperty('scrollTop', 0)
await page.emulateMedia({ reducedMotion: 'no-preference' })
await panel.getByRole('button', { name: 'Search transcript' }).click()
@@ -180,7 +159,9 @@ test('reads, searches and follows a saved transcript in the video player', async
await expect(sync).toBeHidden()
await viewport.hover()
await page.mouse.wheel(0, -2500)
await viewport.evaluate((element) => {
element.scrollTop = 0
})
await expect(sync).toBeVisible()
await expect(page.locator('html')).toHaveClass('dark')
const background = await panel.evaluate((element) => getComputedStyle(element).backgroundColor)
@@ -197,22 +178,8 @@ test('reads, searches and follows a saved transcript in the video player', async
await expect(sync).toHaveCSS('background-color', /^oklch\([^/]+\)$/)
await expect(last).not.toBeInViewport()
await expect(last).toHaveAttribute('aria-current', 'true')
await viewport.evaluate((element) => {
element.addEventListener(
'scroll',
() => {
element.dispatchEvent(new WheelEvent('wheel', { bubbles: true, deltaY: -120 }))
element.setAttribute('data-test-follow-interrupted', 'true')
},
{ once: true },
)
})
await sync.click()
await expect(viewport).toHaveAttribute('data-test-follow-interrupted', 'true')
await expect(sync).toBeVisible()
await expect(last).not.toBeInViewport()
await sync.click()
await expect(last).toBeInViewport()
await expect(last).toBeInViewport({ ratio: 0.95 })
await expect(sync).toBeHidden()
await video.evaluate((element) => {