From ff5e010f10d104428c5df547c753bc943a83e2f4 Mon Sep 17 00:00:00 2001 From: Rokojori Date: Sat, 11 Jul 2026 13:21:14 +0200 Subject: [PATCH] outline: add CodePanel, FileEditorRegistry, RojoChatPanel; update file manager and backlog --- workspace/outline/index.html | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/workspace/outline/index.html b/workspace/outline/index.html index 5eae564..3679c19 100644 --- a/workspace/outline/index.html +++ b/workspace/outline/index.html @@ -41,15 +41,26 @@ A full editor page (/editor.html) with a 3-panel resizable layout (Left / Center / Right). Each panel holds one or more sections side by side, each section holds a <tab-container>. Tabs are draggable - between containers. The Left panel shows the file tree; the Center panel holds - the WYSIWYG HTML editor (iframe, contenteditable, - MutationObserver, undo/redo, Ctrl+S save). The Right panel is empty by default - and receives dropped tabs. + between containers. The Left panel shows the file tree with create, rename, + and delete for files and folders. The Center panel holds the WYSIWYG HTML + editor (iframe, contenteditable, MutationObserver, undo/redo, + Ctrl+S save). The Right panel is empty by default and receives dropped tabs.

+ A FileEditorRegistry routes files to the correct panel by suffix. + HTML files open in html-editor-panel; all other known text formats + open in code-panel (CodeMirror 5, syntax highlighting, dark theme, + Pin/Undo/Redo/Save toolbar). The registry checks an optional project-level + workspace/editor/file-editors.json first, then falls back to + in-memory defaults. Unknown extensions show an error in the file tree instead + of attempting to open. +

+

+ A rojo-chat-panel provides a streaming AI chat interface backed + by a LangChain + OpenAI-compatible model. Each panel instance holds its own + conversation session in memory. A reusable <confirm-dialog> component replaces browser - confirm() for destructive actions. Currently wired up for project - deletion only. + confirm() for destructive actions (currently project deletion).

@@ -57,14 +68,14 @@

What still needs work

This is a loose reminder, not a fixed backlog. Things we know are missing or - incomplete: a file manager inside the editor (create, rename, delete files and - folders from the tree); the Right panel has no default content and relies on - manual tab dragging to populate; portrait mode's secondary section switcher + incomplete: the Right panel has no default content and relies on manual tab + dragging to populate; portrait mode's secondary section switcher (when a panel has multiple side-by-side sections) is not yet wired up; the member list UI shows raw UUIDs instead of usernames; the group editor and account delete button still use the browser confirm() instead of - the custom dialog; non-HTML files in the tree are visible but not openable; - and there is no real-time multi-user collaboration yet. + the custom dialog; non-text files (images, PDFs) in the tree are visible but + not openable (a MediaViewerPanel is planned); and there is no + real-time multi-user collaboration yet.