Skip to content
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
2 changes: 1 addition & 1 deletion app/components/chat/ChatTextarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export const ChatTextarea = forwardRef<HTMLTextAreaElement, ChatTextareaProps>(
{environmentDataSources.length > 0 ? (
<DataSourcePicker
onAddNew={handleConnectDataSource}
disabled={false}
disabled={true}
onDataSourceChange={onDataSourceChange}
placement={'top'}
/>
Expand Down
5 changes: 1 addition & 4 deletions app/components/chat/DataSourcePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,6 @@ export const DataSourcePicker: React.FC<DataSourcePickerProps> = ({
<components.SingleValue {...props}>
<div className="flex items-center gap-2">
<span>{data.label}</span>
{data.environmentName && (
<span className="text-xs bg-gray-600 text-gray-200 px-2 py-1 rounded-full">{data.environmentName}</span>
)}
</div>
</components.SingleValue>
);
Expand All @@ -140,7 +137,7 @@ export const DataSourcePicker: React.FC<DataSourcePickerProps> = ({
},
paddingLeft: '4px',
gap: '8px',
minWidth: '200px',
minWidth: '100px',
maxWidth: '400px',
width: 'auto',
}),
Expand Down
4 changes: 2 additions & 2 deletions app/components/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { IconButton } from '~/components/ui/IconButton';
import { chatStore } from '~/lib/stores/chat';
import { classNames } from '~/utils/classNames';
import { HeaderActionButtons } from './HeaderActionButtons.client';
import { ChatDescription } from '~/lib/persistence/ChatDescription.client';
import { ConversationSettings } from '~/lib/persistence/ConversationSettings';
import { Logo } from '~/components/Logo';
import { UserMenu } from '~/components/auth/UserMenu';
import { useSession } from '~/auth/auth-client';
Expand Down Expand Up @@ -47,7 +47,7 @@ export function Header({ showMenuIcon = true }: Props) {
{chat.started && (
<>
<span className="flex-1 px-4 truncate text-center text-primary">
<ClientOnly>{() => <ChatDescription />}</ClientOnly>
<ClientOnly>{() => <ConversationSettings />}</ClientOnly>
</span>
<ClientOnly>
{() => (
Expand Down
5 changes: 1 addition & 4 deletions app/components/workbench/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { workbenchStore } from '~/lib/stores/workbench';
import { PortDropdown } from './PortDropdown';
import { ScreenshotSelector } from './ScreenshotSelector';
import { PreviewLoader } from '~/components/workbench/PreviewLoader';
import { logger } from '~/utils/logger';
import { FixIssuesDialog } from './FixIssuesDialog';
import type { SendMessageFn } from '~/components/chat/Chat.client';

Expand Down Expand Up @@ -463,9 +462,7 @@ export const Preview = memo(({ sendMessage }: Props) => {
src={iframeUrl}
sandbox="allow-scripts allow-forms allow-popups allow-modals allow-storage-access-by-user-activation allow-same-origin"
allow="cross-origin-isolated"
onLoad={(e) => {
logger.debug('Handling iframe onLoad event', e);

onLoad={() => {
if (!initialLoadRef.current) {
workbenchStore.previewsStore.startErrorCollectionPeriod();
}
Expand Down
66 changes: 0 additions & 66 deletions app/lib/persistence/ChatDescription.client.tsx

This file was deleted.

Loading