Repository navigation
Conversation
… scrollbars Manual editing in the layout editor was hard to use: double-clicking a block never opened it, Ctrl+Z was swallowed by every text field (and inside them took back one letter at a time), there was no copy/paste of blocks, the Activity panel only said "edited", and most scrolling areas used the native scrollbar. - PageCanvas captures the pointer only once a drag starts, so click and double-click reach the block again (the capture at pointerdown sent them to the layer). - Ctrl+Z/Y work from anywhere, including a clean content form (`data-undo`); panel fields no longer carry a React value/defaultValue, which Chrome answered by dropping the undo history on every keystroke. - Ctrl+C/X/V/D copy, cut, paste and duplicate blocks through the system clipboard as JSON (plain text pastes as a text block); Ctrl+S opens "Save version"; Ctrl+/ lists the shortcuts. - Every write carries a description (the same line the history shows), undo, redo and restore included; the backend accepts `note` on PUT /layout too. - Activity shows the writer's description and folds bursts of edits by the same actor into one expandable line. - One thin scrollbar for every scrolling area, and `color-scheme: dark` for native controls.
…t reshapes instead of retypes Phase 2 of the manual-editing plan (notes/product/edicao-manual-e-atalhos.md). - richText.ts: the library's inline text (markdown subset or runs) ⇄ editable HTML, so colors, highlights and links survive editing on the page. Runs are written back only when a run needs them; colors map to theme tokens. - RunBar: a floating bar over any text selection (bold, italic, code, link, six token colors, highlight, clear, and the paragraph role for text blocks). Ctrl+B/I/K/Shift+H do the same. - ParagraphsEditable + InlineField: the two editors every block shares. Their HTML is set once per edit: React 19 rewrites dangerouslySetInnerHTML on every render, which was wiping the browser's own edits. - In-place editors for card, list (Enter/Backspace/Tab), steps and timeline (Enter moves on, adds at the end), code (Tab indents); the table adds a row on Enter at the last one, removes an empty row on Backspace, and has "+" buttons for a column and a row. Text blocks with explicit runs edit in place too. - Content panel: text is one rich editor with the role in the margin; the table form only reshapes (columns with alignment and weight, rows, paste from a spreadsheet, options); cells are edited on the page. - The side panel's left edge drags between 340 and 560 px, remembered per browser.
…ith a live preview (lib 0.8.0-alpha.1, format 4) Phase 3 of the manual-editing plan. - Appearance gets "Apply to": the whole block or one of its parts (a table's header and striped rows, a KPI's label and change, a card's eyebrow, title, value and footer, the steps' title and number, a timeline's date and title, the roles a text block uses). "Only this block" writes the part's own style (`styles` on the component, new in the library); "All: type" writes the document selector `type.part`. "Changed here" and its reset are per part. - A second click inside the selected block picks the part under the pointer (the drawing now carries `data-part`); the bar lists the parts too; Esc goes back to the whole block. The part is outlined on the page with its name. - Ready-made looks per block type, each saying what it changes; hovering shows it on the page without writing anything (the two-frame swap now returns to an already-loaded frame instead of waiting for a reload that never comes). - Units on free values (px, ×), "0" instead of "none" for the border, the table's header and striped-rows switches also in Appearance. - Library vendored at 0.8.0-alpha.1 (branch feat/styles-by-part): `styles` per part, `table.zebra` and `steps.number` parts, `update.styles`, format 4 with the step down to 3. Backend writes format 4 and serves older readers through the downgrade as before. - No colour literals in the run bar and the rich-text helpers (token guard).
…ditor (lib 0.8.0-alpha.2) - The Add and "/" menus offer flowing text, callout, tags, progress, cover and table of contents, each with starter content and a content form. - Flowing text is edited as its list of blocks: paragraphs and titles as text, page breaks as markers, other blocks as JSON; blocks move, go and are added. - Charts gain area, donut and scatter, horizontal and stacked bars, legend on the right and axis titles; tables a "fit columns to content" switch, a total row, bars and spanning cells kept when reshaping; images a caption, figure numbers and a link; KPIs a sparkline; texts the display role. - Page panel: "Header and footer" turns on the document title at the top and page numbers at the bottom, on every page or all but the first, and keeps what an agent put in the master. The page form no longer counts the master as a change. - "Apply to" lists only the parts a block has (a table's footer when it has one, a callout's own kind). - MCP: apply_layout_ops and measure_component describe flow, the master ops and the table width they measure. - pt-BR and English strings for all of it.
Layout: manual editing, flowing text, new components and header/footer (lib 0.8.0-alpha.2)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Promotes #14 (layout: manual editing, flowing text, new components, header and footer; lib 0.8.0-alpha.2 vendored). No migration.