mirror of
https://github.com/stablyai/orca.git
synced 2026-10-23 08:03:39 +00:00
revert unrelated oxfmt reflow from merge commit
This commit is contained in:
@@ -209,7 +209,7 @@ describe('an auto compact claims nothing', () => {
|
||||
expect(state.lastStatusByPaneKey.get(PANE_KEY)?.payload.state).toBe('done')
|
||||
})
|
||||
|
||||
it("writes no compact-scoped state, so it cannot spend the pane's consumed-compact slot", () => {
|
||||
it('writes no compact-scoped state, so it cannot spend the pane\'s consumed-compact slot', () => {
|
||||
const state = createHookListenerState()
|
||||
startTurn(state)
|
||||
|
||||
|
||||
+1
-1
@@ -105,7 +105,7 @@ describe('useWorkspaceCleanupBrowseState', () => {
|
||||
field: 'size',
|
||||
direction: 'desc'
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
it('keeps a cleared chip cleared when a facet patch lands in the same tick', () => {
|
||||
const controller = mountController()
|
||||
|
||||
+1
-4
@@ -142,10 +142,7 @@ function getChipKindLabel(kind: string): string {
|
||||
case 'ticket':
|
||||
return translate('components.workspace.cleanup.browse.chip.kind.ticket', 'Ticket')
|
||||
case 'ticketSource':
|
||||
return translate(
|
||||
'components.workspace.cleanup.browse.chip.kind.ticketSource',
|
||||
'Ticket source'
|
||||
)
|
||||
return translate('components.workspace.cleanup.browse.chip.kind.ticketSource', 'Ticket source')
|
||||
case 'context':
|
||||
return translate('components.workspace.cleanup.browse.chip.kind.context', 'Context')
|
||||
case 'host':
|
||||
|
||||
@@ -31,7 +31,8 @@ export const createWorkspaceCleanupBrowseSlice: StateCreator<
|
||||
|
||||
updateWorkspaceCleanupBrowseState: (next) => {
|
||||
set((state) => ({
|
||||
workspaceCleanupBrowse: typeof next === 'function' ? next(state.workspaceCleanupBrowse) : next
|
||||
workspaceCleanupBrowse:
|
||||
typeof next === 'function' ? next(state.workspaceCleanupBrowse) : next
|
||||
}))
|
||||
if (persistTimer !== null) {
|
||||
clearTimeout(persistTimer)
|
||||
|
||||
@@ -99,11 +99,10 @@ describe('listAppliedWorkspaceCleanupFilters', () => {
|
||||
filters.size.includeUnsized = false
|
||||
filters.status.matchStatusless = false
|
||||
|
||||
expect(
|
||||
list(filters)
|
||||
.map((a) => a.id)
|
||||
.sort()
|
||||
).toEqual(['size.includeUnsized', 'status.matchStatusless'])
|
||||
expect(list(filters).map((a) => a.id).sort()).toEqual([
|
||||
'size.includeUnsized',
|
||||
'status.matchStatusless'
|
||||
])
|
||||
})
|
||||
|
||||
it('gives every constraint a unique, stable id', () => {
|
||||
|
||||
@@ -93,14 +93,10 @@ export function listAppliedWorkspaceCleanupFilters(
|
||||
}
|
||||
|
||||
if (status.workspaceStatuses.length > 0) {
|
||||
add(
|
||||
'status.workspaceStatuses',
|
||||
format.list('status', status.workspaceStatuses.length),
|
||||
(f) => ({
|
||||
...f,
|
||||
status: { ...f.status, workspaceStatuses: [] }
|
||||
})
|
||||
)
|
||||
add('status.workspaceStatuses', format.list('status', status.workspaceStatuses.length), (f) => ({
|
||||
...f,
|
||||
status: { ...f.status, workspaceStatuses: [] }
|
||||
}))
|
||||
}
|
||||
if (!status.matchStatusless) {
|
||||
add('status.matchStatusless', format.excludesStatusless(), (f) => ({
|
||||
@@ -125,14 +121,10 @@ export function listAppliedWorkspaceCleanupFilters(
|
||||
}))
|
||||
}
|
||||
if (agent.retainedDoneAgents !== 'any') {
|
||||
add(
|
||||
'agent.retainedDoneAgents',
|
||||
format.triState('retainedAgents', agent.retainedDoneAgents),
|
||||
(f) => ({
|
||||
...f,
|
||||
agent: { ...f.agent, retainedDoneAgents: 'any' }
|
||||
})
|
||||
)
|
||||
add('agent.retainedDoneAgents', format.triState('retainedAgents', agent.retainedDoneAgents), (f) => ({
|
||||
...f,
|
||||
agent: { ...f.agent, retainedDoneAgents: 'any' }
|
||||
}))
|
||||
}
|
||||
|
||||
if (git.states.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user