fix(desktop): unclog lint on worktree-scoped rail PR

Perfectionist import order on the changed-files card and coding-status
tests, plus the padding blanks eslint wants in the new review scope tests.
This commit is contained in:
Brooklyn Nicholson 2026-07-30 07:08:19 -05:00
parent 2e3e9c1765
commit 87e14d1f2d
3 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,5 @@
import { type FC, useMemo } from 'react'
import { useStore } from '@nanostores/react'
import { type FC, useMemo } from 'react'
import { useSessionView } from '@/app/chat/session-view'
import { deriveChangedFiles } from '@/components/assistant-ui/thread/changed-files'

View file

@ -8,8 +8,8 @@ import {
$repoStatusLoading,
_resetCodingStatusForTests,
refreshAllRepoStatuses,
registerRepoStatusCwd,
refreshRepoStatus,
registerRepoStatusCwd,
repoStatusForCwd
} from './coding-status'
import { $currentCwd, $selectedStoredSessionId } from './session'

View file

@ -252,6 +252,7 @@ describe('view state', () => {
const review = stubReview({
list: vi.fn(async () => ({ files: [file('tile.ts')] }))
})
openReview('/tile-worktree')
expect($reviewOpen.get()).toBe(true)
expect($reviewScopeCwd.get()).toBe('/tile-worktree')
@ -279,6 +280,7 @@ describe('view state', () => {
const review = stubReview({
list: vi.fn(async (cwd: string) => ({ files: [file(cwd === '/tile' ? 'tile.ts' : 'main.ts')] }))
})
openReview('/tile')
await Promise.resolve()
await Promise.resolve()