mirror of
https://github.com/stablyai/orca.git
synced 2026-10-27 08:02:51 +00:00
fix(kanban-search): derive the too-long badge from the deferred query
The badge describes the board, so reading the live query made it flip a frame before the filter it is describing. Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -74,7 +74,9 @@ export function useWorkspaceKanbanSearch(args: {
|
||||
hasQuery: matchingWorktreeIds !== null,
|
||||
// Why: whitespace-only text is also non-filtering, but it is self-evidently
|
||||
// so. A discarded 2KB paste looks identical to a query that matched
|
||||
// everything, so only that case earns an explanation.
|
||||
isQueryTooLarge: isWorktreePaletteQueryTooLarge(query)
|
||||
// everything, so only that case earns an explanation. Read the deferred
|
||||
// query, not the live one — this describes the board, so it has to change
|
||||
// on the same frame the board does.
|
||||
isQueryTooLarge: isWorktreePaletteQueryTooLarge(deferredQuery)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user