Skip to content

Add the Wave A control handlers on the core slice - #12

Merged
Redth merged 20 commits into
mainfrom
redth-tizen-handler-wave-a
Aug 28, 2026
Merged

Redth merged 20 commits into
mainfrom
redth-tizen-handler-wave-a

Conversation

@Redth

@Redth Redth commented Aug 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #5 (redth-tizen-core-vertical-slice). Review that one first; this PR's diff is additive on top of it.

What this is

The second migration wave: the controls that live inside the core slice's window/layout path. Fourteen handlers, plus the font, image-source and native-control pieces they need.

Control Handler Control Handler
IButton TizenButtonHandler IPicker TizenPickerHandler
IEntry TizenEntryHandler IDatePicker TizenDatePickerHandler
IEditor TizenEditorHandler ITimePicker TizenTimePickerHandler
ICheckBox TizenCheckBoxHandler ISearchBar TizenSearchBarHandler
ISwitch TizenSwitchHandler IStepper TizenStepperHandler
ISlider TizenSliderHandler IRadioButton TizenRadioButtonHandler
IProgress TizenProgressBarHandler IActivityIndicator TizenActivityIndicatorHandler

Common view behaviour is inherited from the core slice's TizenViewHandler<,>, not reimplemented — this wave only adds each control's own mappings.

Mapper completeness

Every mapper is a complete replacement for MAUI's, including properties Tizen cannot honour. Those are mapped to an empty method with a <remarks> explaining why, rather than omitted.

That distinction is deliberate. An absent key silently does nothing when an application replaces a mapping; a present no-op is discoverable, documented, and overridable.

docs/mapper-parity-matrix.md is generated from the shipped mappers by a test, so it cannot drift from the code. It reports no gaps. Regenerate with MAUI_TIZEN_UPDATE_PARITY_MATRIX=1 dotnet test.

Not a verbatim port

The verification lanes exposed defects in the upstream Tizen backend, which are fixed here rather than carried across:

  • Tizen.UIExtensions.NUI.Entry already implements IMeasurable, and seals it. Upstream ships a MauiEntry/MauiEditor subclass overriding Measure as a "workaround" — but the base implementation is final, so the override is never reached through the interface and the workaround does nothing. Removed.
  • EditorExtensions.UpdateVerticalTextAlignment read HorizontalTextAlignment.
  • Slider bounds are written as a pair, so mapper key order stops being load-bearing when the new range does not overlap the old one.
  • MaxLength, CursorPosition and SelectionLength are clamped to the current text; a stale value from a previous string could throw from inside a property mapper.
  • Stepper suppresses no-op change notifications, so holding a button at a bound stops feeding redundant writes back through MAUI.
  • Button.Padding, SearchBar.ReturnType and DatePicker.Minimum/MaximumDate are implemented; upstream leaves all four unmapped.
  • Window.Instance (deprecated in API12) replaced with Window.Default.

Two more MAUI extensibility gaps

Both recorded in docs/wave-a-handlers.md:

  1. ViewHandler.ContainerView has a private protected setter. An out-of-repo backend cannot publish a container view it builds in SetupContainer, and IElement.ToPlatform(IMauiContext) returns IViewHandler.ContainerView when one exists — so a third-party container is invisible to MAUI's own view-realisation path. This is the same gap Tizen core backend vertical slice on the public MAUI ViewHandler #5 found; this wave inherits its NeedsContainer => false resolution.
  2. ImageSourcePaint is internal. A backend cannot detect an image background, so IView.Background carrying one renders nothing. The code to apply it exists and works; it just cannot be reached from the Background mapping.

Also: IFontManager and IImageSourceService are marker-only in the neutral assembly — the members that resolve a font or load an image exist solely in each platform's own build of MAUI. Hence ITizenFontManager / ITizenImageSourceService, and hence hosts must call AddTizenControlServices().

Validation

Both workload-free lanes pass with CI semantics (TreatWarningsAsErrors=true), zero warnings:

Lane Proves Result
Maui.Tizen.Core.RefPackCompile Every #if TIZEN branch type-checks against the real Samsung.Tizen.Ref.API15 assemblies pass
Maui.Tizen.Core.UnitTests Mappers, command dispatch, DI registration and the naming/collision rules execute against host stand-ins 218 passed

eng/build-workload-free.sh: all checks pass.

The new tests were negative-controlled — deleting a single mapper key (ISwitch.ThumbColor) makes MapperCoversEveryNeutralKey fail, so they genuinely bite.

Exact blockers, unchanged by this wave

  • samsung.net.sdk.tizen.manifest-11.0.100 is not published (only the 9.0.100 and 10.0.100 bands exist), so net11.0-tizen11.0 cannot be restored or built by anyone.
  • Consequently no device or emulator coverage: neither lane runs a NUI main loop, so rendering, focus behaviour, IME interaction and dialog dismissal are verified by construction and review only.
  • Tizen.UIExtensions.NUI 0.9.2 still declares a .NET 6-era Microsoft.Maui.Graphics dependency, so packing stays blocked by MAUITIZEN0101.

