From 9737f7143bc02a41a4db372cd9b3f35ee2d5eb72 Mon Sep 17 00:00:00 2001 From: simoleo89 Date: Sat, 6 Jun 2026 15:08:46 +0200 Subject: [PATCH] feat(furni-editor): add sortField/sortDir to search composer Append optional sort field + direction to FurniEditorSearchComposer so the server can order the full result set (not just the visible page). Defaults id/asc keep existing callers working. --- .../outgoing/furnieditor/FurniEditorSearchComposer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/communication/src/messages/outgoing/furnieditor/FurniEditorSearchComposer.ts b/packages/communication/src/messages/outgoing/furnieditor/FurniEditorSearchComposer.ts index 35351f0..d15ae9c 100644 --- a/packages/communication/src/messages/outgoing/furnieditor/FurniEditorSearchComposer.ts +++ b/packages/communication/src/messages/outgoing/furnieditor/FurniEditorSearchComposer.ts @@ -4,9 +4,9 @@ export class FurniEditorSearchComposer implements IMessageComposer; - constructor(query: string, type: string, page: number) + constructor(query: string, type: string, page: number, sortField: string = 'id', sortDir: string = 'asc') { - this._data = [ query, type, page ]; + this._data = [ query, type, page, sortField, sortDir ]; } dispose(): void