feat(grid): support selecting multiple fields for sorting

This commit is contained in:
HE WENJUN authored and GitHub committed 2026-10-01 03:11:16 +08:00
1 parent c840206b25
commit a1e2d39ed3
37 files changed
+2033 -48

No files matched your search

@@ -27,6 +27,13 @@ describe("openTabsPersistence originalSql round-trip", () => {
expect(restored.uiState).toEqual({ activeOutputView: "chart", redisResultViewMode: "console", resultPaneOpen: false });
});
it("preserves the structured sort field across a data tab round-trip", () => {
const [restored] = roundTrip([queryTab({ mode: "data", orderByInput: '"status" ASC', structuredOrderByInput: '"created_at" DESC' })]);
expect(restored.orderByInput).toBe('"status" ASC');
expect(restored.structuredOrderByInput).toBe('"created_at" DESC');
});
it("preserves namespaced special-page state across a round-trip", () => {
const uiState = {
page: {