Commit graph

1706 commits

Author SHA1 Message Date
Kayshen-X a9a7d33c2d fix(web): measure canvas text with draw style 2026-06-19 08:13:40 +08:00
Kayshen-X 242031c9b2 fix(web): drain design md panel actions 2026-06-19 07:52:03 +08:00
Kayshen-X c92eef5933 fix(web): expand browser font fallback stack 2026-06-19 07:30:34 +08:00
Kayshen-X 3d42d50429 fix(web): guard canvaskit paint style calls 2026-06-19 07:15:42 +08:00
Kayshen-X 06dce0798f fix(web): avoid canvaskit paint for browser text fallback 2026-06-19 06:50:39 +08:00
Kayshen-X f44d1b3fc6 fix(web): forward legacy ai stream model 2026-06-19 06:31:34 +08:00
Kayshen-X b9f0856b79 fix(web): clear hover under dropdown overlays 2026-06-19 06:21:10 +08:00
Kayshen-X b4c7e08048 fix(web): forward chat attachments to daemon 2026-06-19 06:05:28 +08:00
Kayshen-X 284468c812 fix(web): forward chat history to daemon 2026-06-19 05:51:31 +08:00
Kayshen-X 72ef2e2ab9 fix(web): serve mcp debug screenshots 2026-06-19 05:24:09 +08:00
Kayshen-X 798b3c1296 ci(web): add rust web bundle packaging 2026-06-19 05:00:25 +08:00
Kayshen-X a8adb6e443 fix(web): align blank press input blur 2026-06-19 04:59:59 +08:00
Kayshen-X 8a61cd59e0 fix(web): align layer panel history 2026-06-19 04:59:37 +08:00
Kayshen-X 63ccaf8865 fix(web): capture browser ime composition 2026-06-19 04:59:06 +08:00
Kayshen-X f66d94a147 fix(web): align git panel escape handling 2026-06-19 04:32:06 +08:00
Kayshen-X 69879ee842 fix(web): route git panel keyboard inputs 2026-06-19 04:21:35 +08:00
Kayshen-X 141846669a refactor(editor): use shared rect hit testing 2026-06-19 03:55:21 +08:00
Kayshen-X 5b529c2f1b fix(ci): guard release workflow on branch pushes 2026-06-19 03:09:14 +08:00
Kayshen-X 9a4dd34bf4 fix(ci): address rust check failures 2026-06-19 03:03:33 +08:00
Kayshen-X bd4c8d5935 fix(web): use browser fonts in canvaskit shell 2026-06-19 02:39:34 +08:00
Kayshen-X eb05089708 fix(web): reset sync document before web mount 2026-06-19 02:01:46 +08:00
Kayshen-X a9ba127ec1 fix(web): sync canvaskit size before first paint 2026-06-19 01:30:43 +08:00
Kayshen-X a1efac6712 fix(canvas): commit web node drag drop policy 2026-06-19 01:16:28 +08:00
Kayshen-X 8fc313046f fix(web): reset design md scroll on remove 2026-06-19 00:58:27 +08:00
Kayshen-X 5c5c6ec39d ci(web): run canvaskit host tests 2026-06-19 00:48:04 +08:00
Kayshen-X f996b54dd4 refactor(editor): keep layer panel scroll state typed 2026-06-19 00:34:25 +08:00
Kayshen-X 0f4364f868 refactor(editor): share transcript caret blink period 2026-06-18 23:57:04 +08:00
Kayshen-X 0ffbf4f77e refactor(editor): restore widget boundary invariants 2026-06-18 23:42:20 +08:00
Kayshen-X c6ceca8999 feat(editor): align rust web and desktop parity 2026-06-18 23:24:33 +08:00
Kayshen-X 0104c8bd61 feat(editor): a11y + single-instance + layer-panel Rust↔TS parity
Close the non-web-productionization gaps from the 2026-06-18 recheck:

