Skip to content
This repository was archived by the owner on Nov 7, 2026. It is now read-only.

A simple playground: selection bar, Markdown beside the field, everything else behind Developer mode - #174

Merged
johnml1135 merged 4 commits into
mainfrom
ux/simple-playground
Nov 6, 2026
Merged

johnml1135 merged 4 commits into
mainfrom
ux/simple-playground

Conversation

@johnml1135

Copy link
Copy Markdown
Collaborator

Start here: docs/images/bidi-selection.png and docs/images/selection-bar.png. By default the playground shows what a person writing sees; developers turn on the rest.

  • Default view: a scenario picker, the field, and the field as FieldWorks Markdown beside it, editable, with Apply and Revert. The explanation text is gone.
  • Selection bar (PlaygroundView.SelectionBar.cs): built on Avalonia's Popup, with no new package and the same behaviour on both Avalonia lines.
    • It floats above the selection while there is one.
    • The simple row is B, I and U, the writing system and the character style. More opens the paragraph style and Picture.
    • It never takes focus. A context menu replaces it, and SelectionBarEnabled turns it off.
  • Developer mode (a check box, or --dev on both hosts) brings back every tool bar, the Model tab and the event log. The test harness runs in developer mode unless a test is about the default.
  • Real pictures: sample pictures are FieldWorks picture data (U+0008 plus the GUID) for two pictures of the sample project. The Markdown writes them as ![Red square](/files/pictures/red-square.png){guid=…} instead of s6x=…, and an unknown picture path is fwmd.picture.unknown.
  • Bold, italic and underline are now stored with FieldWorks' enum variation (ktpvEnum), so the Markdown writes **word** rather than {p3=1:default}.
  • One paging test now accepts a first visible line that is cut off by the edge. That matches its bottom check; it changed because the new top bar moved the viewport.

Tests: 334 pass on net48 and on net10.0. The 7 new tests are in SimplePlaygroundTests. All 17 screenshots were regenerated: 15 headless, including the new selection-bar.png, and 2 real windows.

Not here: how spaces should be written (#172). Two research lanes are queued for it.

🤖 Generated with Claude Code

johnml1135 and others added 4 commits November 6, 2026 09:36
…he selection and the field's Markdown beside it, keeps every switch, the model and the log behind Developer mode, and stores real picture data written as image paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…layground and its selection bar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… or the field turns read-only, never comes back over a context menu, and gives focus back to the field when a box closes; the log splitter drags again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…reen, so nothing at the bottom is cut off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@johnml1135
johnml1135 merged commit ec98599 into main Nov 6, 2026
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant