test: add coverage for readLastMessagePreviewFromTranscript
Also add CHANGELOG entry and perf docs for session list flags.
This commit is contained in:
committed by
Peter Steinberger
parent
f2666d2092
commit
36719690a2
@@ -101,9 +101,9 @@ export function fuzzyFilterLower<T extends { searchTextLower?: string }>(
|
||||
/**
|
||||
* Prepare items for fuzzy filtering by pre-computing lowercase search text.
|
||||
*/
|
||||
export function prepareSearchItems<
|
||||
T extends { label?: string; description?: string; searchText?: string },
|
||||
>(items: T[]): (T & { searchTextLower: string })[] {
|
||||
export function prepareSearchItems<T extends { label?: string; description?: string; searchText?: string }>(
|
||||
items: T[],
|
||||
): (T & { searchTextLower: string })[] {
|
||||
return items.map((item) => {
|
||||
const parts: string[] = [];
|
||||
if (item.label) parts.push(item.label);
|
||||
|
||||
Reference in New Issue
Block a user