Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .claude/skills/forma-testing/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ A test that passes alone and fails under load is broken, not unlucky: its assert
- Do await the handler's own task, from `ClickAsync` or `TriggerEventAsync`, where the component's work passes through a library that awaits with `ConfigureAwait(false)`; that work leaves the renderer, and nothing done on the renderer can wait for it.
- Do give a component a contract to inject, as `IEmojiSpriteLoader` beside `EmojiSpriteLoader`, when a test needs to hold its work and the only way in was a pending script call.
- Don't wait on the clock for a completion the test controls: no `WaitForAssertion` or `WaitForState` after completing a gate, no `Task.Delay`, and never a widened timeout or a retry, which hide the race rather than remove it.
- Do wait in the page, with `WaitForFunctionAsync` reading the DOM, for a state a browser check's page of hundreds of items has yet to reach, and assert once it has. An assertion that finds its state not yet reached describes the element it reads on every poll, the whole view on such a page, which holds the page from drawing the answer it waits for, for seconds in WebKit under load.
- Do prove a fix under the conditions that failed, repeating the project while something else loads the machine, before calling the test stable.

## JavaScript tests
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/full.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Runs the full gate on every platform a release is held to: Linux's and Windows' gates,
# WebView2 among Windows', and Android's checks on an emulator, the components in its web view and the MAUI example;
# WebView2 among Windows', Android's checks on an emulator, the components in its web view and the MAUI example, and
# every component's early runs on Linux;
# it builds the MAUI example for iOS and Mac Catalyst as well, and reports those builds without holding a release to them,
# and it checks every package the repository depends on against the advisories as they stand when it runs.
# A push to candidate runs it on the candidate, whose run a promotion to main and a release require to have passed for
Expand Down Expand Up @@ -417,14 +418,12 @@ jobs:
if-no-files-found: ignore
retention-days: 14

# Every component's early runs, its Forma scripts held while the check acts. The job is reported: a failure holds
# nothing, and its results are kept under a name the nightly report doesn't file.
# Every component's early runs, its Forma scripts held while the check acts.
early:
name: components early
needs: commit
runs-on: ubuntu-latest
timeout-minutes: 150
continue-on-error: true

steps:
- uses: actions/checkout@v7
Expand All @@ -440,11 +439,16 @@ jobs:
- name: Check the components' early runs
run: pwsh ./scripts/build/browser.ps1 -Early -Filter 'Runtime=server-early|Runtime=webassembly-early'

- name: Note the job's failure
if: failure() || cancelled()
shell: pwsh
run: New-Item -ItemType File -Force -Path 'artifacts/browser/results/job-failed' | Out-Null

