Skip to content

Commit

Permalink
- improve: job styles
Browse files Browse the repository at this point in the history
  • Loading branch information
agallardol committed Oct 12, 2023
1 parent 8cae843 commit 17b9d50
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions apps/shinkai-visor/src/components/create-job/create-job.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,15 @@ export const CreateJob = () => {
/>

{query.has('context') && (
<blockquote className="max-h-28 p-4 mb-5 border-l-4 border-gray-300 bg-gray-50 dark:border-gray-500 dark:bg-gray-800">
<blockquote className="max-h-28 p-4 mb-5 border-l-4 border-gray-300 bg-secondary-600 dark:border-gray-500 dark:bg-gray-800">
<p className="italic dark:text-white text-ellipsis overflow-hidden h-full">
{query.get('context')}
</p>
</blockquote>
)}

{location.state?.files?.length && (
<blockquote className="max-h-28 p-4 mb-5 border-l-4 border-gray-300 bg-gray-50 dark:border-gray-500 dark:bg-gray-800">
<blockquote className="max-h-28 p-4 mb-5 border-l-4 border-gray-300 bg-secondary-600 dark:border-gray-500 dark:bg-gray-800">
<FileList files={location.state?.files}></FileList>
</blockquote>
)}
Expand Down
10 changes: 8 additions & 2 deletions apps/shinkai-visor/src/components/inboxes/inboxes.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import './inboxes.css';

import { isJobInbox } from '@shinkai_network/shinkai-message-ts/utils';
import { useGetInboxes } from '@shinkai_network/shinkai-node-state/lib/queries/getInboxes/useGetInboxes';
import { Bot, MessageCircleIcon } from 'lucide-react';
import { Bot, MessageCircleIcon, Workflow } from 'lucide-react';
import { Fragment } from 'react';
import { FormattedMessage } from 'react-intl';
import { useHistory } from 'react-router-dom';
Expand Down Expand Up @@ -72,7 +73,12 @@ export const Inboxes = () => {
onClick={() => navigateToInbox(inboxId)}
variant="tertiary"
>
<MessageCircleIcon className="h-4 w-4 shrink-0 mr-2" />
{isJobInbox(decodeURIComponent(inboxId)) ? (
<Workflow className="h-4 w-4 shrink-0 mr-2" />
) : (
<MessageCircleIcon className="h-4 w-4 shrink-0 mr-2" />
)}

<span className="w-full truncate">
{decodeURIComponent(inboxId)}
</span>
Expand Down
6 changes: 3 additions & 3 deletions apps/shinkai-visor/src/components/nav/nav.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import './nav.css';

import { ArrowLeft, Bot, Inbox, LogOut, Menu, X } from 'lucide-react';
import { ArrowLeft, Bot, Inbox, LogOut, Menu, MessageCircle, Workflow, X } from 'lucide-react';
import { useState } from 'react';
import { FormattedMessage } from 'react-intl';
import { useHistory, useLocation } from 'react-router-dom';
Expand Down Expand Up @@ -117,15 +117,15 @@ export default function NavBar() {
<DropdownMenuItem
onClick={() => onClickMenuOption(MenuOption.CreateInbox)}
>
<Inbox className="mr-2 h-4 w-4" />
<MessageCircle className="mr-2 h-4 w-4" />
<span>
<FormattedMessage id="create-inbox" />
</span>
</DropdownMenuItem>
<DropdownMenuItem
onClick={() => onClickMenuOption(MenuOption.CreateJob)}
>
<Inbox className="mr-2 h-4 w-4" />
<Workflow className="mr-2 h-4 w-4" />
<span>
<FormattedMessage id="create-job" />
</span>
Expand Down

0 comments on commit 17b9d50

Please sign in to comment.