Skip to content

Collection of fixes - #289

Open
StableLlama wants to merge 3 commits into
StableLlamaAI:developfrom
StableLlama:more_fixes
Open

Collection of fixes#289
StableLlama wants to merge 3 commits into
StableLlamaAI:developfrom
StableLlama:more_fixes

Conversation

@StableLlama

Copy link
Copy Markdown
Collaborator
  • Fix marker‑free and marker‑inclusive mix up

…er theming

Rework the Edit Scene dialog's diff so large AI rewrites are easy to
read and the dialog follows the app's paper scheme.

Diff view
- Replace the oversized block cards with a compact Diff/Old/New tab
  control (DiffViewTabs) on changed Summary / Linked Prose fields:
  Diff shows the inline word-level diff, Old shows the previous
  content, New shows the current editable content.
- Accepting a diff now ends the diff view: accepting the linked prose
  advances its baseline, hides the tabs, and clears the inline marks so
  only the new content remains.
- Wire the linked-prose section into the diff accept/reject flow
  (detected by label) and mirror the summary's implicit-accept on edit.

Dialog theming
- Content fields (summary, linked prose, beats) now sit on the same
  "paper" as the main editor, driven by the shared getPaperColors()
  helper so they respect the user's brightness and contrast settings
  exactly like the writing paper (cream in light/mixed, dark in dark).
- Share per-paper diff highlight tokens via getEditorHighlightColors()
  and pass editorSettings from ScenesPanelContainer.
- Soften dark/mixed typography (gray-300 body text, solid surfaces) and
  add the Diff/Old/New + empty-state i18n keys.

Diff engine
- Add pure diff segmentation (diffBlockMode) deciding inline vs block
  rendering, with field-level block mode for wholesale rewrites.
- Convert the CodeMirror diff plugin to a StateField so block-level
  decorations are permitted, and render large changes as soft
  red/green blocks for the main editor; include block classes in the
  floating diff toolbar selector.

Tests
- Add paperColors, diffBlockMode and dialog theming/accept tests and
  update diff/editor sync tests for block-aware assertions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant