Dev #11
@@ -432,6 +432,15 @@ export function CompanyEnvironments() {
|
||||
remote-managed adapters, and sandbox environments appear only when a run-capable sandbox provider plugin is
|
||||
installed.
|
||||
</div>
|
||||
{sandboxCreationEnabled ? (
|
||||
<div className="rounded-md border border-border/60 bg-muted/20 px-3 py-2 text-xs text-muted-foreground">
|
||||
Installed sandbox providers:{" "}
|
||||
<span className="font-medium text-foreground">
|
||||
{discoveredPluginSandboxProviders.map((provider) => provider.displayName).join(", ")}
|
||||
</span>
|
||||
. These are not adapter types. They back the Sandbox driver for adapters that support sandbox execution.
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
<div className="overflow-x-auto">
|
||||
<table className="w-full min-w-[34rem] text-left text-xs">
|
||||
@@ -442,7 +451,7 @@ export function CompanyEnvironments() {
|
||||
<th className="px-3 py-2 font-medium">Local</th>
|
||||
<th className="px-3 py-2 font-medium">SSH</th>
|
||||
{sandboxSupportVisible ? (
|
||||
<th className="px-3 py-2 font-medium">Sandbox</th>
|
||||
<th className="px-3 py-2 font-medium">Sandbox via plugin</th>
|
||||
) : null}
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -220,6 +220,10 @@ describe("CompanyEnvironments", () => {
|
||||
await flushReact();
|
||||
await flushReact();
|
||||
|
||||
expect(container.textContent).toContain("Installed sandbox providers:");
|
||||
expect(container.textContent).toContain("Secure Sandbox");
|
||||
expect(container.textContent).toContain("These are not adapter types.");
|
||||
|
||||
const editButton = Array.from(container.querySelectorAll("button"))
|
||||
.find((button) => button.textContent?.trim() === "Edit");
|
||||
expect(editButton).toBeTruthy();
|
||||
|
||||
Reference in New Issue
Block a user