A session you joined or published now says where your changes stand on
their way to the server, and calls them saved only once the server has
confirmed them: Preparing, Uploading (bytes sent of the total), Waiting
for the server to confirm, All changes saved to the server (with when),
changes not yet saved while reconnecting, and when the server last had
everything after a failure.
The Share popover shows the line with a progress bar; a tab whose changes
have been on their way for a second shows a thin bar and the line on
hover. collab.peers reports upload and confirmedAt. The desktop
connection counts what it writes, a large change in 256 KiB pieces, and
reports it to the session's inbox; the browser can't measure its socket
and shows waiting.
* M6: Open and import Adobe XD (.xd) files, best effort (#2077)
The archive's artboards, pasteboard layers, groups, rectangles, circles,
lines and paths, solid, linear-gradient and image fills, strokes, opacity,
drop shadows and blurs, clip paths and text with styled ranges are mapped
onto the REST importer, as the .sketch import is. Point text is measured
so its first baseline and aligned edge stay where the file put them.
File > Open, Import, drop, CLI and MCP take .xd files, in the browser too.
* M6: XD import: clip paths take only shapes, one style range keeps its decoration, groups refit after point text (#2077)
From review: a clip path holding a group clipped by itself recursed without end;
a single style range covering a whole text dropped its underline or strikethrough;
groups kept the bounds of the guessed text size after the point text was measured.
* M11: a plugin can read the web hosts its manifest names (#1883)
A plugin can read fresh data (catalogues, tokens, translations) from exact hosts it names in permissions.network (plugin API 9: allowedDomains, methods GET/HEAD). The new http_request host import asks FigCraft for an https:// address on one of those hosts; FigCraft makes the request through the session's network link with no credentials, follows no redirects (the plugin gets status and location), allows 8 requests per run or callback and fails a response over 4 MB. Any other scheme, host, port, user info or method is refused before anything is sent, and a session confined to automation roots makes no requests.
Importing such a plugin needs the user's approval: plugin.import takes confirm: true for it and check: true to report what a manifest asks for without installing it; the app's import shows the hosts with Import and Cancel. Manage plugins lists the hosts. A plugin directory entry can't show the hosts yet, so directories neither publish nor install such plugins. The SDK gains http_request.
* Plugin web requests reach only public addresses, and an approved import must match what was shown
Review fixes for #1883. A plugin's request uses no proxy and a resolver that keeps only public addresses, so a host that resolves to this computer or the local network (an approved name rebinding to one included) is refused when it connects; IP literals are refused in permissions.network. The app's Import passes the network permission it showed as confirm, and plugin.import refuses a manifest that now asks for other hosts or methods (confirm: true still works for scripts).
Preferences > Redraw layers while dragging (`pref.liveDrag {on?}`, on by
default, Shift+Cmd/Ctrl+D). Turned off, a move renders the document the drag
started from, so the layers stay where they were and only their selection
outline follows the pointer; nothing is rendered until the release draws them
at their new place. The shortcut says at the bottom whether it is on or off,
and the main menu's Preferences shows a check mark.
* M7: variables export as Uno Platform theme resources (#2170)
* M7: Uno variables export keeps a one-mode alias's Dark value and warns about what it leaves out or cuts
* M7: an Uno variables export value resolved in one theme only goes in that theme's dictionary
* docs: how the Uno variables export picks a collection's Light and Dark modes
With team_publish = true beside team_files = "edit" (refused with
open_publish), everyone who reaches the server publishes from the app or the
browser with its plain address. The file is on the team list (Home > Online)
for everyone at once, until it is removed, so nobody keeps share links or
tokens to find it again. Such files never expire; whoever published one gets
its owner token, so their app renames, removes or shares it from Home >
Online as on a public server.
The server reports open: true with no idle time, so the existing Publish and
Share flows work unchanged and apps of any version publish there; no message
changed. meta.json marks the file `team`, which counts as shared for the
list, its team link and admission, and which the idle sweep skips.
figcraft-server healthcheck asks the server on the listen address for /healthz (exit 0 on 200, 1 otherwise), and the distroless image declares it as its HEALTHCHECK. packaging/server/docker-compose.yml builds the image and takes its FIGCRAFT_SERVER_* settings from a .env file beside it, with trusted_proxy defaulting to Docker's address range and the port on loopback. docs/server.md covers the subcommand, Compose, and running behind a platform proxy that ends TLS. Part of #2044.
macOS claims both extensions in a Viewer/Alternate document type, Windows
adds an OpenWithProgids entry and SupportedTypes without taking the
default, and Linux defines MIME types for both (with a content match so
.fig design files are told apart from xfig drawings). None of it names
another product's type identifier.
* M5: Export prototype as HTML: the page's prototype as one self-contained file that opens offline (#2886)
File ▸ Export prototype as HTML… (`file.exportPrototypeHtml {path?, page?}`)
writes every visible top-level frame of the page as an embedded image and each
layer's click interaction as a link: navigate to, back and open link (http,
https, mailto). It opens from a local or network folder in any browser with no
network, account or other software. What it can't play (other triggers,
overlays, scroll to, change to, variables, transitions) is listed in the
result's `warnings` and counted in the toast.
* fix(engine): prototype HTML export skips zero-size frames and keeps Back inside the page
* fix(engine): prototype HTML Back only returns to screens the prototype showed
* fix(engine): prototype HTML reports a click's links after its first (#2886)
* fix(engine): prototype HTML export skips frames in hidden sections and reports delays, extra links and section memory
* fix(engine): prototype HTML reports scrolling frames (#2886)
* M6: Link instances to library keeps edits made after the import, and the import keeps no instance swap ids (#2442 follow-up)
library.relink read the text and boolean values kept at import even when the
frame's text or visibility had been changed since, so the edit was lost; it
now reads each value from the frame's layer in the place of the main's bound
layer, falling back to the kept value. The import no longer keeps instance
swap values: they named a layer by its id in the importing file, which a copy
of the frame into another file carried along unchanged. Docs: what
`unlinked` counts when one library is named.
* M6: Link instances to library keeps an edit when the import kept no property values (#2442 follow-up)
props_for returned nothing when the frame had no kept values, so a text or
visibility edit made after the import was lost. It now also reads each text
and boolean property the import kept no value of from the frame's layer, and
keeps it when it is no longer the main's default.
* M6: Link instances to library keeps an edit to a layer renamed after the import (#2442 follow-up)
props_for found the frame's layer for a property by its name path, so a layer
renamed after the import lost a later text or visibility edit. It now reads the
layer the import left bound to the property first, whatever it is named, and
falls back to the name path.
* M6: Link instances to library reads a property's layer only among the main's own layers (#2442 follow-up)
The name-path fallback in props_for also matched layers inside the main's
nested instances, which bind their own component's properties; it now uses
the same ownership walk as the bound-layer lookup. A test covers a boolean
property found by the name path (a label hidden after the import).
FigCraft draws its own title bar on GNOME, but it dropped the window-button
layout the shared window crate reads and always drew Windows' square
minimize, maximize and close at the right. The bar now keeps that layout
(UiState::captions): the buttons sit at the left or right end as the
desktop's button-layout says (Close alone by default), as round buttons on
a faint disc, placed by craft-ui's CaptionPlan. Windows keeps its buttons;
KDE and other desktops that draw their own frame are unchanged.
* M6: .fig export writes superscript and subscript per text style (#2338)
* M6: an instance's text back on the line clears its main's superscript in .fig (#2338)
* M6: REST-imported instances of library components link to an enabled library by component key (#2442)
REST import keeps each main's library key (`fig.key`, from `components` /
`componentSets`), which a published library keeps. A frame left for an
instance of a component the file doesn't hold keeps that component's key and
the instance's property values. `library.relink` (Link instances to library)
copies each keyed component an enabled library has into the file and makes the
frames its instances; overrides are found by comparing values, as on open.
* M6: a Link instances to library run that links nothing is no undo step (#2442)
* M6: Link instances to library links only components the library offers, not ones it holds as dependencies (#2442)
* M6: the kept-key import note is a literal warn, so the English catalog check finds it (#2442)
* M12: boards: five ink widths and up to three saved pens in the ink bar (#2641, part 4)
The ink bar offers five widths beside the weight field (1 to 16 pt; the
Highlighter's 8 to 48), each tool's first weight among them. The
Marker's and Highlighter's bar starts with up to three saved pens, kept
with the preferences: "+" saves the ink in hand, a click on a pen takes
up its tool, colour and width, and its context menu saves the ink in
hand over it or removes it.
tool.pens {save?, tool?, use?, remove?} does the same headless and
lists them; tool.ink also returns the five widths.
* Pens: refuse saving into an empty slot past the next free one (#2641)
save: 3 with only slot 1 in use appended the pen in slot 2, so use: 3
then failed. An explicit slot is now one in use (saved over) or the
next free one.
* Pens: no two slots keep the same ink; the ink bar wraps onto a second row on a narrow canvas (#2641)
* Ink bar: the pens, colours and widths each take a row of their own when the canvas is too narrow for them side by side (#2641)
The device-scale detail over a tall frame's capped texture rendered on the
UI thread (up to 16.8 MP) once the view was still, after every edit and at
each animated GIF frame. It now renders on a thread of its own (inline in
the browser); the last detail at that scale stands in until it arrives.
Adds the animated GIF detail test.
A plugin can enable the .figcraft libraries it ships in its assets folder: permissions.libraries (plugin API 8, write access) names them, and library.add from the plugin enables only those, read from its own folder (links refused; a directory-installed plugin's read past automation roots as its module is), returning no path and a fixed message on failure. Manage plugins lists them, the install confirmation mentions them for API 8 write plugins, and a bundle must ship each one it names. Tests: libraries_tests, plugin_libraries_tests. Fixes#2752.
* M12: a connector bent by hand keeps its bend when its line style changes (#2642)
board.setStyle dropped a path shaped by hand whenever the style changed.
It now carries the bend over (figcraft_doc::restyled): a curve bends
through the point halfway along the elbow, an elbow runs through the
curve's middle by moving one run (or two) of its own route, and a
straight line keeps the path unused, so the bend comes back, where the
objects have moved since, when the style bends again.
* M12: say which elbows come back unchanged from a curve (#2642)
An automation path refusal says what a relative path was taken as (it is made absolute against the working folder of the process that runs the command: the attached app's when attached), for every refusal including those inside a root. docs/mcp.md: how relative paths resolve when attached, and that an attached agent's copies use FigCraft's own clipboard, never the system clipboard. Part of #2524 (points 2 and 6).
Port the saved-file refresh onto main's split modules: stamps in automation/file_access,
refresh beside file.open's reload in cmd/file/open, save conflict checks in cmd/file/save.
A refresh also keeps the tab's page views and fit-to-content state. Adds the file.refresh
label to the ar, bs, he, ta and zh-Hant catalogs.
CSS keep-all also holds Chinese and Japanese runs whole, which the layer keeps breaking, so the export writes it only when every ideograph run is a Korean word. Decomposed jamo join the run of the Hanja beside them. A layout test moves a whole Hanja-Hangul word to a fresh line.
- Delta snapshots: an instance whose motion differs from its source is sent as
a full record, so catch-up no longer replaces it with the source's motion.
- motion.timeline refuses an id that is not a page.
- request_render's new preview argument in the zoom preview test; the Motion
preview takes no drag sprite, since it already draws every layer.
- Node size budget raised by the 48 B of the inline motion field.
- Parity checklist regenerated (697 commands); architecture count updated.
Implements the Motion panel: the document model (clips, tracks, keyframes, easing, smart animate), 11 engine commands (motion.keyframe, keyframeMove, keyframeDelete, keyframeEase, clip, clipUpdate, clipDelete, track, replace, timeline, animation.transitionPoses), and the timeline, inspector and easing panel that drive them.
Review gate: Prototype keeps its own entry in the mode switcher and Animation is a fifth entry beside it; the preview is evaluated for the renderer only, so the session's document is never replaced and a canvas gesture writes the document; every inspector, easing and clip edit opens an interaction first (begin_interaction) and drops itself when the document refuses it. cargo fmt and clippy -D warnings pass, body_rows/apply are split, parameter docs are list-form, and ROADMAP/parity/architecture are updated (634 ids).
Review fixes: a page copies its timeline settings and takes them with it when deleted; reading timeline settings clamps them, so a collaborator's entry cannot hang the ruler; motion.keyframe rejects a value of the wrong shape before writing; a reparented smart-animate pair is rewritten into its new parent's space; the preview cache key carries the document uid; the mode setup lives in motion::set_open, shared by the toolbar and ui.set {motion}; stretching a zero-width layer span keeps the motion instead of panicking; the timeline header's tooltips go through tr().
The auto layout's extra settings (strokes in layout, canvas stacking, text
baselines) leave the section's inline rows for one popover, opened from a dots
button on the gap row and stacked in that order.
Inside an instance the button stays enabled and the popover opens: the text
baselines are the instance's own to set, as they were inline. Only the strokes
and stacking rows read disabled there, with the "comes from the main component"
hint. The test is owning_instance, the same one the section uses
(inside_instance is false for the instance itself, which left the rows live).
The button's rect is held live every frame, so a press on it still toggles the
popover shut after the panel scrolls (#730), while the opening anchor is taken
once and the popover keeps its place. The anchor had never been set, so the
popover opened at a fixed height instead of on its button.
Tests: the dots button opens and toggles the popover, an instance keeps its
button and opens it, and after the panel scrolls the button still toggles it at
its new place while clicks inside land.