feat(tree): close rust family shell cutover
This commit is contained in:
@@ -21,6 +21,23 @@ describe("fetchKernelFileTreeProjection", () => {
|
||||
rootNodeId: "page_root",
|
||||
items: [{ rowId: "asset:table_1" }],
|
||||
edges: [],
|
||||
meta: {
|
||||
search: {
|
||||
indexingVisibility: {
|
||||
schema: "mnote.file_tree.indexing_visibility",
|
||||
schemaVersion: 1,
|
||||
source: "kernel.project_view",
|
||||
status: "visible",
|
||||
requestKey: "page_root:预算",
|
||||
indexedResourceKinds: ["document", "index", "asset"],
|
||||
visibleResourceKinds: ["document", "index", "asset"],
|
||||
metrics: {
|
||||
visibleRows: 1,
|
||||
visibleEdges: 0,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}),
|
||||
{ status: 200 },
|
||||
@@ -44,6 +61,11 @@ describe("fetchKernelFileTreeProjection", () => {
|
||||
}),
|
||||
);
|
||||
expect(result.items.map((item) => item.rowId)).toEqual(["asset:table_1"]);
|
||||
expect(result.meta?.search?.indexingVisibility).toMatchObject({
|
||||
schema: "mnote.file_tree.indexing_visibility",
|
||||
status: "visible",
|
||||
requestKey: "page_root:预算",
|
||||
});
|
||||
});
|
||||
|
||||
it("固定 file_tree 搜索语义边界:命中数先截断,祖先补全不计入 maxResults", () => {
|
||||
|
||||
Reference in New Issue
Block a user