Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,22 @@
and permission menus.
- Focus rings in the top bar are no longer clipped, and they appear blue at
once instead of fading in from black.
- A code or interface font that is not installed falls back to the default
font instead of a serif face. Generic names such as Monospace work in any
case.
- A Jev gate threshold saves when you leave the field or press Enter. A value
outside 0 to 1, or on the wrong side of its partner, stays as you typed it
with the reason under the field, and nothing is saved.
- Saving Jev settings shows "Saved" next to the button.
- While you search settings, no category stays highlighted in the left list.
- Lane routing and Completion check now say that pitwall chats ignore them.
- Acknowledge in the update dialog only acknowledges the health report
disclosure. Turning on sharing is a separate switch, and its disclosure stays
readable while the switch is off.
- Settings inputs show a blue edge while focused, and pages no longer shift
sideways when a long page shows a scrollbar.
- The Worktree setup and Delete workspace dialogs match the others: the same
surface and a plain Cancel button.

## 0.0.3 (2026-11-01)

Expand Down
4 changes: 3 additions & 1 deletion e2e/electron-navigation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1761,9 +1761,11 @@ test.describe('electron spatial navigation', () => {
})
.click()
await expect(healthReporting).toBeEnabled()
await expect(healthReporting).toBeChecked()
await expect(healthReporting).not.toBeChecked()
await healthReporting.focus()
await page.keyboard.press('Space')
await expect(healthReporting).toBeChecked()
await page.keyboard.press('Space')
await expect(healthReporting).not.toBeChecked()

await modal.getByRole('button', { exact: true, name: 'Close' }).click()
Expand Down
10 changes: 3 additions & 7 deletions src/renderer/src/components/DeleteWorkspaceModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function DeleteWorkspaceModal({
variant="opaque"
>
<Modal.Container placement="center" size="md">
<Modal.Dialog className="rounded-xl border border-border bg-surface shadow-[0_20px_60px_color-mix(in_srgb,var(--shadow-color)_40%,transparent)]">
<Modal.Dialog className="rounded-xl floating-surface">
<Modal.Header>
<Modal.Heading>Delete "{workspace.name}"?</Modal.Heading>
</Modal.Header>
Expand All @@ -62,7 +62,7 @@ export default function DeleteWorkspaceModal({
<label className="flex items-start gap-2 text-foreground">
<input
checked={removeWorktree}
className="mt-0.5"
className="mt-0.5 size-4 shrink-0 accent-primary"
disabled={isDeleting}
onChange={(event) =>
setRemoveWorktree(event.target.checked)
Expand All @@ -85,11 +85,7 @@ export default function DeleteWorkspaceModal({
{error ? <p className="text-accent-red">{error}</p> : null}
</Modal.Body>
<Modal.Footer>
<Button
isDisabled={isDeleting}
onPress={onClose}
variant="secondary"
>
<Button isDisabled={isDeleting} onPress={onClose} variant="ghost">
Cancel
</Button>
<Button
Expand Down
199 changes: 0 additions & 199 deletions src/renderer/src/components/JevGateControls.tsx

This file was deleted.

67 changes: 64 additions & 3 deletions src/renderer/src/components/JevSetup.test.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import { describe, expect, it } from 'vitest'
// @vitest-environment happy-dom
import { act } from 'react'
import { createRoot } from 'react-dom/client'
import { afterEach, describe, expect, it, vi } from 'vitest'
import {
JEV_CONSENT_REQUIRED_MESSAGE,
JEV_CREDENTIAL_REQUIRED_MESSAGE,
type JevSettingsStatus,
} from '../../../shared/jev'
import { getJevFirstRunMessage } from './JevSetup'
import JevSetup, { getJevFirstRunMessage } from './JevSetup'

const ready = {
Object.assign(globalThis, { IS_REACT_ACT_ENVIRONMENT: true })

const ready: JevSettingsStatus = {
allowProcessing: true,
canStoreCredential: true,
hasCredential: true,
Expand All @@ -30,3 +36,58 @@ describe('getJevFirstRunMessage', () => {
expect(getJevFirstRunMessage(null)).toBeNull()
})
})

let unmount = () => {}
afterEach(() => {
unmount()
vi.unstubAllGlobals()
})

async function renderJevSetup() {
const updateJevSettings = vi.fn(async () => ready)
vi.stubGlobal('aide', {
getJevSettings: vi.fn(async () => ready),
updateJevSettings,
})
const host = document.createElement('div')
document.body.append(host)
const root = createRoot(host)
await act(async () => root.render(<JevSetup workspaceId="ws-1" />))
unmount = () => {
act(() => root.unmount())
host.remove()
}
return { host, updateJevSettings }
}

describe('JevSetup', () => {
it('confirms a save and clears the confirmation on the next edit', async () => {
const { host, updateJevSettings } = await renderJevSetup()
const form = host.querySelector('form')
if (!form) throw new Error('form missing')
expect(host.textContent).not.toContain('Saved')

await act(async () => {
form.dispatchEvent(
new Event('submit', { bubbles: true, cancelable: true }),
)
})

expect(updateJevSettings).toHaveBeenCalledOnce()
expect(host.textContent).toContain('Saved')
expect(host.querySelectorAll('[role="status"]')).toHaveLength(1)
expect(host.querySelector('[role="status"]')?.textContent).toBe('Ready')

const input = host.querySelector<HTMLInputElement>('input[type="password"]')
if (!input) throw new Error('key input missing')
const setValue = Object.getOwnPropertyDescriptor(
HTMLInputElement.prototype,
'value',
)?.set
act(() => {
setValue?.call(input, 'sk-new')
input.dispatchEvent(new Event('input', { bubbles: true }))
})
expect(host.textContent).not.toContain('Saved')
})
})
Loading