Skip to content

Commit e1ea4bf

Browse files
committed
rename apps to agentapps
1 parent c0607b1 commit e1ea4bf

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

site/src/modules/resources/AgentApps/AgentApps.tsx

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,17 @@ import type { FC } from "react";
1111
import { AgentButton } from "../AgentButton";
1212
import { AppLink } from "../AppLink/AppLink";
1313

14-
type AppsProps = {
15-
section: AppSection;
14+
type AgentAppsProps = {
15+
section: AgentAppSection;
1616
agent: WorkspaceAgent;
1717
workspace: Workspace;
1818
};
1919

20-
export const Apps: FC<AppsProps> = ({ section, agent, workspace }) => {
20+
export const AgentApps: FC<AgentAppsProps> = ({
21+
section,
22+
agent,
23+
workspace,
24+
}) => {
2125
return section.group ? (
2226
<DropdownMenu>
2327
<DropdownMenuTrigger asChild>
@@ -43,7 +47,7 @@ export const Apps: FC<AppsProps> = ({ section, agent, workspace }) => {
4347
);
4448
};
4549

46-
type AppSection = {
50+
type AgentAppSection = {
4751
/**
4852
* If there is no `group`, just render all of the apps inline. If there is a
4953
* group name, show them all in a dropdown.
@@ -61,10 +65,12 @@ type AppSection = {
6165
* every ungrouped section is expected to have a group in between, to make the
6266
* algorithm a little simpler to implement.
6367
*/
64-
export function organizeAgentApps(apps: readonly WorkspaceApp[]): AppSection[] {
65-
let currentSection: AppSection | undefined = undefined;
66-
const appGroups: AppSection[] = [];
67-
const groupsByName = new Map<string, AppSection>();
68+
export function organizeAgentApps(
69+
apps: readonly WorkspaceApp[],
70+
): AgentAppSection[] {
71+
let currentSection: AgentAppSection | undefined = undefined;
72+
const appGroups: AgentAppSection[] = [];
73+
const groupsByName = new Map<string, AgentAppSection>();
6874

6975
for (const app of apps) {
7076
if (app.hidden) {

site/src/modules/resources/AgentDevcontainerCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { AppStatuses } from "pages/WorkspacePage/AppStatuses";
2222
import type { FC } from "react";
2323
import { useEffect, useState } from "react";
2424
import { portForwardURL } from "utils/portForward";
25-
import { Apps, organizeAgentApps } from "./AgentApps/AgentApps";
25+
import { AgentApps, organizeAgentApps } from "./AgentApps/AgentApps";
2626
import { AgentButton } from "./AgentButton";
2727
import { AgentLatency } from "./AgentLatency";
2828
import { SubAgentStatus } from "./AgentStatus";
@@ -253,7 +253,7 @@ export const AgentDevcontainerCard: FC<AgentDevcontainerCardProps> = ({
253253
/>
254254
)}
255255
{appSections.map((section, i) => (
256-
<Apps
256+
<AgentApps
257257
key={section.group ?? i}
258258
section={section}
259259
agent={subAgent}

site/src/modules/resources/AgentRow.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import {
2828
import { useQuery } from "react-query";
2929
import AutoSizer from "react-virtualized-auto-sizer";
3030
import type { FixedSizeList as List, ListOnScrollProps } from "react-window";
31-
import { Apps, organizeAgentApps } from "./AgentApps/AgentApps";
31+
import { AgentApps, organizeAgentApps } from "./AgentApps/AgentApps";
3232
import { AgentDevcontainerCard } from "./AgentDevcontainerCard";
3333
import { AgentLatency } from "./AgentLatency";
3434
import { AGENT_LOG_LINE_HEIGHT } from "./AgentLogs/AgentLogLine";
@@ -240,7 +240,7 @@ export const AgentRow: FC<AgentRowProps> = ({
240240
/>
241241
)}
242242
{appSections.map((section, i) => (
243-
<Apps
243+
<AgentApps
244244
key={section.group ?? i}
245245
section={section}
246246
agent={agent}

0 commit comments

Comments
 (0)