diff --git a/src/app/playground/chat/chat.module.css b/src/app/playground/chat/chat.module.css index f90ba646..3b4de280 100644 --- a/src/app/playground/chat/chat.module.css +++ b/src/app/playground/chat/chat.module.css @@ -5,7 +5,7 @@ justify-content: flex-start; width: 100%; height: 90vh; - background-color: #f7f7f8; + background-color:white; padding: 20px; box-sizing: border-box; } diff --git a/src/app/playground/chat/page.tsx b/src/app/playground/chat/page.tsx index 48bc9dd7..916ce42d 100644 --- a/src/app/playground/chat/page.tsx +++ b/src/app/playground/chat/page.tsx @@ -6,7 +6,7 @@ import { AppLayout } from '@/components/AppLayout'; import { Button } from '@patternfly/react-core/dist/dynamic/components/Button'; import { Form } from '@patternfly/react-core/dist/dynamic/components/Form'; import { FormGroup } from '@patternfly/react-core/dist/dynamic/components/Form'; -import { TextInput } from '@patternfly/react-core/'; +import { Breadcrumb, BreadcrumbItem, PageBreadcrumb, PageSection, TextContent, TextInput, Title } from '@patternfly/react-core/'; import { Select } from '@patternfly/react-core/dist/dynamic/components/Select'; import { SelectOption, SelectList } from '@patternfly/react-core/dist/dynamic/components/Select'; import { MenuToggle, MenuToggleElement } from '@patternfly/react-core/dist/dynamic/components/MenuToggle'; @@ -244,6 +244,24 @@ const ChatPage: React.FC = () => { return ( + + + Dashboard + Chat + + + + + + Chat with a Model + + +
+ Chat with the served models. Currently it allows you to chat with Merlinite-7b and Granite-7B models hosted on your Cloud. Users can add + their own custom endpoint using the "Custom Model Endpoints" feature. Once the custom endpoint is configured, it will be available + in the model selector dropdown with the pre hosted models. +
+
Model Selector diff --git a/src/app/playground/endpoints/page.tsx b/src/app/playground/endpoints/page.tsx index e577b33d..299b23a5 100644 --- a/src/app/playground/endpoints/page.tsx +++ b/src/app/playground/endpoints/page.tsx @@ -1,7 +1,7 @@ 'use client'; import React, { useState, useEffect } from 'react'; -import { Page, PageSection } from '@patternfly/react-core/dist/dynamic/components/Page'; +import { Page, PageBreadcrumb, PageSection } from '@patternfly/react-core/dist/dynamic/components/Page'; import { DataList, DataListItem, @@ -12,7 +12,7 @@ import { } from '@patternfly/react-core/dist/dynamic/components/DataList'; import { Button } from '@patternfly/react-core/dist/dynamic/components/Button'; import { ModalVariant } from '@patternfly/react-core/dist/dynamic/next/components/Modal'; -import { Modal } from '@patternfly/react-core/components/'; +import { Breadcrumb, BreadcrumbItem, Modal, TextContent } from '@patternfly/react-core/components/'; import { Form, FormGroup } from '@patternfly/react-core/dist/dynamic/components/Form'; import { TextInput } from '@patternfly/react-core/dist/dynamic/components/TextInput'; import { Title } from '@patternfly/react-core/dist/dynamic/components/Title'; @@ -121,8 +121,25 @@ const EndpointsPage: React.FC = () => { return ( + + + Dashboard + Custom Model Endpoints + + + + + + Custom Model Endpoints + + +
+ Manage your own customer model endpoints. If you have a custom model that is served by an endpoint, you can add it here. This will allow you + to use the custom model in the playground chat. +
+
- +
Manage Endpoints diff --git a/src/components/Contribute/Knowledge/index.tsx b/src/components/Contribute/Knowledge/index.tsx index 8702d39f..a2b2bc23 100644 --- a/src/components/Contribute/Knowledge/index.tsx +++ b/src/components/Contribute/Knowledge/index.tsx @@ -397,7 +397,7 @@ export const KnowledgeForm: React.FunctionComponent = ({ kno - Home + Dashboard Knowledge Contribution diff --git a/src/components/Contribute/Skill/index.tsx b/src/components/Contribute/Skill/index.tsx index 312c9151..80257b2b 100644 --- a/src/components/Contribute/Skill/index.tsx +++ b/src/components/Contribute/Skill/index.tsx @@ -321,7 +321,7 @@ export const SkillForm: React.FunctionComponent = ({ skillEditFo - Home + Dashboard Skill Contribution diff --git a/src/components/Dashboard/index.tsx b/src/components/Dashboard/index.tsx index eb6159a8..30b829b4 100644 --- a/src/components/Dashboard/index.tsx +++ b/src/components/Dashboard/index.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import { useSession } from 'next-auth/react'; import { Button } from '@patternfly/react-core/dist/dynamic/components/Button'; import { Label } from '@patternfly/react-core/dist/dynamic/components/Label'; -import { PageSection } from '@patternfly/react-core/dist/dynamic/components/Page'; +import { PageBreadcrumb, PageSection } from '@patternfly/react-core/dist/dynamic/components/Page'; import { Title } from '@patternfly/react-core/dist/dynamic/components/Title'; import { Card, CardTitle, CardBody } from '@patternfly/react-core/dist/dynamic/components/Card'; import { Stack, StackItem } from '@patternfly/react-core/dist/dynamic/layouts/Stack'; @@ -10,11 +10,15 @@ import { Flex, FlexItem } from '@patternfly/react-core/dist/dynamic/layouts/Flex import { useRouter } from 'next/navigation'; import { fetchPullRequests, getGitHubUsername } from '../../utils/github'; import { PullRequest } from '../../types'; +import { Breadcrumb, BreadcrumbItem } from '@patternfly/react-core/dist/esm/components/Breadcrumb'; +import { TextContent } from '@patternfly/react-core/dist/esm/components/Text/TextContent'; +import OutlinedQuestionCircleIcon from '@patternfly/react-icons/dist/esm/icons/outlined-question-circle-icon'; +import { Popover } from '@patternfly/react-core/dist/esm/components/Popover'; +import ExternalLinkAltIcon from '@patternfly/react-icons/dist/esm/icons/external-link-alt-icon'; const Index: React.FunctionComponent = () => { const { data: session } = useSession(); const [pullRequests, setPullRequests] = React.useState([]); - const [username, setUsername] = React.useState(null); const [error, setError] = React.useState(null); const router = useRouter(); @@ -26,7 +30,6 @@ const Index: React.FunctionComponent = () => { Accept: 'application/vnd.github.v3+json' }; const fetchedUsername = await getGitHubUsername(header); - setUsername(fetchedUsername); const data = await fetchPullRequests(session.accessToken); const filteredPRs = data.filter( (pr: PullRequest) => pr.user.login === fetchedUsername && pr.labels.some((label) => label.name === 'skill' || label.name === 'knowledge') @@ -64,48 +67,74 @@ const Index: React.FunctionComponent = () => { } return ( - - - Taxonomy Submissions for {username || 'Loading...'} - -
- {error &&
{error}
} - - {pullRequests.map((pr) => ( - - - {pr.title} - - - State: {pr.state} - Created At: {new Date(pr.created_at).toLocaleString()} - Updated At: {new Date(pr.updated_at).toLocaleString()} - - {pr.labels.map((label) => ( - - ))} - - - - - - {pr.state === 'open' && ( - - )} - - - - - - ))} - - + + + {pr.state === 'open' && ( + + )} + + + + + + ))} + + +
); };