2619 Commits

Author SHA1 Message Date
BFlat c2d599bc76 Merge pull request #2949 from storytold/feat/338-2945-show-upload-progress-and-se
M9: show upload progress and server-confirmed sync status (#2945)
2026-12-03 02:51:40 +07:00
BFlat 83100f906c Merge pull request #2907 from storytold/cp/226-1680-feature-request-figcraft-co
M4, #1680: notched (inside square) corners, and .sketch corner styles stay live
2026-12-03 01:51:05 +07:00
bflatastic a9db939688 M9: show upload progress and server-confirmed sync status (#2945)
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.
2026-12-03 01:02:17 +07:00
BFlat 6975590011 docs: install with brew install --cask figcraft (#304) (#2916) 2026-12-03 00:19:49 +07:00
bflatastic 449fa747b3 M4, #1680: notched (inside square) corners, and .sketch corner styles stay live 2026-12-02 15:32:57 +07:00
BFlat 5975fa0ded M5: the presenter's detail margin grows it to at most half the whole-frame texture's pixels (#2879) (#2902) 2026-12-02 15:32:20 +07:00
BFlat c7546e9e0e M6: Open and import Adobe XD (.xd) files, best effort (#2077) (#2912)
* 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.
2026-12-02 10:16:44 +07:00
BFlat 61947923d4 M11: a plugin can read the web hosts its manifest names (#1883) (#2911)
* 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).
2026-12-02 09:59:01 +07:00
BFlat b6f3b70c78 Merge pull request #2900 from storytold/cp/pr-2884-149
M7: Uno variables export follow-up: P3 colours as sRGB, stable keys, export warnings shown (#2170)
2026-12-02 09:52:31 +07:00
BFlat 61b7590a79 M8: Redraw layers while dragging can be turned off, so only the outline moves (#1569) (#2913)
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.
2026-12-02 09:21:10 +07:00
bflatastic 95ee02cc3e docs: components parity row for the Uno variables export follow-up 2026-12-02 09:17:34 +07:00
BFlat 077ba7083f M7: variables export as Uno Platform theme resources (#2170) (#2884)
* 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
2026-12-02 09:04:02 +07:00
BFlat 28ddd45a20 M9: figcraft-server keeps a workspace for the team: publish without the key, straight to the team list (#2119, part) (#2906)
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.
2026-12-02 08:31:12 +07:00
BFlat 92e3622177 M9: figcraft-server checks its own health in a container, and runs with Docker Compose (#2044, part) (#2903)
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.
2026-12-02 08:27:23 +07:00
BFlat 2ed5266e7f M6: .fig and .jam files offer FigCraft under Open With (#1788) (#2905)
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.
2026-12-02 08:00:09 +07:00
BFlat fefa72a5a8 M5: Export prototype as HTML: the page's prototype as one self-contained file that opens offline (#2886) (#2897)
* 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)
2026-12-02 07:24:19 +07:00
BFlat 0ebd8c5e55 Merge pull request #2899 from storytold/cp/2870-copy-as-docs
M6: The MCP docs say Copy as commands write only the system clipboard (#2524)
2026-12-02 07:00:58 +07:00
BFlat 726365df1b Merge pull request #1736 from storytold/feat/board-table-cells
M12: board tables size rows by their borders and take cell colours
2026-12-02 06:56:12 +07:00
BFlat 784196a97f Merge pull request #1805 from lileeei/1233-korean-keep-all
Korean wraps word by word (wordBreak: keepAll)
2026-12-02 06:49:51 +07:00
BFlat 2ac3a12984 M6: Link instances to library keeps edits made after the import, and the import keeps no instance swap ids (#2442 follow-up) (#2885)
* 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).
2026-12-02 06:42:53 +07:00
bflatastic 156d38c8c5 Merge origin/main into #1805
Resolves ROADMAP and parity checklist conflicts.
2026-12-02 06:14:57 +07:00
bflatastic e083e95311 M6: The MCP docs say Copy as commands write only the system clipboard, so an attached agent reads CSS or exports instead (#2524) 2026-12-02 06:13:03 +07:00
bflatastic d563145fd2 Merge remote-tracking branch 'origin/main' into cp/pr-1736-61
# Conflicts:
#	docs/boards-parity.md
#	docs/gaps.md
2026-12-02 06:00:35 +07:00
BFlat 890e149acb M10: on GNOME the title bar's window buttons follow the desktop's layout and look (#2277) (#2883)
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.
2026-12-02 05:58:28 +07:00
BFlat 2f3cc9c741 Merge pull request #2880 from storytold/cp/142-2187-presenter-render-the-hidpi
M5: the presenter's sharp detail renders off the UI thread (#2187)
2026-12-02 04:10:10 +07:00
BFlat 1ca3643b2b Merge pull request #2881 from storytold/cp/143-2171-developer-mode-uno-componen
M6: Uno components, variants and code connect (#2171)
2026-12-02 04:09:37 +07:00
BFlat 585f9c083e M6: .fig export writes superscript and subscript per text style (#2338) (#2878)
* 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)
2026-12-02 03:52:54 +07:00
bflatastic 48de2a440f Merge remote-tracking branch 'origin/main' into cp/pr-2881-148
# Conflicts:
#	ROADMAP.md
2026-12-02 03:23:24 +07:00
bflatastic cbccd11214 M6: Uno instance code comments its call above the namespace; more C# name cases tested (#2171) 2026-12-02 03:14:51 +07:00
BFlat 0c5d774a9a Merge pull request #1392 from StrajnarFilip/codex/fix-shared-file-windows
M1: keep saved files in sync across windows (#1388)
2026-12-02 03:12:05 +07:00
bflatastic 609ff51a2b M6: Uno code connect refuses import paths and names that aren't C# names; VerticalAlignment is a reserved class name (#2171) 2026-12-02 03:11:33 +07:00
BFlat 89608f5b6a M6: REST-imported instances of library components link to an enabled library by component key (#2442) (#2876)
* 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)
2026-12-02 02:53:50 +07:00
BFlat 362c28028e M12: boards: five ink widths and up to three saved pens in the ink bar (#2641, part 4) (#2875)
* 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)
2026-12-02 02:34:48 +07:00
bflatastic 7e5876c874 M6: Uno components, variants and code connect (#2171) 2026-12-02 02:29:09 +07:00
bflatastic a974824609 M5: the presenter's sharp detail renders off the UI thread (#2187)
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.
2026-12-02 02:28:50 +07:00
bflatastic 2bfc1034da Merge main into #1392 2026-12-02 02:27:47 +07:00
bflatastic f3cd6edadd Merge remote-tracking branch 'origin/main' into cp/pr-1736-61
# Conflicts:
#	docs/gaps.md
2026-12-02 02:04:44 +07:00
BFlat 5a5b8c02ff M11: a plugin can enable the libraries it ships (#2752, part 2) (#2873)
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.
2026-12-02 01:48:30 +07:00
BFlat 6557fe2249 M12: a connector bent by hand keeps its bend when its line style changes (#2642) (#2874)
* 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)
2026-12-02 01:47:28 +07:00
BFlat 7029d06900 Merge pull request #2872 from storytold/cp/pr-803-80
M4: the auto layout's settings popover (#803)
2026-12-02 01:37:04 +07:00
bflatastic d0a7b8d48e Merge main into #1392 2026-12-02 01:33:20 +07:00
BFlat 069dcbf0c0 Merge pull request #2871 from storytold/cp/pr-1624-62
M4: keyframe animation - timeline, inspector and easing (#1624)
2026-12-02 01:24:31 +07:00
BFlat 386aada760 M6: Automation path refusals say what a relative path was taken as; docs: attached copies stay off the system clipboard (#2524) (#2870)
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).
2026-12-02 01:13:24 +07:00
bflatastic c4d09f1b68 Merge main into #1736
Main's column widths (#2176) replace this branch's column sizing; this branch keeps row-border sizing and cell colours on top of them.
2026-12-02 00:58:01 +07:00
bflatastic ff0082043c Merge main into #1392
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.
2026-12-02 00:45:32 +07:00
bflatastic 2a080c361e M4: keep-all CSS export only where it wraps the same; jamo join Korean words (#1233)
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.
2026-12-02 00:34:40 +07:00
bflatastic 47bdb06dd1 M4: keyframe animation on current main
- 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.
2026-12-01 23:30:29 +07:00
叶林橦 60ce9c8e76 feat(motion): keyframe animation - timeline, inspector and easing
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().
2026-12-01 23:30:27 +07:00
bflatastic ec040573aa M4: regenerate the parity checklist (#1233) 2026-12-01 23:14:40 +07:00
叶林橦 590a7e133f M4: the auto layout's settings popover
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.
2026-12-01 23:12:39 +07:00