Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ refactor: rename artifacts to plugins in portal #3986

Merged
merged 2 commits into from
Sep 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Body from './Body';
import Header from './Header';
import { useEnable } from './useEnable';

export const Artifacts = {
export const Plugins = {
Body,
Header,
useEnable,
Expand Down
4 changes: 2 additions & 2 deletions src/app/(main)/chat/(workspace)/@portal/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

import { memo } from 'react';

import { Artifacts } from './Artifacts';
import { FilePreview } from './FilePreview';
import { HomeBody, HomeHeader } from './Home';
import { MessageDetail } from './MessageDetail';
import { Plugins } from './Plugins';

const items = [MessageDetail, Artifacts, FilePreview];
const items = [MessageDetail, Plugins, FilePreview];

export const PortalHeader = memo(() => {
const enabledList: boolean[] = [];
Expand Down
4 changes: 2 additions & 2 deletions src/features/Conversation/Messages/Tool/Inspector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ActionIcon, Highlighter, Icon, Tag } from '@lobehub/ui';
import { Tabs, Typography } from 'antd';
import isEqual from 'fast-deep-equal';
import {
InspectionPanel,
BetweenVerticalStart,
LucideBug,
LucideBugOff,
LucideChevronDown,
Expand Down Expand Up @@ -113,7 +113,7 @@ const Inspector = memo<InspectorProps>(
<Flexbox horizontal>
{!isMobile && showRightAction && (
<ActionIcon
icon={InspectionPanel}
icon={BetweenVerticalStart}
onClick={() => {
if (!isMessageToolUIOpen) openToolUI(id, identifier);
else {
Expand Down
Loading