mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-27 16:09:34 +01:00
On a MacBook with a camera housing (the notch), macOS's full screen ends the window below the housing and paints the strip beside it black. No setting changes that, so the Mac app gets a second kind of full screen, off by default: View > Full Screen Uses the Area Beside the Camera. The app (packages/desktop/src/whole_screen.rs): - The window loses its title bar, the Dock and the menu bar auto-hide, and the window gets the display's whole frame, which reaches behind the housing. - An override of toggleFullScreen: on tao's window class decides per request, so the green button, the menu item, its shortcut and the launch into full screen all follow the option. It only applies on a display with a housing. - performClose: asks the delegate while the window has no close button. - Changes into and out of macOS's own full screen are tracked from AppKit's notifications: while one is under way the window is not restyled and its frame is not saved. The Dock and menu-bar options are reconciled, so what a native Space in front kept from being set or taken off is done afterwards. - Info.plist: NSPrefersDisplaySafeAreaCompatibilityMode = false. The page (src/web/public/host-cutout.js, styles.css): - A page is drawn behind the housing only after it said it copes (CodemanHost.cutoutReady); the app answers with where the housing is, and the toolbar's box starts left of it and pads its content past it, so the tabs end before the housing and the toolbar begins after it. - Until then the web view stays below the housing with a black strip above it, which is what full screen looked like before: an older server, the connect page and a raw file are unchanged. - With the tabs grouped by state, by case or as a ledger in the header strip the page says no: ending every row at the housing costs more height than the strip gives. Not yet seen on a MacBook with a housing: the AppKit path was type-checked, unit-tested where it is pure and reviewed, on a Mac mini without one. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
89 lines
3.9 KiB
TypeScript
89 lines
3.9 KiB
TypeScript
/**
|
|
* The test suites that `npm test` deliberately does NOT run, in one place.
|
|
*
|
|
* Why this file exists: the exclusion list used to live only in
|
|
* config/vitest.ci.config.ts, as literals. Anything excluded there was
|
|
* therefore reachable only by running the everything-config by hand and reading
|
|
* past its failures — and a newly excluded file was reachable by nothing at
|
|
* all, silently, because nothing pointed at it. Both configs now derive their
|
|
* globs from the arrays below, so adding a suite here puts it in exactly one
|
|
* runner and takes it out of exactly one gate.
|
|
*
|
|
* Adding a new test that cannot run in CI: put its glob in the array that
|
|
* describes WHY it cannot, not in whichever one is shortest.
|
|
*/
|
|
|
|
/**
|
|
* Playwright-driven: needs chromium and, in most cases, a live Codeman server
|
|
* on a real port. Deterministic where the environment provides both, which is
|
|
* why these are a runnable suite (`npm run test:browser`) rather than skipped.
|
|
*/
|
|
export const BROWSER_TEST_GLOBS = [
|
|
'test/wrapped-file-paths.browser.test.ts',
|
|
'test/command-palette-agent-arrows.browser.test.ts',
|
|
'test/voice-input.browser.test.ts',
|
|
'test/tmux-capture-sgr.browser.test.ts',
|
|
'test/tab-rail-resize.browser.test.ts',
|
|
'test/tab-activation.browser.test.ts',
|
|
'test/tab-layout-editing.browser.test.ts',
|
|
'test/tab-rail-search.browser.test.ts',
|
|
'test/tab-focus.browser.test.ts',
|
|
'test/session-sidebar-ux.browser.test.ts',
|
|
'test/header-divider.browser.test.ts',
|
|
'test/tab-strip-corner.browser.test.ts',
|
|
'test/host-cutout.browser.test.ts',
|
|
'test/header-host-sensors.browser.test.ts',
|
|
'test/session-options-responsive.browser.test.ts',
|
|
'test/inline-rename.test.ts',
|
|
'test/opencode-resize.test.ts',
|
|
'test/webgl-fallback.test.ts',
|
|
'test/terminal-copy-shortcut.test.ts',
|
|
'test/terminal-keycode229-recovery.browser.test.ts',
|
|
'test/capture-load-window.browser.test.ts',
|
|
'test/capture-geometry-retry.browser.test.ts',
|
|
'test/codex-predictive-echo.test.ts', // also needs a real codex binary
|
|
'test/split-pane-terminal.browser.test.ts',
|
|
'test/terminal-tile-scroll.browser.test.ts',
|
|
'test/codex-wheel-routing.browser.test.ts',
|
|
'test/terminal-touch-paging.browser.test.ts',
|
|
'test/shift-enter-keypress.browser.test.ts',
|
|
'test/key-tester.browser.test.ts',
|
|
'test/webhook-settings.browser.test.ts',
|
|
'test/case-custom-path.browser.test.ts',
|
|
'test/doctor-settings.browser.test.ts',
|
|
'test/git-status.browser.test.ts',
|
|
'test/edit-history.browser.test.ts',
|
|
'test/sync-case-state.browser.test.ts',
|
|
'test/split-pane-orchestration.browser.test.ts',
|
|
'test/split-pane-auto-collapse.browser.test.ts',
|
|
'test/spreadsheet-preview.browser.test.ts',
|
|
'test/mobile-ime-preview.browser.test.ts',
|
|
'test/run-mode-menu-scroll.browser.test.ts',
|
|
'test/markdown-anchor-links.browser.test.ts',
|
|
'test/fullscreen-tab-switch-capture.browser.test.ts',
|
|
'test/terminal-touch-swipe-axis.browser.test.ts',
|
|
'test/phone-press-feedback.browser.test.ts',
|
|
'test/desktop-connect-page.browser.test.ts', // no server: the page is served by request interception
|
|
'test/local-model-ui.browser.test.ts',
|
|
'test/home-breakpoint-swap.browser.test.ts',
|
|
'test/log-viewer-reconnect.browser.test.ts',
|
|
];
|
|
|
|
/**
|
|
* Wall-clock benchmarks. They assert on durations, so a loaded shared runner
|
|
* fails them for reasons that have nothing to do with the diff under test.
|
|
*/
|
|
export const PERF_TEST_GLOBS = ['test/perf-*.test.ts'];
|
|
|
|
/**
|
|
* Browser + visual regression: chromium AND environment-specific PNG baselines
|
|
* that are generated per machine. Has its own config
|
|
* (test/mobile/vitest.config.ts) because it needs serial execution, a longer
|
|
* timeout and the `pretest:mobile` vendor step — run it with
|
|
* `npm run test:mobile`, not through the configs here.
|
|
*/
|
|
export const MOBILE_TEST_GLOBS = ['test/mobile/**'];
|
|
|
|
/** Everything `npm test` skips. */
|
|
export const NON_CI_TEST_GLOBS = [...MOBILE_TEST_GLOBS, ...PERF_TEST_GLOBS, ...BROWSER_TEST_GLOBS];
|