- name: Keep the checks' results
if: always()
uses: actions/upload-artifact@v7
with:
name: early-checks-linux-1
name: checks-early-linux-1
path: artifacts/browser/results
if-no-files-found: ignore
retention-days: 14
Expand All @@ -453,7 +457,7 @@ jobs:
# filed as an issue, an unreachable device as one, and a job that failed outside its checks as one of its own.
report:
name: report
needs: [commit, dependencies, gate, mobile, android]
needs: [commit, dependencies, gate, mobile, android, early]
# A run cancelled as a whole files nothing; a job of it that ran out of time is reported as failed.
if: always() && !cancelled() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
runs-on: ubuntu-latest
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ release is cut, and reads *Unreleased* until then. It lists every change a consu
breaks what the release before it allowed says how to migrate, as [Versioning's rules](https://github.com/FormaUI/Versioning/blob/v1.0.0-preview.5/docs/releases.md#the-release-record)
set out. What Forma gained before its first release, month by month, is in [the feature history](FEATURE-HISTORY.md).

## `1.0.0-preview.25`

*December 2, 2026*

- A wheel turned or a swipe made over a `FormaDataView` that grows with its page scrolls the page, and so does one
over a `FormaExplorer` flowing in a phone's page, where in Chromium the page stayed put. Over a view or an explorer
that scrolls within a height of its own, a turn or a swipe past the end of its items goes on to the page.

## `1.0.0-preview.24`

*December 1, 2026*
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<!-- The one version every package ships at; a preview, as the framework it targets is. -->
<PropertyGroup>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>preview.24</VersionSuffix>
<VersionSuffix>preview.25</VersionSuffix>
</PropertyGroup>

<!-- Outside CI, which makes every package, a build stamps no commit into its assemblies or the source map of their symbols, so a build after a commit finds every project it didn't change up to date rather than compiling the whole solution again for a commit id. -->
Expand Down
1 change: 1 addition & 0 deletions Forma.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
<Project Path="tests\unit\Framework\Forma.Framework.Windows.Tests\Forma.Framework.Windows.Tests.csproj" />
<Project Path="tests\unit\Framework\Forma.Framework.Themes.Testing.Tests\Forma.Framework.Themes.Testing.Tests.csproj" />
<Project Path="tests\unit\Framework\Forma.Framework.Themes.Blazor.Server.Tests\Forma.Framework.Themes.Blazor.Server.Tests.csproj" />
<Project Path="tests\integration\Framework\Forma.Framework.Themes.Blazor.Server.Integration.Tests\Forma.Framework.Themes.Blazor.Server.Integration.Tests.csproj" />
<Project Path="tests\unit\Framework\Forma.Framework.Themes.Browser.Interop.Tests\Forma.Framework.Themes.Browser.Interop.Tests.csproj" />
<Project Path="tests\unit\Framework\Forma.Framework.Themes.Tests\Forma.Framework.Themes.Tests.csproj" />
<Project Path="tests\unit\Framework\Forma.Framework.Themes.WebView.Tests\Forma.Framework.Themes.WebView.Tests.csproj" />
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,11 @@ shows.
Interactive, it switches the page at each change; rendered statically, it is a form whose Apply button posts the choice
to `MapFormaThemes()`, so a reader with no script running still switches. For a menu, such as a header's, its `Layout`
of `ThemePickerLayout.Buttons` offers each theme and each scheme as a button that applies its choice as it's pressed,
statically too, the choice in force pressed.
statically too, the choice in force pressed. A statically rendered picker's forms carry an antiforgery token only where
the application validates tokens, so where it checks a post by where it comes from instead, a page carrying the picker
can be kept for every reader, as [the server half's
README](https://github.com/FormaUI/Forma/blob/main/src/Framework/Forma.Framework.Themes.Blazor.Server/README.md#caching-pages)
sets out.

```razor
@using Forma.Blazor.Components.Themes
Expand Down
3 changes: 2 additions & 1 deletion docs/data-view-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,8 @@ The items live in a scroll region the engine owns, with what a view pins, the gr
header, stuck to its top and the footer outside it. The data view caps itself at the height
it is given: against an auto-height ancestor the cap resolves to none and the view takes
the height of its items, and inside a bounded shell the items scroll while the pinned
parts and the footer stay put. A paged data view holds its region at the height of a full
parts and the footer stay put. A turn of the wheel or a swipe the region can't take, over
items growing with the page or past the end of items that scroll, goes on to the page. A paged data view holds its region at the height of a full
page while another page is known to exist, so a short last page does not shrink it: its
count runs past one page, its source says it holds more, or a page comes before the one
shown. A set known to fit one page
Expand Down
2 changes: 1 addition & 1 deletion docs/explorer-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ activated, and in the selection mode a press or Space checks its box while Enter
opens it, the focus staying on its item as the mode changes.

On a phone the explorer has no height of its own, so its items are the page's own list rather
than a box that scrolls inside the page. A phone is a viewport under 40rem wide, or under
than a box that scrolls inside the page, a swipe over them scrolling the page. A phone is a viewport under 40rem wide, or under
40rem tall beneath a coarse pointer, too short for a box of 40rem beside the page around it.
An infinite scroll appends each page as the page nears the list's end, and its header stays at
the top of what scrolls them, `--forma-explorer-header-inset-block-start` below a host's own
Expand Down
24 changes: 7 additions & 17 deletions docs/features-status.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
| Measure | Now |
| --- | --- |
| Components | 83 implemented, as [the catalog](component-catalog.md) lists them, and 21 planned, as [the roadmap](component-roadmap.md) orders them |
| Packages | Every project under `src/` but the Showcase, released from `main` by `release.yml` to nuget.org and the organization's GitHub feed, the latest published release `1.0.0-preview.24` |
| Packages | Every project under `src/` but the Showcase, released from `main` by `release.yml` to nuget.org and the organization's GitHub feed, the latest published release `1.0.0-preview.25` |
| Render modes | Interactive Server, WebAssembly and Auto implemented: every call a component makes to a script and every call back checked in each, and on the Server in WebKit, the engine of Safari and of Apple's web views, every runtime on a page following its culture coordinator, a client reading its host's own strings, and a host setting either arrangement up as the README says; static rendering implemented, every check page rendered statically with no enabled control that needs interactivity; Blazor Hybrid implemented on WPF, Windows Forms and MAUI on Windows, every component checked in a web view and each host's application set up as the README says; an inventory holds every component to a check page in every render mode |

The gate runs every check [the verification design](verification-design.md#gates) sets out, each platform's where the machine can run it. It passes locally on Windows and in CI on Linux, on Windows and on an Android emulator.
Expand All @@ -27,11 +27,10 @@ The gate runs every check [the verification design](verification-design.md#gates
| [The build](#the-build) | Faster tests, a faster gate, builds in processes of their own and the examples' locale lint; the affected-checks command next |
| [The input router's host routes](#the-input-routers-host-routes) | Installed on every interactive page with a Forma component |
| [A host's integration](#a-hosts-integration) | Fifteen findings, all fixed |
| [A host's requests](#a-hosts-requests) | Four components implemented and one on the roadmap, and thirty changes, all fixed |
| [A host's requests](#a-hosts-requests) | Four components implemented and one on the roadmap, thirty-one changes fixed, and one already met |
| [A security check](#a-security-check) | Every step in place |
| [Themes](#themes) | Steps 1 to 11 landed, and 12 and 13 on every platform but iOS and Mac Catalyst, which wait on a Mac |
| [The Showcase's review modes](#the-showcases-review-modes) | Planned, nine steps open, the pointer emulation's prototype and the preview first |
| [Early runs](#early-runs) | The early runs reported and passing, required once a candidate passes them |

- **One component at a time,** built, reviewed and approved before the next starts, as the working rules in `CLAUDE.md` set out.
- **A change is a commit,** each passing its own checks, and the full gate runs at integration and release, as [the verification design](verification-design.md#gates) sets out.
Expand Down Expand Up @@ -118,6 +117,7 @@ Each feature, the document that states it, its state, and the month it first lan
| --- | --- | --- | --- |
| The gate and CI on Linux and Windows | [Build and verification](repository-structure.md#build-and-verification) | Implemented, Android's checks in [the environment the repository declares](repository-structure.md#the-android-environment), its JDK and its emulator, on every machine and in CI alike | [September 2026](../FEATURE-HISTORY.md#2026-09) |
| The browser check | [Tests](repository-structure.md#tests) | Implemented | [October 2026](../FEATURE-HISTORY.md#2026-10) |
| The early runs: every component checked as a reader meets it on a page still loading, its scripts held back | [Verification design](verification-design.md#early-runs) | Implemented, required of every full run in CI | [`1.0.0-preview.24`](../CHANGELOG.md#100-preview24) |
| The Showcase's review modes: a page in each device, pointer, theme, scheme and direction, and side by side | [Showcase design](showcase-design.md) | [Planned](#the-showcases-review-modes) | — |
| The screen reader check | [Screen reader checks design](screen-reader-checks-design.md) | Implemented | [October 2026](../FEATURE-HISTORY.md#2026-10) |
| Releases | [Build and verification](repository-structure.md#build-and-verification) | Implemented: each release published from its signed tag on `main` to nuget.org and the organization's GitHub feed, and proven against what it published: a consumer outside the repository reading a locale pack it restored from a feed into an empty cache, and a project outside it declaring `IsLocalePack` packing as a pack | [September 2026](../FEATURE-HISTORY.md#2026-09) |
Expand Down Expand Up @@ -222,7 +222,7 @@ Reviewing a host's integration against Forma's source turned up fifteen findings
A host's list of what it needs from Forma named five components Forma lacked: `FormaComboBox`, `FormaLinkTabs`,
`FormaLineChart` and `FormaBarChart`, all now implemented, as [the catalog](component-catalog.md) lists them, and
`FormaRadioGroup`, which [the roadmap](component-roadmap.md) builds first. It named a search of its commands too, which
`FormaCommandPalette` is, and thirty changes to components that exist, listed here in the order they are taken,
`FormaCommandPalette` is, and thirty-two changes to components that exist, listed here in the order they are taken,
each with what the code does and its state.

| Request | What the code does | State |
Expand Down Expand Up @@ -257,6 +257,8 @@ each with what the code does and its state.
| A toast's action | `IToastService.ShowAsync` took a message, a type and a duration, so a toast couldn't lead to what it announces, such as the request it says was sent. It takes a `ToastAction` now, a label with an address or a callback, drawn as a button within the toast's live region, and a toast with one stays until it's dismissed or its action is used | Fixed |
| A tag left open in sanitized markup | `AllowlistHtmlSanitizer` copied a `<` that opened no complete tag as typed, so a rich text ending in a tag never closed, such as a `meta` refresh, reached the page whole and took the page's own markup after it as its end, keeping every attribute the policy refuses. It writes such a `<` as `&lt;` now, so the tag stays text | Fixed |
| A theme picker at one press | `FormaThemePicker` drawn statically was a form of lists with an Apply button, so in a header's menu a reader chose and then applied. Its `ThemePickerLayout.Buttons` offers each theme and each scheme as a button that applies its choice as it's pressed, posted from a static page and switched in place on an interactive one, the choice in force pressed and checked | Fixed |
| A theme picker on a page kept for every reader | `FormaThemePicker` drawn statically writes into each form the antiforgery token its request generates, and ASP.NET Core generates one only where the application calls `UseAntiforgery()`. In an application relying on its check of where a post comes from, by the Fetch Metadata a browser sends, the forms carry no token, so a page carrying the picker sets no cookie and can be kept for every reader, and `MapFormaThemes()` takes their posts from the application's own pages and refuses another site's. [The theme design](theme-design.md#a-statically-rendered-pickers-posts) and the server half's README say so, and the picker's and the endpoint's tests hold them to it | Already met |
| The page's scroll over a data view | `FormaDataView`'s region, and the explorer's media and folder tree, contained their overscroll, which in Chromium ends a wheel's or a swipe's scroll at the box whether or not it has anything to scroll, so over a view growing with its page, or an explorer flowing in a phone's, the page didn't scroll. None contains it now, so a turn or a swipe the box can't take goes on to the page, as it does over the rest of the page | Fixed |

<a id="a-security-check"></a>

Expand Down Expand Up @@ -314,19 +316,6 @@ review bar, the device view, the pointer emulation, and direction and comparison
window's theme picker and the Themes page follow, each waiting on the theme plan's steps it names. None of the
steps has landed.

<a id="early-runs"></a>

## Early runs

[The verification design's early runs](verification-design.md#early-runs) check each component as a reader meets it on
a page still loading, its scripts held back while the check presses and types. [The verification implementation
plan](verification-implementation-plan.md) carries them out in three steps: the early runs, reported at first; a sweep
fixing every component they fail; and the early runs required. No release is cut until the sweep is done, unless a host
is blocked on a fix. The early runs have landed, reported by a job of the full gate that holds nothing, and the sweep is
done: every component's early runs pass, a component drawing a control whose script hasn't attached as a static render
draws it, as [render modes](component-foundations-design.md#render-modes) sets out, and a check of a gesture skipping
its early runs. The early runs become required once a candidate's full run passes them clean.

<a id="deferred"></a>

## Deferred
Expand All @@ -338,4 +327,5 @@ Each waits for the trigger named beside it before its design or its implementati
| Observing the document's child list | No consumer needs it, and its cost is unmeasured | A consumer with a measured cost |
| Growing the DOM watcher and engine's design beyond its plan | Its plan's steps come first | Those steps landed |
| A System preference following the device's `prefers-contrast` | Forma High Contrast is chosen explicitly first, as [the theme design](theme-design.md#light-dark-and-high-contrast) sets out | The theme system in use |
| A theme picker without its token where the application validates antiforgery tokens | A page kept for every reader already carries the picker without a token in an application checking where a post comes from, as [the theme design](theme-design.md#a-statically-rendered-pickers-posts) sets out; one validating tokens would need `MapFormaThemes()` to check a post without a token by where it comes from instead | A host validating antiforgery tokens that keeps a page carrying the picker for every reader |
| The device view as a component for hosts | It serves the Showcase's review alone, as [the Showcase design](showcase-design.md#where-the-parts-live) sets out | A host's concrete need |
Loading
Loading