Skip to content

Commit

Permalink
Merge pull request #458 from changelia/feature/runpod-ui
Browse files Browse the repository at this point in the history
feature: Pods UI
  • Loading branch information
Chkhikvadze authored May 31, 2024
2 parents 7d9ca8c + b823c1c commit 5fdd525
Show file tree
Hide file tree
Showing 11 changed files with 824 additions and 0 deletions.
15 changes: 15 additions & 0 deletions apps/ui/src/Route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ import EditScheduleModal from 'modals/EditScheduleModal'
import VoiceOptionsModal from 'modals/VoiceOptionsModal'
import LlmSettingsModal from 'modals/LlmSettingsModal'
import { InviteUsers, CreateUserAccess } from 'pages/InviteUsers'
import { Pods, PodsContent } from 'pages/Pods'

const Route = () => {
const { loading } = useContext(AuthContext)
Expand Down Expand Up @@ -411,6 +412,20 @@ const Route = () => {
key={document.location.href}
/> */}
</Router>

<Router path='pods' element={<Pods />} key={document.location.href}>
{/* <Router index element={<Pods />} key={document.location.href} /> */}
<Router
path={'create-pod'}
element={<PodsContent />}
key={document.location.href}
/>
{/* <Router
path={':apiKeyId/edit-api-key'}
element={<EditApiKeyForm />}
key={document.location.href}
/> */}
</Router>
{/* <Router path={'groups'} element={<MainRouteLayout />} key={document.location.href}>
<Router index element={<Group />} key={document.location.href} />
</Router> */}
Expand Down
2 changes: 2 additions & 0 deletions apps/ui/src/pages/Datasource/Datasource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const Datasource = () => {
<StyledAppContainer>
<StyledContainer>
<StyledMainWrapper>

<StyledLeftColumn>
<ListHeader
title={t('datasources')}
Expand Down Expand Up @@ -122,6 +123,7 @@ const Datasource = () => {
</StyledLeftColumn>

<StyledChatWrapper>{outlet}</StyledChatWrapper>

</StyledMainWrapper>
</StyledContainer>
</StyledAppContainer>
Expand Down
11 changes: 11 additions & 0 deletions apps/ui/src/pages/Navigation/MainNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import Tooltip from 'share-ui/components/Tooltip/Tooltip'
import Chats from 'share-ui/components/Icon/Icons/components/Chats'
import Integrations from 'share-ui/components/Icon/Icons/components/integrations'
import FineTuning from 'share-ui/components/Icon/Icons/components/FineTuning'
import Book from 'share-ui/components/Icon/Icons/components/Book'

const MainNavigation = ({ user }: { user: any }) => {
const { getDomainConfig } = useDomainConfig()
Expand Down Expand Up @@ -183,6 +184,16 @@ const MainNavigation = ({ user }: { user: any }) => {
</StyledLi>
</Tooltip>
)}

<Tooltip content={'Pods'} position={Tooltip.positions.LEFT}>
<StyledLi
isActive={includes(active, 'pods')}
onClick={() => onHandleClick('/pods')}
>
<Book size={30} />
{includes(active, 'pods') && <StyledCorner />}
</StyledLi>
</Tooltip>

{/* {isDiscover && (
<Tooltip content={t('discover')} position={Tooltip.positions.LEFT}>
Expand Down
76 changes: 76 additions & 0 deletions apps/ui/src/pages/Pods/Card.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

216 changes: 216 additions & 0 deletions apps/ui/src/pages/Pods/Details.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5fdd525

Please sign in to comment.