Skip to content

Linux 0.1.4; examples formatted and commented; Layout reads formatted code; component platform table - #82

Merged
everettjf merged 21 commits into
mainfrom
linux-0.1.4
Nov 18, 2026
Merged

everettjf merged 21 commits into
mainfrom
linux-0.1.4

Conversation

@everettjf

Copy link
Copy Markdown
Owner

What a user gets

  • Linux 0.1.4: the management window lists My widgets, Templates, Components and APIs in the sidebar, as on Windows. Before, the three groups were stacked on one Templates page.
  • Readable examples: all 191 bundled example sources are formatted with Prettier (84 had lines over 160 characters) and commented for a reader new to ScriptWidget. No example draws anything different.
  • Layout panel reads formatted code: it refused a script whose element was followed by a comma, had a {/* … */} child or a comment beside the element, and could not edit a text on a line of its own. After formatting only 8 of 140 examples opened in Layout; 136 do again, as before. Both StudioEditor.bundle directories are rebuilt.
  • Docs: a table of how each system draws each component, generated from platformSupport.js into platform-support.md and the component reference, and copied into the creator Skill.

How "nothing but layout and comments changed" was checked

  • The web engine reproduces every Apple reference tree byte for byte (199 tests) after formatting and again after commenting.
  • A line-by-line check over 194 files: every changed line since the formatting commit is a comment or blank.
  • The runtimes look for $render, moment( and moment. in the script text; no file gained or lost one.
  • Prettier joins two spaces in JSX text; the three animation titles that had them are now strings in braces.
  • material-study-trees.json and layout-edit-trees.json store example source; both were regenerated on the iOS 27.2 simulator and all their trees are identical to before.

Compatibility and security

No runtime, package or permission contract changes. Gallery/index.json byte counts and SHA-256 follow the reformatted copies. The Layout parser masks comment children before parsing; ranges are those of the real source.

Run locally

  • ./Scripts/release-readiness.sh (iOS destination iPhone 18 Pro Max): passed to its last line; macOS 809 tests, 777 pass, 32 skipped; iOS simulator 820 tests, 789 pass, 31 skipped; browser smoke tests ran
  • Web/preview-engine 199, Web/studio 114, Editor/editorfe 60 pass
  • cargo test --locked --workspace: 506 pass on the Mac, 512 pass in the Omarchy 4.5 VM; Android :core:testDebugUnitTest 482 pass (both before the Layout fix, which does not enter those builds)
  • Omarchy 4.5 VM (aarch64): 0.1.4 installed, the four pages opened and looked at, no new shell crash report

Not run

  • Windows tests and Android instrumented tests (CI covers Windows).
  • The sidebar entries were opened with --page, not clicked with the virtual pointer.
  • The Layout panel was not clicked through by hand; two native tests drive the real panel and 14 edits were tried through its functions.
  • The component table's cells come from the platform pages and the component sources, not from a new test on five systems.

🤖 Generated with Claude Code

everettjf and others added 21 commits November 18, 2026 09:42
…dows

The Templates page listed three groups one under the other. Each group is
now its own entry: My widgets, Templates, Components, APIs.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
191 source files; 84 had lines over 160 characters, 52 lines were over
400. Code only moved: the web engine still reproduces every Apple
reference tree. Three animation titles with two spaces in a row are now
strings in braces, since the formatter joins the spaces. Gallery copies
and their hashes follow.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Comments only: no code changed. Each example now says what it shows,
what to try, what a ScriptWidget call or prop means where it first
appears, the units of values, and for the data APIs which systems
they run on. Four wrong header lines (gauge spelling, gif, toggle,
zstack) are corrected.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Comments only: what each template shows, what to try changing, what the
ScriptWidget calls and layout properties mean, and which systems $calendar
runs on. No code line changed; the web parity test still reproduces every
native tree.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Comments only, for a reader who is new to ScriptWidget: what each template shows and what to try changing, what each section does, what a ScriptWidget call or property means the first time it appears, units, and why a fallback exists. No code line changed.

Storage Ring's header called it a battery template; it now says what the template draws.

lib/weather.js of Weather Now (MET Norway) now differs from the copy in Local Weather (Location), and lib/records.js of Plant Care and Pocket Pet from the copies in the other record templates, until those copies get the same comments.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Comments only, for a reader who is new to ScriptWidget: what each template
shows and what to try changing, what each section does, what the
ScriptWidget calls and properties mean, units, fallbacks, the permissions a
call needs and the systems a data API runs on. No code line changed.

lib/weather.js of Local Weather (Location) now differs from the copy in
Weather Now (MET Norway), and lib/records.js from the copies in Plant Care
and Pocket Pet, until those templates receive the same comments.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ery copies

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…at Layout cannot read the formatted examples

material-study-trees.json stores the template's source next to its 48 trees.
It is regenerated with JavaScriptCore on the iOS 27.2 simulator; the 48 trees
are identical to the old ones and only the source text changed.

layout-edit-trees.json is not regenerated, because producing it needs the
Layout panel to edit Layout Starter and the panel can no longer read it. This
is a change of behaviour, not a stale fixture, so no expectation is edited:
visualLayout.js rejects the comma Prettier puts after the element of
$render( … ) and treats a JSX comment as a syntax error. Of the 140 main.jsx
files, Layout could open 136 before formatting, 20 after it, and 8 now.
Two VisualLayoutEditorTests and two Web Studio tests fail for this reason.

docs/linux/testing.md lists the fixtures that depend on example text, the
numbers of every suite and what was not run.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The panel refused a script whose element was followed by a comma, that
had a comment child, or a comment beside the element, and could not edit
a text that stood on a line of its own. After the examples were formatted
and commented only 8 of 140 still opened in Layout; 136 do again, as
before. Both editor bundles are rebuilt.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A second table in platformSupport.js, written by npm run docs into
platform-support.md and the top of the component reference, and copied
into the creator Skill. A test requires a row for every component.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… code

layout-edit-trees.json is regenerated by the real native editor on the iOS
27.2 simulator. Both trees, before and after the two Layout edits, are
identical to the committed ones; only the two stored sources changed. The
edited source differs from the template in the two places the panel wrote.

docs/linux/testing.md: the Layout finding is recorded as fixed in the panel
(136 of 140 examples open again), with a review of edits computed against
the real source while the parse runs on the masked copy: 13 edits on Layout
Starter and Material Study land where they should, parse again and run, and
the remaining rough edges are listed, not changed. New numbers: the macOS
scheme 777 passed and 32 skipped of 809, Web Studio 114, the editor 59, and
release-readiness.sh passes to its last line. The heading of the summary of
what was not run, which my previous commit dropped, is back.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… a layer

Adding or moving a layer glued it to its neighbour or the closing tag, and
removing one left a line of spaces. In code with a layer a line the new
layer now gets a line at its neighbours' indentation and the old lines go;
code written on one line is still spliced as it is. A comment directly
above a layer moves and is removed with it, and editing a text no longer
replaces a comment inside it. Both editor bundles are rebuilt.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@everettjf
everettjf merged commit 05b98a5 into main Nov 18, 2026
14 of 15 checks passed
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