Effective in app
Preview the runtime stack for this path: workspace default,
organization/app override, then personal override.
{isLoading ? (
) : (
{availabilityLabel(availability)}
)}
{resource.scope === "selected" ? (
Selected resources are app-specific exceptions. Use All apps for
company-wide context that should be inherited everywhere without copy
or sync.
) : null}
{isLoading ? (
{Array.from({ length: 3 }).map((_, index) => (
))}
) : (
{layers.map((layer) => {
const state = layerState(layer);
return (
{layer.label}
{state.label}
{layer.owner}
{layer.resource ? (
{layer.resource.path}
{formatTimestamp(layer.resource.updatedAt)}
) : (
No resource exists at this layer.
)}
);
})}
)}
{active ? (
<>
Active file:{" "}
{active.owner}/{active.path}
>
) : (
"No active resource exists for this path yet."
)}
);
}
function ResourceRow({ resource, grants }: { resource: any; grants: any[] }) {
const [expanded, setExpanded] = useState(false);
const deleteResource = useActionMutation("delete-workspace-resource", {
onSuccess: (result: any) =>
toast.success(
workspaceResourceMutationMessage(result, "Resource deleted"),
),
onError: (err) => toast.error(String(err)),
});
const revokeGrant = useActionMutation("revoke-workspace-resource-grant", {
onSuccess: () => toast.success("Grant revoked"),
onError: (err) => toast.error(String(err)),
});
const kindInfo = KIND_CONFIG[resource.kind as keyof typeof KIND_CONFIG];
const KindIcon = kindInfo?.icon || IconCode;
const activeGrants = grants.filter((g) => g.status === "active");
return (