Skip to content

Import custom objects from Microsoft Whiteboard (1.7.4) - #179

Merged
marcosqlbi merged 1 commit into
mainfrom
feature/ms-whiteboard-custom-objects
Sep 30, 2026
Merged

marcosqlbi merged 1 commit into
mainfrom
feature/ms-whiteboard-custom-objects

Conversation

@marcosqlbi

Copy link
Copy Markdown
Collaborator

Custom objects (CustomElement) were the last object type in the Microsoft Whiteboard web client that the importer reported as left out. No sample holds one, so the markup was read from the web client's public code, as for #174 to #178.

A custom object is a widget from a plug-in, named by its kind in data-custom-widget-kind. The web client registers only two examples, example.counter and example.embed. For any other kind, and for every kind when its EnableCustomElement flag is off, it draws a gray box that fills the object and says the widget is not available or disabled. The box is at least 120 × 80 pixels, and its own size is 100%. The export therefore holds the box and the kind, not the widget.

The importer makes a custom object a rectangle of its size in the gray the web client draws, with Custom object and the kind as its text. Its size is the first one given in pixels, because a percentage is the widget filling its box; without one it takes the smallest box. A custom object without a kind is still reported.

A new Core smoke test covers a sized, disabled example.counter, a centered widget with only percentage sizes, and one without a kind. All 19 samples still import unchanged. The solution builds clean and both harnesses pass.

With this, every data-whiteboard-type the web client names has a reader; what stays reported is content drawn as a placeholder or missing the element that identifies it. 1.7.4 is not released yet, so its notes entry now includes custom objects and the version stays 1.7.4. The import doc describes them.

🤖 Generated with Claude Code

A custom object is a widget from a plug-in, named by its kind. The web client registers
only examples and draws a gray box for anything else, so the export holds the box and the
kind. It becomes a rectangle of its size in that gray, with the kind as its text. Its size
is the first one given in pixels, because the widget itself fills its box.

Read from the web client's custom widget component, because no sample holds one. It joins
the 1.7.4 notes, which is not released yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@marcosqlbi
marcosqlbi merged commit 5c5399d into main Sep 30, 2026
5 checks passed
@marcosqlbi
marcosqlbi deleted the feature/ms-whiteboard-custom-objects branch September 30, 2026 17:28
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