From 5b2359d6715286754c9ae82108e8c91d6c3469bb Mon Sep 17 00:00:00 2001 From: lemonknowsall Date: Fri, 16 Jan 2026 12:52:41 -0800 Subject: [PATCH 01/11] default settings navigation to preferences --- src/AppRouter.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AppRouter.tsx b/src/AppRouter.tsx index 04d2723d..0582d478 100644 --- a/src/AppRouter.tsx +++ b/src/AppRouter.tsx @@ -1,4 +1,4 @@ -import { BrowserRouter, HashRouter, Route, Routes } from "react-router-dom"; +import { BrowserRouter, HashRouter, Route, Routes, Navigate } from "react-router-dom"; import { ScrollToTop } from "./components/ScrollToTop"; import { SessionMonitor } from "./components/SessionMonitor"; import { URLFragmentHandler } from "./components/URLFragmentHandler"; @@ -42,7 +42,7 @@ export function AppRouter() { } /> } /> }> - } /> + } /> } /> } /> } /> From a4271de370d3f296fa617807a406753d9650d197 Mon Sep 17 00:00:00 2001 From: lemonknowsall Date: Fri, 16 Jan 2026 13:48:55 -0800 Subject: [PATCH 02/11] add icon tooltips for info on hover --- src/components/ProjectSidebar.tsx | 1 + src/components/Shakespeare/PreviewPane.tsx | 4 +++- src/components/deploy/DeployButton.tsx | 3 +++ src/components/git-sync/GitSyncButton.tsx | 3 +++ src/locales/en.json | 6 ++++++ src/locales/ha.json | 6 ++++++ src/locales/ig.json | 6 ++++++ src/locales/pt.json | 6 ++++++ src/locales/yo.json | 6 ++++++ src/locales/zh.json | 6 ++++++ 10 files changed, 46 insertions(+), 1 deletion(-) diff --git a/src/components/ProjectSidebar.tsx b/src/components/ProjectSidebar.tsx index 108f5f5a..b30af91f 100644 --- a/src/components/ProjectSidebar.tsx +++ b/src/components/ProjectSidebar.tsx @@ -327,6 +327,7 @@ export function ProjectSidebar({ className="h-8 w-8 p-0 hover:bg-primary/10 -mr-2" onClick={handleToggleSidebar} aria-label={(onClose && isMobile) ? t('closeSidebar') : t('collapseSidebar')} + title={(onClose && isMobile) ? t('closeSidebar') : t('hidePaneButtonTooltip')} > {(onClose && isMobile) ? ( diff --git a/src/components/Shakespeare/PreviewPane.tsx b/src/components/Shakespeare/PreviewPane.tsx index 9b96cec1..a41b806a 100644 --- a/src/components/Shakespeare/PreviewPane.tsx +++ b/src/components/Shakespeare/PreviewPane.tsx @@ -525,6 +525,7 @@ export function PreviewPane({ projectId, activeTab, onToggleView, isPreviewable variant="ghost" size="sm" className="h-8 gap-2 relative" + title={t('logsButtonTooltip')} > Logs @@ -656,7 +657,7 @@ export function PreviewPane({ projectId, activeTab, onToggleView, isPreviewable })} disabled={isBuildLoading} className="h-8 gap-2" - title="Build project" + title={t('buildButtonTooltip')} > {isBuildLoading ? ( @@ -671,6 +672,7 @@ export function PreviewPane({ projectId, activeTab, onToggleView, isPreviewable size="sm" onClick={onToggleView} className="h-8 gap-2" + title={t('codeButtonTooltip')} > Code diff --git a/src/components/deploy/DeployButton.tsx b/src/components/deploy/DeployButton.tsx index bb2d2232..d78043be 100644 --- a/src/components/deploy/DeployButton.tsx +++ b/src/components/deploy/DeployButton.tsx @@ -4,6 +4,7 @@ import { Button } from '@/components/ui/button'; import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'; import { cn } from '@/lib/utils'; import { DeploySteps } from './DeploySteps'; +import { useTranslation } from 'react-i18next'; interface DeployButtonProps { projectId: string; @@ -14,6 +15,7 @@ interface DeployButtonProps { export function DeployButton({ projectId, projectName, className, disabled }: DeployButtonProps) { const [open, setOpen] = useState(false); + const { t } = useTranslation(); return ( @@ -24,6 +26,7 @@ export function DeployButton({ projectId, projectName, className, disabled }: De className={cn("size-8 p-0 group", className)} aria-label="Deploy project" disabled={disabled} + title={t('deployButtonTooltip')} > diff --git a/src/components/git-sync/GitSyncButton.tsx b/src/components/git-sync/GitSyncButton.tsx index e4227674..11972ff5 100644 --- a/src/components/git-sync/GitSyncButton.tsx +++ b/src/components/git-sync/GitSyncButton.tsx @@ -7,6 +7,7 @@ import { useGitSyncState } from '@/hooks/useGitSyncState'; import { useFSPaths } from '@/hooks/useFSPaths'; import { cn } from '@/lib/utils'; import { GitSyncSteps } from './GitSyncSteps'; +import { useTranslation } from 'react-i18next'; interface GitSyncButtonProps { projectId: string; @@ -18,6 +19,7 @@ export function GitSyncButton({ projectId, className }: GitSyncButtonProps) { const [syncSuccess, setSyncSuccess] = useState(false); const [showWarningPopover, setShowWarningPopover] = useState(false); const warningDismissed = useRef(false); + const { t } = useTranslation(); const { data: gitStatus, isLoading: isGitStatusLoading } = useGitStatus(projectId); const { getError, getState } = useGitSyncState(); @@ -129,6 +131,7 @@ export function GitSyncButton({ projectId, className }: GitSyncButtonProps) { className={cn("size-8 p-0 group relative", className)} aria-label="Sync with Git" onClick={handleButtonClick} + title={t('cloudSyncButtonTooltip')} > {renderIndicator()} diff --git a/src/locales/en.json b/src/locales/en.json index 31ae3827..5182ad7f 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -104,6 +104,12 @@ "gitSettingsDescription": "Configure Git credentials for HTTP authentication", "deploySettings": "Deployment", "deploySettingsDescription": "Configure deployment providers", + "deployButtonTooltip": "Deploy your project to a website", + "cloudSyncButtonTooltip": "Sync your project with Git to back up files", + "buildButtonTooltip": "Build project and update preview", + "codeButtonTooltip": "Switch to code editor to view and edit files", + "logsButtonTooltip": "View console messages and logs from project", + "hidePaneButtonTooltip": "Hide sidebar", "nostrSettings": "Nostr", "nostrSettingsDescription": "Configure relay connections and Nostr preferences", "storageSettings": "Storage", diff --git a/src/locales/ha.json b/src/locales/ha.json index 8cbc06f9..affa889f 100644 --- a/src/locales/ha.json +++ b/src/locales/ha.json @@ -102,6 +102,12 @@ "gitSettingsDescription": "Saita bayanan shaidar Git don tabbatar da HTTP", "nostrSettings": "Nostr", "nostrSettingsDescription": "Saita haɗin relay da zaɓuɓɓukan Nostr", + "deployButtonTooltip": "Saka aikin ku zuwa gidan yanar gizo", + "cloudSyncButtonTooltip": "Haɗa aikin ku tare da Git don adana fayiloli", + "buildButtonTooltip": "Gina aiki kuma sabunta samfoti", + "codeButtonTooltip": "Canza zuwa editan code don duba da gyara fayiloli", + "logsButtonTooltip": "Duba saƙonni na console da log daga aiki", + "hidePaneButtonTooltip": "Ɓoye sidebar", "storageSettings": "Ajiya", "storageSettingsDescription": "Fitar da fayiloli da sarrafa bayanan gida", "emailUpdates": "Sabuntawar Imel", diff --git a/src/locales/ig.json b/src/locales/ig.json index c294627d..0e856b8e 100644 --- a/src/locales/ig.json +++ b/src/locales/ig.json @@ -102,6 +102,12 @@ "gitSettingsDescription": "Hazie nzere Git maka nkwenye HTTP", "nostrSettings": "Nostr", "nostrSettingsDescription": "Hazie njikọ relay na nhọrọ Nostr", + "deployButtonTooltip": "Buga ọrụ gị na weebụsaịtị", + "cloudSyncButtonTooltip": "Mekọrịta ọrụ gị na Git iji chekwaa faịlụ", + "buildButtonTooltip": "Wulie ọrụ ma melite nlele", + "codeButtonTooltip": "Gbanwee gaa na onye dezie koodu iji lee ma dezie faịlụ", + "logsButtonTooltip": "Lelee ozi console na log sitere na ọrụ", + "hidePaneButtonTooltip": "Zoo sidebar", "storageSettings": "Nchekwa", "storageSettingsDescription": "Bupụta faịlụ na jikwaa data mpaghara", "emailUpdates": "Nmelite Email", diff --git a/src/locales/pt.json b/src/locales/pt.json index 7fd72897..cc8bebfb 100644 --- a/src/locales/pt.json +++ b/src/locales/pt.json @@ -102,6 +102,12 @@ "gitSettingsDescription": "Configure credenciais do Git para autenticação HTTP", "deploySettings": "Implantação", "deploySettingsDescription": "Configure provedores de implantação", + "deployButtonTooltip": "Implantar seu projeto em um site", + "cloudSyncButtonTooltip": "Sincronizar seu projeto com Git para fazer backup de arquivos", + "buildButtonTooltip": "Compilar projeto e atualizar visualização", + "codeButtonTooltip": "Alternar para o editor de código para visualizar e editar arquivos", + "logsButtonTooltip": "Visualizar mensagens do console e logs do projeto", + "hidePaneButtonTooltip": "Ocultar barra lateral", "nostrSettings": "Nostr", "nostrSettingsDescription": "Configure conexões de relay e preferências do Nostr", "storageSettings": "Armazenamento", diff --git a/src/locales/yo.json b/src/locales/yo.json index ed728d96..d262c1db 100644 --- a/src/locales/yo.json +++ b/src/locales/yo.json @@ -102,6 +102,12 @@ "gitSettingsDescription": "Tunto awọn ẹri Git fun ijẹrisi HTTP", "nostrSettings": "Nostr", "nostrSettingsDescription": "Tunto awọn asopọ relay ati awọn ayanfẹ Nostr", + "deployButtonTooltip": "Fi iṣẹ akanṣe rẹ sinu oju opo wẹẹbu kan", + "cloudSyncButtonTooltip": "Ṣe iṣopọ iṣẹ akanṣe rẹ pẹlu Git lati ṣe aabo awọn faili", + "buildButtonTooltip": "Kọ iṣẹ akanṣe ati ṣe imudojuiwọn awoṣe", + "codeButtonTooltip": "Yipada si olutọju koodu lati wo ati ṣatunkọ awọn faili", + "logsButtonTooltip": "Wo awọn ifiranṣẹ konsoli ati awọn log lati iṣẹ akanṣe", + "hidePaneButtonTooltip": "Fi ẹgbẹ ẹgbẹ pamọ", "storageSettings": "Ibi ipamọ", "storageSettingsDescription": "Gbe awọn faili jade ati ṣakoso data agbegbe", "emailUpdates": "Awọn Imudojuiwọn Imeeli", diff --git a/src/locales/zh.json b/src/locales/zh.json index fedad499..42fa028b 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -102,6 +102,12 @@ "gitSettingsDescription": "配置HTTP身份验证的Git凭据", "deploySettings": "部署", "deploySettingsDescription": "配置部署提供商", + "deployButtonTooltip": "将您的项目部署到网站", + "cloudSyncButtonTooltip": "使用Git同步项目以备份文件", + "buildButtonTooltip": "构建项目并更新预览", + "codeButtonTooltip": "切换到代码编辑器以查看和编辑文件", + "logsButtonTooltip": "查看项目的控制台消息和日志", + "hidePaneButtonTooltip": "隐藏侧边栏", "nostrSettings": "Nostr", "nostrSettingsDescription": "配置中继连接和Nostr偏好", "storageSettings": "存储", From 05100d295ea997c1dbe560418c6f04e3d6a8c413 Mon Sep 17 00:00:00 2001 From: lemonknowsall Date: Fri, 16 Jan 2026 13:55:29 -0800 Subject: [PATCH 03/11] breakout new chat button from dropdown menu --- src/components/ProjectTitleMenu.tsx | 12 ------------ src/locales/en.json | 1 + src/pages/ProjectView.tsx | 28 ++++++++++++++++++++++++---- 3 files changed, 25 insertions(+), 16 deletions(-) diff --git a/src/components/ProjectTitleMenu.tsx b/src/components/ProjectTitleMenu.tsx index 4ba8d067..99ef4986 100644 --- a/src/components/ProjectTitleMenu.tsx +++ b/src/components/ProjectTitleMenu.tsx @@ -7,7 +7,6 @@ import { DropdownMenuTrigger, } from '@/components/ui/dropdown-menu'; import { - MessageSquarePlus, History, Folder, Copy, @@ -22,7 +21,6 @@ import { useQueryClient } from '@tanstack/react-query'; interface ProjectTitleMenuProps { projectId: string; projectName: string; - onNewChat: () => void; onGitHistory: () => void; onDuplicate: () => void; onDelete: () => void; @@ -35,7 +33,6 @@ interface ProjectTitleMenuProps { export function ProjectTitleMenu({ projectId, projectName, - onNewChat, onGitHistory, onDuplicate, onDelete, @@ -109,15 +106,6 @@ export function ProjectTitleMenu({ Rollback - - - New Chat - - setGitHistoryOpen(true)} onDuplicate={() => setDuplicateDialogOpen(true)} onDelete={() => setDeleteDialogOpen(true)} @@ -230,6 +229,16 @@ export function ProjectView() {
{project ? ( <> + + )}
@@ -442,7 +452,6 @@ export function ProjectView() { setGitHistoryOpen(true)} onDuplicate={() => setDuplicateDialogOpen(true)} onDelete={() => setDeleteDialogOpen(true)} @@ -457,10 +466,20 @@ export function ProjectView() { - {/* Right side - Deploy and Sync buttons */} + {/* Right side - New Chat, Deploy and Sync buttons */}
{project ? ( <> + + )}
From eb381bc37e892e575bd14e7765c5a32521425493 Mon Sep 17 00:00:00 2001 From: lemonknowsall Date: Fri, 16 Jan 2026 14:41:00 -0800 Subject: [PATCH 04/11] add copy all button to logs popover --- src/components/Shakespeare/PreviewPane.tsx | 48 ++++++++++++++++++---- src/locales/en.json | 1 + 2 files changed, 42 insertions(+), 7 deletions(-) diff --git a/src/components/Shakespeare/PreviewPane.tsx b/src/components/Shakespeare/PreviewPane.tsx index a41b806a..538cefc3 100644 --- a/src/components/Shakespeare/PreviewPane.tsx +++ b/src/components/Shakespeare/PreviewPane.tsx @@ -503,6 +503,7 @@ export function PreviewPane({ projectId, activeTab, onToggleView, isPreviewable const ConsoleDropdown = () => { const [isOpen, setIsOpen] = useState(false); const [copiedMessageIndex, setCopiedMessageIndex] = useState(null); + const [copiedAll, setCopiedAll] = useState(false); const messages = isOpen ? getConsoleMessages() : []; @@ -516,6 +517,17 @@ export function PreviewPane({ projectId, activeTab, onToggleView, isPreviewable } }; + const copyAllMessagesToClipboard = async () => { + try { + const allMessages = messages.map(msg => msg.message).join('\n'); + await navigator.clipboard.writeText(allMessages); + setCopiedAll(true); + setTimeout(() => setCopiedAll(false), 2000); + } catch (error) { + console.error('Failed to copy all messages to clipboard:', error); + } + }; + const messageCount = messages.length; return ( @@ -589,13 +601,35 @@ export function PreviewPane({ projectId, activeTab, onToggleView, isPreviewable - {/* Close button */} - + {/* Action buttons */} +
+ {messageCount > 0 && ( + + )} + +
); diff --git a/src/locales/en.json b/src/locales/en.json index 2ccbd869..42dcd3cf 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -78,6 +78,7 @@ "save": "Save", "cancel": "Cancel", "close": "Close", + "copyAll": "Copy All", "open": "Open", "edit": "Edit", "delete": "Delete", From 7a4cd6cd00adc24c23582c2d2a43e041f571af72 Mon Sep 17 00:00:00 2001 From: lemonknowsall Date: Fri, 16 Jan 2026 22:48:34 -0800 Subject: [PATCH 05/11] media drag and drop in chat view --- src/components/Shakespeare/ChatInput.tsx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/components/Shakespeare/ChatInput.tsx b/src/components/Shakespeare/ChatInput.tsx index 5c4fef04..3045fc6b 100644 --- a/src/components/Shakespeare/ChatInput.tsx +++ b/src/components/Shakespeare/ChatInput.tsx @@ -89,6 +89,21 @@ export const ChatInput = memo(function ChatInput({ setInput(e.target.value); }, []); + const handleDrop = useCallback((e: React.DragEvent) => { + e.preventDefault(); + e.stopPropagation(); + + // Call parent's drop handler for visual state management + onDrop(e); + + // Extract files from the drop event + const files = Array.from(e.dataTransfer.files); + if (files.length === 0) return; + + // Add all files without validation + setAttachedFiles(prev => [...prev, ...files]); + }, [onDrop]); + return (
{/* Chat Input Container */} @@ -99,7 +114,7 @@ export const ChatInput = memo(function ChatInput({ onDragEnter={onDragEnter} onDragOver={onDragOver} onDragLeave={onDragLeave} - onDrop={onDrop} + onDrop={handleDrop} >