mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-11 05:11:49 +01:00
Name Boat consistently in environment selectors
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
d361a06dc3
commit
7b2e0084bd
5 files changed
+6
-4
No files matched your search
@@ -659,7 +659,7 @@ const TimelineList = memo(function TimelineList({
|
||||
environment's name and the Provider entry below already
|
||||
identify it; other drivers (ssh, local) remain useful. */}
|
||||
{run.environment.driver !== "sandbox" ? (
|
||||
<span> · {run.environment.driver}</span>
|
||||
<span> · {run.environment.driver === "computer" ? "Boat" : run.environment.driver}</span>
|
||||
) : null}
|
||||
</span>
|
||||
) : null}
|
||||
|
||||
@@ -24,7 +24,7 @@ export function environmentDisplayLabel(
|
||||
environment: Pick<Environment, "name" | "driver" | "metadata">,
|
||||
): string {
|
||||
if (isPlatformManagedEnvironment(environment)) return environment.name;
|
||||
return `${environment.name} · ${environment.driver}`;
|
||||
return `${environment.name} · ${environment.driver === "computer" ? "Boat" : environment.driver}`;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -109,6 +109,7 @@ function getConfiguredModel(agent: Agent): string | null {
|
||||
|
||||
function formatEnvironmentDriver(driver: Environment["driver"]): string {
|
||||
if (driver === "ssh") return "SSH";
|
||||
if (driver === "computer") return "Boat";
|
||||
return driver.charAt(0).toUpperCase() + driver.slice(1);
|
||||
}
|
||||
|
||||
|
||||
@@ -112,6 +112,7 @@ function getConfiguredModel(agent: Agent): string | null {
|
||||
|
||||
function formatEnvironmentDriver(driver: Environment["driver"]): string {
|
||||
if (driver === "ssh") return "SSH";
|
||||
if (driver === "computer") return "Boat";
|
||||
return driver.charAt(0).toUpperCase() + driver.slice(1);
|
||||
}
|
||||
|
||||
|
||||
@@ -2613,12 +2613,12 @@ export function CompanyEnvironments({ mode = "list" }: CompanyEnvironmentsProps)
|
||||
>
|
||||
<option value="">
|
||||
Default: {instanceDefaultEnvironment
|
||||
? `${instanceDefaultEnvironment.name} · ${instanceDefaultEnvironment.driver}`
|
||||
? environmentDisplayLabel(instanceDefaultEnvironment)
|
||||
: "Local"}
|
||||
</option>
|
||||
{reassignTargetEnvironments.map((environment) => (
|
||||
<option key={environment.id} value={environment.id}>
|
||||
{environment.name} · {environment.driver}
|
||||
{environmentDisplayLabel(environment)}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
||||
Reference in new issue
Block a user