Core dependency assumptions

  • TizenViewHandler<,>, ITizenPlatformViewHandler, TizenPlatformExtensions, TizenContentViewGroup and the TizenNativeView alias come from Tizen core backend vertical slice on the public MAUI ViewHandler #5 and are used as-is.
  • NeedsContainer => false is inherited, so background/clip/shadow are limited to what NUI paints on the view itself.
  • AddTizenControlHandlers is intentionally separate from AddTizenHandlers so either half can be adopted independently while the migration is in flight.
  • ITizenModalHost is the seam the navigation wave should implement so the picker dialogs join the back stack. Until then TizenDirectModalHost opens them directly on the window.

Not in this wave

Image, graphics-view, border/shape, scroll, collection, navigation, shell and gesture handlers, and the modal navigation stack. No sample-catalog section was added: the core slice's sample is owned by #5, so sample additions are deliberately left for the merge rather than conflicting here.

Redth added a commit that referenced this pull request Aug 26, 2026
…policy

Ten further review findings. All were real; several were things that looked
correct while doing nothing.

Blazor package graph (verified against the feed, not assumed)

Microsoft.AspNetCore.Components.WebView was pinned to MAUI's version stamp
11.0.0-preview.7.26418.3. That version does not exist for that package - it is an
ASP.NET Core package on its own version line - so NuGet silently substituted
11.0.0-rc.1.26378.118 (NU1603) and then failed with NU1109 downgrades across the
graph. That substitution is where the "actual dependency is rc.1" report came
from; it was NuGet's fallback, not a declared dependency.

Microsoft.AspNetCore.Components.WebView.Maui 11.0.0-preview.7.26418.3 declares
Microsoft.AspNetCore.Authorization, Microsoft.AspNetCore.Components.WebView and
Microsoft.JSInterop at exactly 11.0.0-preview.7.26381.103 - which also matches the
SDK build pinned in global.json, so the whole graph stays on one ASP.NET Core
build. Pinned there. RC1 would have silently upgraded past what MAUI asked for.

Package source mapping now lists the prerelease patterns under BOTH sources.
NuGet restores only from sources declaring the longest matching pattern, so
Microsoft.AspNetCore.* under dotnet11 alone would have made every ASP.NET Core
package resolvable only from that feed (NU1100 for anything it lacks).

Added eng/tests/PackageGraphProbe: a net11.0 project whose only purpose is to make
restore prove these pins resolve. Necessary because the real consumers are Tizen
projects, and they cannot restore at all - the workload gate fires before Restore
- so a broken pin would otherwise stay invisible until Samsung ships. Verified it
reproduces the original NU1603/NU1109 failure.

