Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite1ea4bf

Browse files
committed
rename apps to agentapps
1 parentc0607b1 commite1ea4bf

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-
typeAppsProps={
15-
section:AppSection;
14+
typeAgentAppsProps={
15+
section:AgentAppSection;
1616
agent:WorkspaceAgent;
1717
workspace:Workspace;
1818
};
1919

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

46-
typeAppSection={
50+
typeAgentAppSection={
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-
exportfunctionorganizeAgentApps(apps:readonlyWorkspaceApp[]):AppSection[]{
65-
letcurrentSection:AppSection|undefined=undefined;
66-
constappGroups:AppSection[]=[];
67-
constgroupsByName=newMap<string,AppSection>();
68+
exportfunctionorganizeAgentApps(
69+
apps:readonlyWorkspaceApp[],
70+
):AgentAppSection[]{
71+
letcurrentSection:AgentAppSection|undefined=undefined;
72+
constappGroups:AgentAppSection[]=[];
73+
constgroupsByName=newMap<string,AgentAppSection>();
6874

6975
for(constappofapps){
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
importtype{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
importAutoSizerfrom"react-virtualized-auto-sizer";
3030
importtype{FixedSizeListasList,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)

[8]ページ先頭

©2009-2025 Movatter.jp