Commit Graph
10 Commits
Author SHA1 Message Date
Hermes Agent f3575e30ee chore: drop size from plugin window title (Figma title bar is not customizable; keep name only) 2026-09-09 13:01:04 +02:00
Hermes Agent 84ec81bf03 fix: drag works again; size label updates only on pointerup
- ui.tsx: useWindowResize callback emits RESIZE_WINDOW with hook-computed
  size (not window.innerWidth) so figma.ui.resize grows correctly during drag
- ui.tsx: add window 'pointerup' listener to refresh size readout AFTER
  drag ends (Figma already applied new size by then)
2026-09-09 12:58:26 +02:00
Hermes Agent 4aa82fbefa fix: window size readout now updates during drag
- ui.tsx: useWindowResize callback now builds a fresh {width,height} from
  window.innerWidth/innerHeight instead of the hook's mutated ref object,
  so Preact re-renders and the size label updates live
- toggleWindowSize: spread MIN/MAX constants to new objects (same ref bug)
2026-09-09 12:56:07 +02:00
Hermes Agent 26d391f90a fix: drag works from first attempt + size in window header
- ui.tsx: pass min/max opts to useWindowResize (fixes first-drag bug)
- ui.tsx: move live size to top toolbar (left of expand button)
- main.ts: set figma window title with startup size via showUI({title})
2026-09-09 12:50:35 +02:00
Hermes Agent 3bff4241d6 fix: add visible drag-handle icon (3x3 dots) in bottom-right corner
- ui.tsx: decorative SVG drag indicator (pointerEvents:none) like old plugin
- uses --figma-color-icon-secondary + opacity 0.4, fixed bottom/right 3px
- Fragment wrapper; real drag still handled by useWindowResize handle
2026-09-09 12:43:39 +02:00
Hermes 6c7be98a82 feat: relaunch button in right panel + drag-resize window
- package.json: add relaunchButtons (runAI) for right-panel shortcut
- main.ts: setRelaunchData + RESIZE_WINDOW handler (figma.ui.resize)
- ui.tsx: useWindowResize native drag handle + expand/collapse toggle
- .gitignore: exclude _reference/ (temp old-plugin copy)
- IDEA.md: commit+push to Gitea is mandatory workflow
2026-09-09 12:38:13 +02:00
Hermes 4507162f42 docs: fix sync flow (include build/), add KNOWLEDGE.md self-edit rule 2026-09-09 11:59:44 +02:00
Hermes Agent 903025965b docs: add KNOWLEDGE.md (build gotchas + workflow) 2026-09-09 11:35:43 +02:00
Hermes Agent def909f0a2 docs: add IDEA.md with UI framework refs, Figma plugin docs, examples 2026-09-09 11:29:57 +02:00
Hermes Agent 567ce34285 bootstrap: Hello World Figma plugin skeleton 2026-09-09 11:27:11 +02:00