CI workload probe could never succeed (#5)

`dotnet workload install tizen --skip-manifest-update` cannot work on a clean
runner: the Samsung manifest is third-party and side-loaded, so the workload ID is
not discoverable through public workload search, and --skip-manifest-update
guarantees failure because the manifest is exactly what is missing. A probe that
can never succeed would keep reporting "blocked" for weeks after the gate lifts.
Replaced with a feed probe for an 11.0.100-band manifest package, checking both ID
spellings. Installation, when it happens, goes through Samsung's supported path.

Dead configuration removed (#6, #10)

  - <Compile Update="**/*.Tizen.cs" /> had no metadata, so it changed nothing, and
    EnableDefaultCompileItems=false meant there were no items to update anyway. It
    read as meaningful configuration while being unreachable.
  - ValidateBaselineConsistency did substring matching on JSON inside MSBuild.
    Parsed validation already exists in the workload-free script and the invariant
    tests, which is where it belongs.

Orphan imported projects (#7)

GraphicsTester.Skia.Tizen.csproj was imported because its filename contains
"Tizen", but it cannot load here: its TFM is $(_MauiDotNetTfm)-tizen (a
dotnet/maui property that does not exist here, so the TFM evaluates to the
malformed "-tizen") and both ProjectReferences point at projects never imported.
Parked as .csproj.orphan - file and history intact, invisible to project
discovery - with samples/README.md documenting every orphan asset directory and an
invariant test asserting every .csproj is in the solution.

Analyzers and warnings (#8, #14)

  - Added Microsoft.CodeAnalysis.PublicApiAnalyzers (PrivateAssets=all) so the
    PublicAPI baselines are enforced rather than inert text.
  - Removed the Microsoft.SourceLink.GitHub pin; the SDK has bundled it since .NET 8.
  - Suppressed CS1591 in TizenPackage.props: the inherited sources are not
    uniformly documented, so the first project to start compiling would otherwise
    fail on hundreds of missing-comment errors under warnings-as-errors.
    Documentation is its own workstream, not a blocker for the first handler.

Licensing (#9)

git-filter-repo is vendored and load-bearing, so unlike the referenced-only
Samsung packages it IS redistributed. Added its upstream, version, MIT licence
text and a verification command to THIRD-PARTY-NOTICES.md.

CI hygiene (#11, #12)

  - `dotnet test --no-build` is skipped when a preceding build failed; running it
    against missing output buries the actual first failure in cascading noise.
  - Added a scheduled dependency-audit workflow. The strict policy stays (audit at
    `low`, warnings as errors - this ships to devices where patching is slow), but
    a newly published advisory now files an issue weekly instead of ambushing
    whoever opens the next unrelated PR. Suppression process documented, with a
    required justification and re-review date.

Naming and provenance (#13)

Replaced 'samsung.net.sdk.tizen.manifest-11.0.100' with the actual band contract
Samsung.NET.Sdk.Tizen.Manifest-11.0.100-preview.7, recording both ID spellings
(NuGet IDs are case-insensitive) and the probe results for each. Documented that
tizen11.0/API15 comes from Samsung workload PR #310 - verified, not assumed.

Also recorded that enabling Build.Tasks raises real SkiaSharp native-asset
packaging questions, flagged as an open decision rather than papered over.

Tests: 28 -> 33 invariants, plus the package graph probe wired into the required lane.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@Redth
Redth force-pushed the redth-tizen-handler-wave-a branch 3 times, most recently from 9c647b5 to bbc72f2 Compare August 26, 2026 22:31
Copilot AI and others added 4 commits August 26, 2026 19:54
Fourteen handlers - button, entry, editor, check box, switch, slider, progress
bar, activity indicator, picker, date picker, time picker, search bar, stepper
and radio button - plus the font, image-source and native-control pieces they
need. Common view behaviour is inherited from the core slice's
TizenViewHandler<,> rather than reimplemented.

Every mapper is a COMPLETE replacement for MAUI's, including properties Tizen
cannot honour. Those are mapped to an empty method with a <remarks> explaining
why, not omitted. An absent key silently does nothing when an application
replaces a mapping; a documented no-op is discoverable and overridable.
docs/mapper-parity-matrix.md is generated from the shipped mappers by a test, so
it cannot drift, and reports no gaps.

Ported behaviour was corrected where the verification lanes exposed defects
rather than copied verbatim:

  * Tizen.UIExtensions.NUI.Entry already implements IMeasurable, and seals it.
    Upstream's MauiEntry/MauiEditor "workaround" overrides a final method, so it
    is never reached through the interface and has no effect. Removed.
  * EditorExtensions.UpdateVerticalTextAlignment read HorizontalTextAlignment.
  * Slider bounds are written as a pair, so mapper key order stops being
    load-bearing when the new range does not overlap the old one.
  * MaxLength, CursorPosition and SelectionLength are clamped to the current
    text; a stale value from a previous string could throw from inside a mapper.
  * Stepper suppresses no-op change notifications, so holding a button at a
    bound no longer feeds redundant writes back through MAUI.
  * Button.Padding, SearchBar.ReturnType and DatePicker.Minimum/MaximumDate are
    implemented; upstream leaves all four unmapped.
  * Window.Instance (deprecated in API12) replaced with Window.Default.

Two MAUI extensibility gaps shaped the design and are recorded in
docs/wave-a-handlers.md: ViewHandler.ContainerView has a private protected
setter, so an out-of-repo backend cannot publish a container view; and
ImageSourcePaint is internal, so an image background cannot be detected. The
first is why this wave inherits the core slice's NeedsContainer => false.

Validation is the two workload-free lanes, both green with CI semantics:
RefPackCompile type-checks every #if TIZEN branch against the real
Samsung.Tizen.Ref.API15 assemblies, and the unit tests execute the mappers,
command dispatch and DI registration against host stand-ins. 218 tests pass.
No device coverage is possible: samsung.net.sdk.tizen.manifest-11.0.100 is still
unpublished, so net11.0-tizen11.0 cannot be restored anywhere.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Every defect here left the build green and the tests passing while the control
misbehaved at runtime, so each fix is paired with a regression that fails
without it. Two were found by the new tests rather than by reading.

1. Handlers chained MAUI's neutral ViewHandler.ViewMapper (merge blocker). That
   mapper is compiled for a non-platform TFM, where PlatformView is aliased to
   object and the bodies are the Standard no-ops: every key resolves and nothing
   is applied. Size, visibility, enabled, opacity, transforms and input
   transparency silently did nothing, and the existing key-presence tests passed
   happily. All fourteen handlers now chain the core slice's
   TizenViewMappers.ViewMapper, pinned from both directions - one test asserts
   the chain's source, another asserts each mapping reaches the platform view.

2. Stepper applied bounds one property at a time, in mapper declaration order.
   For min 5 / max 30 / value 25 that clamped into [5, 10] - 10 being the native
   default maximum - reported a change, and the handler wrote that intermediate
   value back onto the virtual view, destroying the application's bound value
   before the real one was ever applied. A minimum above 10 made Math.Clamp
   throw ArgumentException from inside a property mapper. Both reproduced before
   fixing. Bounds and value are now applied atomically.

3. ConfigureAwait(false) before touching the UI, in TizenImageSource, Button,
   Slider, Picker, DatePicker and TimePicker. The continuation resumed on a
   thread-pool thread and then touched NUI, or wrote the virtual view - which
   re-enters MAUI's property system, runs the mapper, and touches NUI in turn.
   This is the failure mode testing is worth most on, because off-thread NUI
   access usually appears to work and corrupts state somewhere else later.

4. Image loads had no lifecycle at all: no supersession, so a slow earlier load
   could overwrite a newer one; no source or view identity check; no clearing on
   failure; and the service result, which owns a native image buffer, was never
   disposed on replacement or disconnect.

5. Editor and SearchBar never proxied cursor or selection events - only Entry
   did. Moving the caret left MAUI believing it was still where it was last
   told, so the next programmatic edit landed at the wrong offset. NUI reports
   selection offsets in drag order, so a right-to-left drag also produced a
   negative length.

6. SearchBar and Stepper are composites. Focus requests resolved against the
   group, which draws no caret and accepts no input, so focus appeared to
   succeed while doing nothing; child focus was never reflected back onto the
   virtual view.

7. Unset values did not restore native defaults. CornerRadius -1 and a null or
   non-solid CheckBox Foreground both skipped the write, so clearing either kept
   whatever was last applied and the control could never return to its themed
   appearance.

Two things worth flagging for the reviewer.

The composite MapFocus overrides were initially written inside an #if TIZEN
block. On the host lane the name then bound to the INHERITED
ViewHandler.MapFocus - MAUI's no-op - so it compiled and behaved differently per
target framework. This is defect 1 in miniature and was caught by the new focus
test, not by review. The overrides are now unconditional with only their bodies
guarded.

Stepper range arithmetic, image-load lifecycle, selection normalisation and
dispatching were deliberately extracted out of the NUI-typed classes into
TizenStepperRange, TizenImageLoader<T>, TizenTextSelection and
TizenDispatchExtensions. None of them need NUI, and moving them puts them in the
host lane where they are executed rather than merely reviewed - which is where
all four of these defects were hiding.

Validation: ref-pack and unit lanes both clean under CI semantics
(TreatWarningsAsErrors), 616 tests pass, eng/build-workload-free.sh green. The
Samsung workload is still unpublished, so there is still no device coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Architecture review found the backend was not actually substitutable for MAUI's
own handlers: it owned a parallel ITizen*Handler hierarchy and chained only the
Tizen base mapper, so MAUI Controls' RemapForControls dispatch never reached it.

Every claim the redesign rests on was verified against the pinned package
(11.0.0-preview.7.26426.4) before any code changed, because the previous design
was justified by an objection that turned out to be obsolete:

  * Microsoft.Maui.Core ships NO Tizen asset - only net11.0, -android, -ios,
    -maccatalyst and -windows. A net11.0-tizen11.0 project therefore resolves the
    neutral assembly, where every handler interface types PlatformView as object.
    The CS9333 alias mismatch that motivated the backend-only interfaces cannot
    occur. Confirmed by implementing IButtonHandler explicitly: it compiled.
  * ImageSourcePartLoader is public, which is what unblocked IButtonHandler.
  * Chaining MAUI's static mapper is LIVE, not a snapshot: a mapper built before
    Controls' static constructor runs still picks up the remap. Measured.
  * All 39 chained Button mappings dispatch against a backend handler with zero
    InvalidCastException. The hard-cast concern is real but satisfied.

So: all fourteen handlers now implement MAUI's real IXHandler, the backend-only
interfaces are gone, and each mapper is composed in three layers - MAUI's static
mapper (carrying Controls' remaps), then the Tizen view mappings over its no-op
bodies, then the handler's own keys, which must win because Entry.Background has
to re-evaluate the container before painting.

Parity is now measured against Controls rather than Core. The test project
references Microsoft.Maui.Controls.Core and forces the static remaps before
reading any mapper; measuring beforehand reported a parity the backend did not
have. The generated matrix gained a third state as a direct consequence:
`inherited` (resolves through the chain, but the body is MAUI's off-platform
no-op, so nothing happens) as distinct from `tizen`. Chaining makes every key
resolve, so a table reporting presence alone would have claimed total parity
while most properties did nothing.

CheckBox.Color added - it exists only after Controls remaps. Label's Controls
keys (FormattedText, TextType, LineBreakMode, MaxLines, TextTransform) are NOT
addressed here: TizenLabelHandler belongs to the core slice and still chains the
Tizen base mapper. Reported rather than edited, to avoid conflicting with an
in-flight file; the parity test deliberately excludes it with that reason stated.

Two new guards, both for a bug class that has now bitten three times. A mapping
declared as Map(TizenXHandler, ...) cannot satisfy Action<IXHandler, ...>, and a
mapping declared inside #if TIZEN does not exist off-platform - in both cases the
name silently binds to MAUI's INHERITED no-op instead. It compiles, and behaviour
differs by target framework. Found this time in TizenEntryHandler.MapBackground
and TizenEditorHandler.MapBackground by the new tests, not by reading.

Also adds an expiry test for the internal ImageSourcePaint gap. The workaround
degrades honestly rather than reflecting over MAUI internals; dotnet/maui#37864
adds a public IImageSourcePaint, and the test asserts the gap still exists so it
FAILS when the contract ships. A workaround that keeps working after its
justification disappears is otherwise invisible.

Not included: the rebase onto core removing its ITizen* shims. Core head ac3dba6
still ships ITizenHandlers.cs, so that remains outstanding. Items 1-3 touch only
Wave A files and do not conflict with it.

Validation: ref-pack and unit lanes clean under CI semantics, 694 tests pass
(full suite run five times to rule out order dependence from the global mapper
mutation), eng/build-workload-free.sh green.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Rebase onto the core slice at 163677d, which removed the ITizen*Handler
shims and added a PublicAPI baseline, then fix two defects this exposed.

Chained keys must be overridden, not just chained. MAUI's static mappers
are declared as IPropertyMapper<IView, IXHandler> but constructed as
PropertyMapper<IView, XHandler>, closed over the concrete handler, and
PropertyMapper<,>.Add dispatches through a hard (TViewHandler)h cast. A
key reachable only through the chain therefore throws InvalidCastException
when dispatched to a Tizen handler. Picker.ItemsSource and
Stepper.Increment - both added by RemapForControls - were in that state
and now have Tizen bodies mirroring what Controls does.

ControlsRemap.Force was measuring the wrong thing. Only Label and CheckBox
remap from a static constructor; the other thirteen Wave A controls are
remapped by ConfigureControls when a MauiApp is built. Running class
constructors alone left most mappers un-remapped, so parity described Core
in isolation and varied with test ordering. Force now builds a Controls
host, and ControlsRemapTests asserts on keys only a built host produces.

The parity matrix gains a fourth state. TextTransform, ContentLayout and
Button.LineBreakMode are properties of Controls types that upstream applies
from Microsoft.Maui.Controls.Platform, so reporting them as plain
"inherited" read as a Wave A defect. They are now "controls", and a test
verifies each excused key is genuinely implemented under
src/Maui.Tizen.Controls so the state cannot hide a gap.

Core's NoParallelTizenHandlerInterfacesRemain matched any ITizen* interface
by name, which caught two service contracts that are not handlers. It is
narrowed to its stated intent, with the full inventory still pinned
separately so a new backend abstraction cannot appear unreviewed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8b0524d9-c874-4468-bff6-d21f31c772de
@Redth
Redth force-pushed the redth-tizen-handler-wave-a branch from cc737b1 to 4e76cad Compare August 27, 2026 00:08
Redth and others added 9 commits August 26, 2026 20:15
Key presence is cheap to satisfy and proves little, so dispatch the
Controls-remapped properties and the focus commands through the real
composed mappers on real handlers bound to real Controls views. Each
dispatch first asserts the key actually resolves, otherwise UpdateValue on
an unknown key is a silent no-op and the test would pass vacuously -
verified by removing TizenLabelHandler's chain and watching it fail.

TizenLabelHandler is no longer excluded from the reachability theory. Core
fixed it in f90ba12: FormattedText, TextType, LineBreakMode, MaxLines and
TextTransform all resolve now, with no cast failures, so the exclusion note
was stale.

Upstream dotnet/maui#37864 is still open, so the image-background
workaround stays. Mark the exact adoption point in UpdateBackground instead,
with the image-first ordering the fix requires spelled out, and have the
expiry test report the shipped shape of IImageSourcePaint.ImageSource so the
adopter learns in one run whether the planned pattern still applies.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8b0524d9-c874-4468-bff6-d21f31c772de
Fixes a Wave A defect and tightens two claims that were not backed by
evidence.

Entry and Editor called UpdateBackground(view.Background), discarding the
view. Resolving an image-source background needs an
IImageSourceServiceProvider reached through view.Handler, so those mappings
could never render an image background however the extension were later
fixed - and the failure is silent, because the paint still flattens to a
colour. Both now pass the view, with clearWhenNull:false preserving the
previous semantics exactly. BackgroundMappingsKeepTheViewInScope pins it;
the distinction is invisible today, which is why a comment would not have
held. The IView overload is documented as the image-capable entry point,
and the adoption seam moved there, since the paint-only overload structurally
cannot do the work.

Remap coverage is now behavioural. Reachability and absence of
InvalidCastException are necessary but not sufficient - the review found
Label's keys reachable yet inert - so ControlsRemapBehaviorTests asserts
observable effect: ItemsSource really raises Items, Increment really raises
Interval, and Description/Hint/HeadingLevel really reach Semantics. Each was
verified non-vacuous by removing the override and watching it fail.
Measuring also found IsInAccessibleTree and ExcludedWithChildren reachable
but genuinely inert; that is recorded rather than tolerated, and the test
says what to do if someone implements them.

The `controls` parity state is withdrawn. It excused keys on the strength of
sources existing under src/Maui.Tizen.Controls, but that project is in no
compiled lane, so they are unbuilt and untested - not coverage. They are
reported as `inherited`, which is what they are, and a test fails if the
project ever gains a lane so the question is revisited on evidence.

Core's NoParallelTizenHandlerInterfacesRemain is restored to its original
form; only the expected list is extended with the two service interfaces
Wave A genuinely adds, rather than carrying a redesign of a Core-owned test.

Image guidance follow-up: adoption is consumption-only, so
BackendDoesNotImplementImageSourcePaint forbids implementing the contract -
the one guard that must outlive the others - and the seam documents
image-first ordering ahead of gradient and solid, null ImageSource clearing,
and clearing on a null async result, now covered by
ALoadResolvingToNoImageClearsThePrevious.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8b0524d9-c874-4468-bff6-d21f31c772de
Wave B's review found AddTizenImageSources had no caller. Generalising that
check found two more, and the other two were severe: nothing called
AddTizenControlHandlers or AddTizenControlServices either, so all fourteen
Wave A control handlers, their font manager and their modal host were never
registered in a real app. Every registration test passed because each one
invoked the AddTizen* method itself, verifying the method rather than the
wiring. ConfigureTizen now performs all three registrations.

The image source case fails silently, which is why it survived review. MAUI's
neutral package already registers FileImageSourceService,
StreamImageSourceService, FontImageSourceService and UriImageSourceService, so
every source type resolves whether or not the Tizen registration ever runs -
nothing throws, no service is reported missing, and images are simply blank. A
test asserting "a service is registered" therefore passes on an app that can
never display an image, so ImageSourceRegistrationTests asserts which
implementation wins. That a later AddService replaces MAUI's default rather
than being shadowed by it is the load-bearing assumption behind the fix, and
is verified rather than assumed.

AddTizenImageSources moves to the portable compile group, separated from the
NUI-dependent services it registers, so the ConfigureTizen call compiles on
both lanes and the image workstream has a seam to extend with the font and URI
services - one hook, rather than a second entry point a host must remember to
call. FontAndUriSourcesAreNotYetTizenOwned records that those two are still
MAUI's defaults and fails with instructions when that wave lands.

EveryTizenRegistrationExtensionHasACaller generalises the review finding so the
next uncalled registration fails a test instead of waiting for a reviewer; it
is what found the control handler and service instances. The docs previously
showed the registration snippet as something a host would write, which is what
made the missing calls look intentional, and are corrected.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8b0524d9-c874-4468-bff6-d21f31c772de
The container gap had no expiry test. ImageSourcePaint had one; this one was
documented as a blocker in prose only, so nothing would have failed when the
upstream fix shipped and the workaround could have outlived its justification
indefinitely - the exact failure mode expiry tests exist to prevent.

Verified against the pinned package rather than assumed: ValidateContainerView
is absent, and ContainerView's setter reports IsFamilyAndAssembly, which is
private protected. The gap is real and unshipped.

The guard records the signature dotnet/maui#37854 requires, because it is easy
to get wrong in a way the compiler reports confusingly:

    protected override void ValidateContainerView(object containerView)

The parameter must be object; narrowing it to the backend's wrapper type
overrides nothing and fails with CS0115. That is the third appearance of one
root cause on this branch - the neutral package types platform-facing things as
object, and being more specific than the base declaration fails as CS9333 for
explicit interface implementations, as silent rebinding for mapper entries, and
as CS0115 here. The docs now state the general rule for later waves: match the
base signature exactly and narrow inside the body.

The guard also reports the shipped shape when the hook lands, and says so
explicitly when that shape is not what this plan assumed - verified by pointing
the lookup at an existing method and confirming both the detection and the
shape-mismatch warning fire.

Adoption remains core's, since NeedsContainer is core-owned.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8b0524d9-c874-4468-bff6-d21f31c772de
Wave A is held for a stable reviewed Core head, and Core has moved four times
during the wave. Writing the merge checklist now, while the facts are current,
rather than reconstructing it at rebase time.

Covers the four areas the integration has to get right: image-service
composition with Wave B, removal of the Core-owned test delta, the upstream
adoption guards, and the mapper behaviour bar. Every test name cited was
checked to exist, and the API states quoted were measured against the pinned
package rather than recalled.

Two points are recorded because they are easy to get wrong at merge time. The
Core-owned test delta is a rebase hazard with a direction: if Core adjusts the
same assertion the edits conflict, and the correct resolution is to take Core's
and drop Wave A's, since re-applying would silently reinstate a delta on a file
Wave A does not own. And Wave B must extend AddTizenImageSources rather than
adding a second entry point, because a registration a host has to remember to
call is exactly the defect this wave just fixed.

ImageSourceRegistrationTests becomes CompositionRootTests. It had grown past
its name - it now covers control handlers, control services and the general
"every registration extension has a caller" guard - and a misleadingly narrow
name is how the next person ends up duplicating tests they could not find.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8b0524d9-c874-4468-bff6-d21f31c772de
Wave B's review was right, and this was live. AddTizenControlServices
registered IFontManager with TryAdd, but MauiApp.CreateBuilder() defaults to
useDefaults:true and MAUI's ConfigureFonts had already registered
Microsoft.Maui.FontManager - so the TryAdd was a silent no-op. Measured
rather than inferred: IFontManager resolved to Microsoft.Maui.FontManager
while ITizenFontManager resolved to TizenFontManager, two different objects.

The consequence was quiet, which is why it survived. GetTizenFontFamily
pattern matches the resolved IFontManager to ITizenFontManager and falls back
to the raw family name when it does not match, so every font alias registered
through ConfigureFonts reached NUI unresolved. Text still rendered, in the
wrong font, with nothing thrown and nothing logged.

This is the third service to hit the trap, after the dispatcher and the
ticker. The rule is now stated in both docs: any service MAUI registers by
default must be Replaced; TryAdd is correct only for contracts MAUI does not
know about, where nothing can shadow them and a host substituting its own
should win. ITizenFontManager and ITizenModalHost keep TryAdd for that reason.

IEmbeddedFontLoader is left alone deliberately - the Tizen loader is still raw
imported source in no compile group, so registering it would bind to a type
this package does not build. It carries the same hazard, so the test that
records the gap also reminds that wave to use Replace.

The alias test injects an IFontRegistrar rather than registering a font
through ConfigureFonts. That is a correction, not a shortcut: MAUI's registrar
resolves an alias by locating the real embedded asset, so with no .ttf in the
test assembly it returns null for every name and the manager legitimately
falls back to the alias - a test written the obvious way fails for a reason
that has nothing to do with the wiring. All three font tests were verified
non-vacuous by reverting to TryAdd.

The integration plan gains the font rule, Wave B's handler registration, and a
table of behaviour-carrying fixes to re-check after rebasing - including the
main-loop GenerateUrl, which has no guard test because it lives inside #if
TIZEN and so needs a human diff check.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8b0524d9-c874-4468-bff6-d21f31c772de
Ownership for NoParallelTizenHandlerInterfacesRemain is settled: Core narrows
the assertion to actual handler interfaces and keeps the broader exported
ITizen* inventory in a separately named test.

Verified that shape is compatible with Wave A rather than assuming it. Under a
narrowing predicate of "assignable to IElementHandler, or name ends in
Handler", ITizenApplicationHandler and ITizenPlatformViewHandler are caught
while ITizenFontManager and ITizenModalHost are not - so Core's assertion stays
exactly two names and passes unchanged against this assembly. Wave A's delta is
therefore dropped with no replacement, which is worth knowing before the rebase
rather than discovering during it.

The csproj delta is removed now. It was comment-only, so it could go without
waiting for Core, and the parity-vs-Controls rationale it carried already lives
in two Wave A-owned places. That leaves exactly one Core-owned test delta, and
it is blocked: dropping it early would turn the branch red, because Core's
current assertion expects two names while this assembly exports four. Core
narrows first, then Wave A rebases.

Also recorded what Core's separate inventory test needs - all four names and
why the two Wave A ones exist - since that test will fail the moment this
branch rebases unless it is written to expect them.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8b0524d9-c874-4468-bff6-d21f31c772de
The requirement is to assert which implementation answers, never that a
service is registered - MAUI's neutral defaults resolve perfectly well and
then render nothing. Two tests here did not meet that bar.

TizenSourcesAreRegisteredOnTheTizenLane asserted Tizen types inside #if TIZEN,
which makes it an empty method body on the only lane that runs. The Tizen
services touch NUI so they compile only under TIZEN; the ref-pack lane defines
TIZEN but only compiles, and the Tizen test lane cannot execute while the
Samsung workload is unpublished. It was reporting a pass while asserting
nothing, on exactly the property the review asked to be sure of.

The enforceable guard is therefore source-level:
EveryImageSourceTheSeamRegistersUsesATizenImplementation reads the seam and
fails on any AddService whose implementation is not a Tizen type. It asserts
over every registration rather than a fixed list, so Wave B's URI and font
services are covered without it being updated. Verified by simulating Wave B
registering IUriImageSource against a neutral UriImageSourceService: three
tests fail and name the offending pair. The #if TIZEN test now delegates to it
on the host lane instead of being empty, and TheSeamRegistersTheDocumentedSourceTypes
pins the current inventory so additions are a reviewed change.

RegisteringTheTizenSourcesTwiceIsIdempotent asserted non-null, which passes
with a neutral default answering - the exact trap. It now compares the resolved
implementation type against the single-registration case.

The seam's own doc comment gains the rule, since Wave B edits that file
directly and is the next reader of it.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8b0524d9-c874-4468-bff6-d21f31c772de
Two things, both found by looking rather than assuming.

The suite was failing about one run in five, and a full run is what exposed
it - the targeted runs I had been using all passed. Concurrent test classes
each call UseMauiApp<T>(), which reaches RemapForControls and mutates MAUI's
process-global static mappers; PropertyMapper stores those in a plain
Dictionary, so two threads corrupt it:

  InvalidOperationException: Operations that change non-concurrent collections
  must have exclusive access ... at PropertyMapper.GetProperty ... at
  TabbedPage.RemapForControls ... at UseMauiApp[TApp]

.NET then caches the failed type initialization permanently, so one collision
resurfaces as TypeInitializationException on every later access and takes out
dozens of unrelated tests. Seven classes here build apps, five of them
Core-owned, so the race predates this branch - Wave A's composition-root tests
widened the window enough to make it visible. Serialising the assembly
addresses the actual shared state, which is MAUI's global statics rather than
anything this repository owns; per-class collections would only work if every
future app-building class remembered to join them. Measured 3 failures in 15
runs before, 0 in 15 after.

Core efd759e defers Controls Label MaxLines and FormattedText to Wave A.
Neither can be implemented before the rebase - TizenControlsMappings and the
Controls compile lane exist only on Core - so what is settled here is the
evidence they depend on, read out of the pinned reference assemblies:

  Tizen.UIExtensions.NUI.Label.FormattedText   present
  Tizen.NUI TextLabel.MaxLines                 absent
  TextLabel.LineCount / AsyncLineCount         present, but read-only queries

An exhaustive search for MaxLine* across both assemblies returns only those
read-only line counts, so there is no native line limit. FormattedText is
therefore implementable and MaxLines is a documented limitation, with the
single honest exception that MaxLines == 1 maps to MultiLine = false.

Also recorded: the host lane cannot measure Label implementation status at all,
because those mappings sit inside #if TIZEN - Text, which IS implemented,
records exactly what MaxLines does. The evidence comes from Core's source. And
the reachability theory that includes FormattedText and MaxLines is annotated
to say it proves reachability only, since by this suite's own standard it would
otherwise read as parity.

Core's new Controls lane also invalidates the evidence behind the `inherited`
demotion, so ControlsLayerFollowUpIsNotMistakenForCoverage is expected to fail
on the first rebase. That is the guard working; the rebase procedure now says
to re-measure rather than silence it.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8b0524d9-c874-4468-bff6-d21f31c772de
@Redth
Redth changed the base branch from redth-tizen-core-vertical-slice to main August 28, 2026 19:42
Redth added 7 commits August 28, 2026 15:50
Retarget Wave A to merged Core, resolve the additive PublicAPI and handler-inventory conflicts, qualify Controls test aliases, and re-measure mapper parity against the compiled Controls bridge.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Apply MAUITIZEN0101 to every package that references Tizen.UIExtensions.NUI and cover the Controls package with fail/pass target tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Register every concrete Controls handler, make image and popup commits generation-safe on the UI thread, and classify explicit no-op mappings as unsupported with causal tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Keep image ownership and disposal on the captured dispatcher, distinguish current cancellation, drive picker popups from IsOpen, harden cleanup failures, and classify delegated terminal no-ops.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Retain failed image commits for UI-thread cleanup, complete replacements despite superseded cancellation errors, and make handler disposal/reconnect exception-safe and idempotent.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Clear Layout and ContentView ownership before disposal, attempt every owned handler, and always run aggregate parent cleanup with causal production-handler tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Atomically claim handler disposal before virtual owned cleanup so reentrant or concurrent callers cannot destroy the parent before all child/content attempts complete.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
@Redth
Redth merged commit 51b0b2c into main Aug 28, 2026
5 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.

2 participants