Skip to content

Commit b57e311

Browse files
committed
bug fixes from excel
1 parent a8a1fce commit b57e311

File tree

5 files changed

+24
-9
lines changed

5 files changed

+24
-9
lines changed

src/frontend_react/src/components/content/PlanPanelLeft.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { PlanPanelLefProps, PlanWithSteps, Task } from "@/models";
2020
import { apiService } from "@/api";
2121
import { TaskService } from "@/services";
2222
import MsftColor from "@/coral/imports/MsftColor";
23+
import ContosoLogo from "./contoso";
2324
import "../../styles/PlanPanelLeft.css";
2425

2526
const PlanPanelLeft: React.FC<PlanPanelLefProps> = ({ onNewTaskButton }) => {
@@ -97,7 +98,7 @@ const PlanPanelLeft: React.FC<PlanPanelLefProps> = ({ onNewTaskButton }) => {
9798
return (
9899
<div style={{ flexShrink: 0, display: "flex", overflow: "hidden" }}>
99100
<PanelLeft panelWidth={280} panelResize={true}>
100-
<PanelLeftToolbar panelTitle="Microsoft" panelIcon={<MsftColor />}>
101+
<PanelLeftToolbar panelTitle="Contoso" panelIcon={<ContosoLogo />}>
101102
<Tooltip content="New task" relationship={"label"} />
102103
</PanelLeftToolbar>
103104

src/frontend_react/src/components/content/TaskDetails.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
Checkbox,
1010
Body1,
1111
Body1Strong,
12+
Caption1,
1213
} from "@fluentui/react-components";
1314
import {
1415
Add20Regular,
@@ -94,7 +95,7 @@ const TaskDetails: React.FC<TaskDetailsProps> = ({
9495

9596
<div className="task-details-subtask-list">
9697
{subTasks.map((subtask) => {
97-
const { description } = TaskService.splitSubtaskAction(
98+
const { description, functionOrDetails } = TaskService.splitSubtaskAction(
9899
subtask.action
99100
);
100101
const canInteract = planData.plan.human_clarification_response !== null
@@ -105,7 +106,7 @@ const TaskDetails: React.FC<TaskDetailsProps> = ({
105106
</div>
106107
<div className="task-details-subtask-content">
107108
<span className={`task-details-subtask-description ${subtask.human_approval_status === "rejected" ? "strikethrough" : ""}`}>
108-
{description}
109+
{description} {functionOrDetails && <Caption1>{functionOrDetails}</Caption1>}
109110
</span>
110111
<div className="task-details-action-buttons">
111112
{(subtask.human_approval_status !== "accepted" && subtask.human_approval_status !== "rejected") && (
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const ContosoLogo: React.FC = () => {
2+
return (
3+
<svg
4+
width="32"
5+
height="32"
6+
viewBox="0 0 32 32"
7+
fill="none"
8+
xmlns="http://www.w3.org/2000/svg"
9+
>
10+
<path d="M5.04349 5.04349H15.4783V15.4783H5.04349V5.04349Z" fill="#F35325" />
11+
<path d="M16.5217 5.04349H26.9565V15.4783H16.5217V5.04349Z" fill="#81BC06" />
12+
<path d="M5.04349 16.5217H15.4783V26.9565H5.04349V16.5217Z" fill="#05A6F0" />
13+
<path d="M16.5217 16.5217H26.9565V26.9565H16.5217V16.5217Z" fill="#FFBA08" />
14+
</svg>
15+
);
16+
}
17+
18+
export default ContosoLogo;

src/frontend_react/src/coral/modules/ChatInput.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,6 @@ const ChatInput: React.FC<ChatInputProps> = ({
106106
maxHeight: "32px",
107107
}}
108108
>
109-
<FluentTooltip content="AI-generated content may be incorrect." relationship="label">
110-
<Tag appearance="filled" size="small">
111-
AI Generated
112-
</Tag>
113-
</FluentTooltip>
114109

115110
<HeaderTools>
116111
{children}

src/frontend_react/src/services/TaskService.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export class TaskService {
108108
if (colonIndex !== -1) {
109109
return {
110110
description: action.substring(0, colonIndex).trim(),
111-
functionOrDetails: action.substring(colonIndex + 1).trim()
111+
functionOrDetails: null
112112
};
113113
}
114114

0 commit comments

Comments
 (0)