Split the workbench markup into region components
Phase 5-1. Workbench.svelte keeps the state and the commands. Six components now draw its regions, each with its own styles: - WorkbenchHeader: the side pane buttons, the working tabs, the actions, and the window controls. - PluginRibbon: the ribbon of plugin views. - LeftPane: the plugin sidebar, files, search, bookmarks, and the workspace footer. - DocumentArea: the plugin editor panes, the document panes, and the save conflict banners. - RightPane: the outline and the backlinks. - StatusBar: the status line. Each component keeps the root element of its region, so the shell grid places them as before. Workbench.svelte has about 450 fewer lines. There is no visible change. pnpm check passes. pnpm test: 451 of 451 pass. Full smoke suite: 95 passed, 2 known. plugins/access failed one time and passed on retry and 3 of 3 times alone.
This commit is contained in:
+1
-1
@@ -80,7 +80,7 @@ A new command needs an entry in `generate_handler!` in `lib.rs`, in the command
|
||||
|
||||
| Folder | Responsibility |
|
||||
| --- | --- |
|
||||
| `layout/` | The app shell (`Workbench.svelte`), the file tree, tabs, panes, Settings, and dialogs |
|
||||
| `layout/` | The app shell: `Workbench.svelte` holds the state and the commands, and `WorkbenchHeader`, `PluginRibbon`, `LeftPane`, `DocumentArea`, `RightPane`, and `StatusBar` draw its regions. Also the file tree, tabs, panes, Settings, and dialogs |
|
||||
| `editor/` | The document editor (`DocumentEditor.svelte`) with its Write and Source configurations, Markdown lists, tables, links, images, and editor menus |
|
||||
| `formulas/` | Table formulas: the parser and evaluator (`engine.ts`), the rendered results, the formula help, and the `tableFormulas` setting (`index.ts`) |
|
||||
| `workspace/` | Tauri wrappers, document buffers, the workspace session (`session.svelte.ts`: marks, renames, change events, and the note index), paths, templates, and tab transfer (`tabTransfer.ts`) |
|
||||
|
||||
Reference in New Issue
Block a user