Skip to content

Commit 32fa1a3

Browse files
authored
Merge pull request #299 from opengovern/ui-changes
UI changes
2 parents 93387c7 + a8797dc commit 32fa1a3

File tree

5 files changed

+22
-23
lines changed

5 files changed

+22
-23
lines changed

services/webui/package-lock.json

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

services/webui/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"runtime-env-cra": "^0.2.4",
7070
"styled-components": "^6.1.8",
7171
"swagger-typescript-api": "^13.0.23",
72+
"@remixicon/react": "^4.3.0",
7273
"swr": "^2.2.4",
7374
"typescript": "^4.9.5",
7475
"web-vitals": "^2.1.4"

services/webui/src/components/AIComponents/Agents/index.tsx

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,7 @@ function Agents() {
4242
enabled: true,
4343
is_available: true,
4444
},
45-
{
46-
name: 'Sales',
47-
description:
48-
'Answers questions about sales activities, including: total activities per rep, activity breakdown by type, activity per deal, deal stage progression activity, and time to first activity. Enables analysis of sales rep performance and deal progression.',
49-
welcome_message:
50-
'Hello! This is your Sales Agent. I can answer questions about sales activities, including total activities per rep, activity breakdown by type, activity per deal, deal stage progression activity, and time to first activity. What can I help you with? For example:',
51-
sample_questions: [
52-
'Show me the total activities (calls, emails, meetings) for each sales rep.',
53-
'Which sales reps had the most/least activities?',
54-
'How much activity was logged for each deal we closed?',
55-
],
56-
id: 'sales',
57-
enabled: true,
58-
is_available: true,
59-
},
45+
6046
])
6147
const selected_agent = {
6248
id: 'identity_access',

services/webui/src/components/Layout/Sidebar/index.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import {
2525
CommandLineIcon,
2626
UserIcon,
2727
} from '@heroicons/react/24/outline'
28+
import { RiChatSmileAiLine, RiChatSmileLine } from '@remixicon/react'
2829
import { useAtom, useAtomValue, useSetAtom } from 'jotai'
2930
import { Popover, Transition } from '@headlessui/react'
3031
import { Fragment, useEffect, useState } from 'react'
@@ -265,18 +266,19 @@ export default function Sidebar({ currentPage }: ISidebar) {
265266
icon: CalendarDateRangeIcon,
266267
isPreview: false,
267268
},
268-
{
269-
name: 'Agent AI',
270-
page: 'ai',
271-
icon: UserIcon,
272-
isPreview: false,
273-
},
274269
{
275270
name: 'Administration',
276271
page: ['administration'],
277272
icon: Cog6ToothIcon,
278273
isPreview: false,
279274
},
275+
{
276+
name: 'Agent AI',
277+
page: 'ai',
278+
icon: RiChatSmileAiLine,
279+
isPreview: true,
280+
},
281+
280282
{
281283
name: 'Automation',
282284
page: 'automation',

services/webui/src/pages/AI/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { useState } from "react"
22
import Agents from "../../components/AIComponents/Agents"
33
import AIChat from "./chat/AIChat"
44
import { ArrowLeftIcon, ArrowRightIcon } from "@heroicons/react/24/outline"
5+
import { RiArrowLeftLine, RiArrowRightLine } from "@remixicon/react"
56

67

78
export default function AI() {
@@ -33,7 +34,7 @@ export default function AI() {
3334
className="text-slate-950 dark:text-slate-200 w-full justify-end flex pr-2 cursor-pointer"
3435
onClick={() => setIsOpen(false)}
3536
>
36-
<ArrowRightIcon className="w-5" />
37+
<RiArrowLeftLine className="w-5" />
3738
</span>
3839
</>
3940
) : (
@@ -42,7 +43,7 @@ export default function AI() {
4243
className="text-slate-950 dark:text-slate-200 w-full justify-start flex pr-2 cursor-pointer"
4344
onClick={() => setIsOpen(true)}
4445
>
45-
<ArrowLeftIcon className="w-5" />
46+
<RiArrowRightLine className="w-5" />
4647
</span>
4748
</>
4849
)}

0 commit comments

Comments
 (0)