- a11y (#67/#57): assemble each widget's access_node() into an
  accesskit::TreeUpdate (op-editor-ui/accessibility.rs); publish on
  desktop via accesskit_macos/_windows/_unix SubclassingAdapter off the
  raw window handle (op-host-desktop/a11y.rs, NOT accesskit_winit — the
  casement winit fork), and on web via a hidden ARIA DOM mirror
  (op-host-web/a11y_dom.rs); native/web region enumeration + action
  routing in op-host-{native,web}.
- single-instance (#51): fixed-loopback-port guard + second-launch file
  forwarding to the running window (op-host-desktop/single_instance.rs).
- layer panel: drop-into-container inserts at index 0 (#12a); container
  predicate widened to frame/group/rectangle/ref (#12b); Escape closes
  the context menu on both hosts (#14).
- distribution: Homebrew cask fix + op formula + install-op.sh, README
  CLI install, CI codesign/notarize/signtool scaffolding gated on secrets.

Codex-reviewed (1 BLOCKER + 3 CONCERNs resolved). main.rs, app_handler.rs,
canvaskit.rs and Cargo.lock are staged whole and carry some unrelated
in-progress WIP they're interleaved with.
2026-06-18 22:18:07 +08:00
Kayshen-X 973af2e24b test(renderer): cover emoji typeface resolution and colored-pixel paint
Assert typeface_for_char resolves an emoji-capable face for an emoji
codepoint, and that draw_text paints saturated (colored) pixels for it.
2026-06-18 09:34:41 +08:00
Kayshen-X fed1d26bb4 test(editor): align shape-picker tests with padded row geometry
panel_height now includes PANEL_PAD_Y*2 and the pressed-row wash is
inset by ROW_HL_INSET_Y within a taller (36px) row; update both stale
assertions to mirror the paint geometry via the same constants.
2026-06-18 09:34:40 +08:00
Kayshen-X a0a1514772 chore(deps): bump vendor/agent and vendor/jian submodule pointers
- agent: rustfmt test modules (c0804d9)
- jian: center popup row text baseline within clip + test (9f7e8c9)
2026-06-18 09:34:39 +08:00
Kayshen-X f5629272d1 fix(ui): tighten shape-picker spacing and variables-panel hover washes
- shape_picker: add vertical panel padding (PANEL_PAD_Y) and bump row
  height to 36 with its own padding-aware hit-test, decoupled from
  Select::hit (density row height has no padding concept).
- variables_panel: keep each hover/press wash equal to its hit rect so
  the wash tracks the cursor (paint=hit). Center the add-variant "+"
  icon and add-variable content in their washes; tighten the active
  axis-tab and preset washes to hug their content instead of fixed pills.
2026-06-18 09:34:38 +08:00
Kayshen-X 227da7fa11 refactor(renderer): consolidate web shell on CanvasKit, retire skia path
Retire the from-scratch wasm32 skia raster web backend and the vendored
skia-safe fork now that CanvasKit is the sole web renderer.

- remove gl-webgl-shim + the `webgl` feature + backend/webgl.rs
- absorb chat streaming, live-sync, codegen, icon search, Figma/file IO,
  and system fonts into the `canvaskit` build via a backend-agnostic
  `RepaintContext` trait; wire them into `mount_ck` (chat send, image
  paste routing, window resize)
- delete the skia raster modules (backend/, a11y, shell_drop/resize,
  ime_target, boolean_ops, caret_pump, repaint_scheduler) + the skia
  `Inner` mount; op-host-web is now `web` (stub) + `canvaskit` only
- drop [patch.crates-io]; delete vendor/skia-safe-op + crates/wasm-libc-shim
  so skia-safe reverts to upstream crates.io 0.97.x (native unchanged,
  byte-identical; upstream has no wasm32-unknown-unknown target)
- switch the bundle gate (check-wasm-bundle.sh) to --features canvaskit

Also float new shapes above the frame (z-order), inset the shape-picker
selected-row highlight, and align the web file-menu hover without the
traffic-light inset.

Builds clean: canvaskit + web-stub (wasm32) + native desktop; bundle gate
passes (0 env.*, 4.5 MiB gzip).
2026-06-18 09:34:37 +08:00
Fini 7ac0138cd1 test(loader): regression for jian fixed-size flex layout
Bump the jian submodule from 58742b4 to ba914b6 (branch fix/fixed-size-flex-shrink), which stops taffy from shrinking fixed-size nodes in flex rows (square images / icon buttons / round pins kept their aspect; a fill column shrinks below min-content so a fixed sibling stays in the card). Add fixed_size_layout.rs covering the three cases the fix targets: a both-Number square keeps its size, a fill+Number tile still flex-shares its row, and a fixed sibling stays inside a card when the fill column has wide content.
2026-06-17 01:06:52 +08:00
Fini 8cdef9516f fix(editor): file menu hover feedback and dismiss before rfd dialog
Two issues with the file-menu overlay: (1) row hover used muted (near-invisible card-on-card in light mode) so rows looked un-hovered on the dense left side; use a 14% muted_foreground wash that reads across the whole row on either theme. (2) the cursor-move drain short-circuited over the sidebar, swallowing hover for the overlay's left half that overlaps the layer panel; let cursor moves reach apply_cursor_move when a dropdown is open. Also paint one synchronous frame before the blocking rfd dialog so the menu dismisses instead of hanging behind it.
2026-06-17 00:15:24 +08:00
Fini 6dabb73f22 fix(editor): size TopBar agent chip hit area to painted width
The chip's clickable region used a 12px/char estimate plus 16px slop, so empty space left of a narrow status label (in the file-name gap) still opened agent settings. The desktop host now measures the chip text via its shared measure-only backend and feeds the width back through TopBar::chip_text_w; hit_test uses it and drops the slop so the target matches the painted chip. The wasm build falls back to a ~7px/char estimate. Regression test added.
2026-06-17 00:14:44 +08:00
Fini b18f2ec543 fix(loader): tolerate legacy .op docs missing image src or string fill
Older TS/LLM exports omit image src and store fill as a bare color string, which the canonical jian loader rejects (missing field / invalid type). load_canonical now runs normalize_legacy_doc first: an iterative walk that injects an empty src into image nodes and wraps a string fill into a solid-fill array before parsing. Covered by two unit tests.
2026-06-17 00:13:01 +08:00
Fini 5b37df89fb fix(canvas): keep cross-crate pub paint_node entry for raster export
The perf refactor that added overlay args demoted paint_node_with_options to pub(crate), which broke op-host-desktop's scene_painter bridge. Re-expose a thin pub paint_node (base scene only, no reveal/hover/selection/pen overlays) and route the raster export through it, keeping the cross-crate surface minimal.
2026-06-17 00:12:26 +08:00
Fini fa1d004ad3 feat(agent): adopt glm-5.2 for GLM coding preset
Point the built-in GlmCoding preset at glm-5.2 (was glm-4.7) and add a glm-5.2 route to the ab-v9 matrix via Zhipu's official coding plan (GLM_BASE + GLM_KEY env). Keys stay env-only.
2026-06-17 00:12:00 +08:00
Kayshen-X 19ffdd85a9 feat(ai): polish rust design agent workflow 2026-06-15 21:19:18 +08:00
Kayshen-X 66375245b3 perf(canvas): reuse paint traversal for path overlays 2026-06-15 08:32:11 +08:00
Kayshen-X acf9bfbbde perf(canvas): reuse scene walk for hover outline 2026-06-15 08:08:35 +08:00
Kayshen-X 405fd46bb6 perf(canvas): smooth first reveal snapshot bursts 2026-06-15 08:08:25 +08:00
Kayshen-X 12ca1334d8 perf(canvas): match agent frame indicators linearly 2026-06-15 07:25:11 +08:00
Kayshen-X e4a0ea5a69 perf(canvas): prune reveal overlay traversal 2026-06-15 07:09:28 +08:00
Kayshen-X 54295ce840 perf(canvas): smooth reveal stream pacing 2026-06-15 06:57:43 +08:00
Kayshen-X 8bbe0768f3 perf(canvas): resolve multi-selection overlays linearly 2026-06-15 06:36:35 +08:00
Kayshen-X 9b74ba7c1d perf(canvas): smooth streamed reveal pacing 2026-06-15 06:20:54 +08:00