Restore generic Studio object navigation and discovery
This commit is contained in:
+4
-1
@@ -27,7 +27,7 @@ export function queryRootSchema(root: QueryRoot, interfaces: readonly InterfaceR
|
||||
{
|
||||
kind: "relationship",
|
||||
id: workspaceObjectsMemberId,
|
||||
displayName: local ? "availableObjects" : "objects",
|
||||
displayName: "objects",
|
||||
target: { kind: "interface", interfaceRevisionId: root.interface },
|
||||
cardinality: "many-unique",
|
||||
ordered: false,
|
||||
@@ -36,5 +36,8 @@ export function queryRootSchema(root: QueryRoot, interfaces: readonly InterfaceR
|
||||
},
|
||||
],
|
||||
};
|
||||
// Local objects observes the confirmed server window. availableObjects is the
|
||||
// separate opt-in view that also includes pending local candidates.
|
||||
if (local) synthetic.members.push({ ...synthetic.members[0]!, displayName: "availableObjects" });
|
||||
return { interface: synthetic.revisionId, interfaces: [...interfaces, synthetic] };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user