feat(files): fullscreen preview, relative markdown links, and preinstalled Chromium (#369)

* feat(files): add fullscreen preview with a minimal close control

Add a fullscreen toggle to the desktop file preview header. Fullscreen fills the viewport, hides the header, and shows only a small on-top X to exit.

Keep the mobile preview fullscreen by default with its close button layered above the content, and give the headerless mobile preview the same small on-top X.

* fix(files): open relative markdown links and preinstall Chromium

Resolve relative and absolute markdown links against the previewed file
and open them in the file browser; external links open in a new tab.
Install Playwright and Chromium into the Manager image with NODE_PATH
and PLAYWRIGHT_BROWSERS_PATH so agents can run browser automation
without a project-local install.

* refactor(files): share markdown link handling across renderers

* test(docker): cover the preinstalled playwright chromium step
This commit is contained in:
Chris Scott authored and GitHub committed 2026-09-29 00:15:52 -04:00
1 parent 304f636516
commit 7fbb7555b2
16 files changed
+323 -34

No files matched your search

+11 -4
View File
@@ -161,16 +161,23 @@ describe('chromium runtime libraries for playwright', () => {
const sandboxDockerfile = read(join(repoRoot, 'Dockerfile.sandbox'))
const workflow = read(join(repoRoot, '.github/workflows/docker-build.yml'))
const installRun = dockerfile.slice(
dockerfile.indexOf('Installing Chromium runtime libraries'),
dockerfile.indexOf('ENV NODE_ENV=production'),
dockerfile.indexOf('Installing playwright='),
dockerfile.indexOf('COPY --from=deps --chown=node:node /app/node_modules'),
)
it('declares PLAYWRIGHT_VERSION next to the other tool args', () => {
expect(dockerfile).toMatch(/ARG PLAYWRIGHT_VERSION=1\.63\.0/)
})
it('resolves the system dependency list from the pinned playwright version', () => {
expect(installRun).toMatch(/npx --yes "playwright@\$\{PLAYWRIGHT_VERSION\}" install-deps chromium/)
it('installs the pinned playwright and verifies its version', () => {
expect(installRun).toContain('npm install -g "playwright@${PLAYWRIGHT_VERSION}"')
expect(installRun).toContain('test "$(playwright --version | awk \'{print $2}\')" = "${PLAYWRIGHT_VERSION}"')
})
it('preinstalls chromium with its system dependencies into a shared browsers path', () => {
expect(dockerfile).toContain('ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright')
expect(installRun).toContain('playwright install --with-deps chromium')
expect(installRun).toContain('chown -R node:node "${PLAYWRIGHT_BROWSERS_PATH}"')
})
it('does not hand-maintain a package list', () => {