Skip to content

Frappe Draw: unified-canvas polish (minimap coverage + library type filter)#17

Merged
vibhavkatre merged 1 commit into
mainfrom
feat/unified-polish
Jul 19, 2026
Merged

Frappe Draw: unified-canvas polish (minimap coverage + library type filter)#17
vibhavkatre merged 1 commit into
mainfrom
feat/unified-polish

Conversation

@vibhavkatre

Copy link
Copy Markdown
Collaborator

Changes

  • Minimap: on a unified doc the navigator now overviews ALL content — block shapes + whiteboard objects + the mind-map/flowchart frames (offset by origin) — not just block shapes.
  • Library: add unified (label "Drawing") to DIAGRAM_TYPES, so unified diagrams are filterable in the home type filter and their tiles read "Drawing" (not the "Block" fallback).

Testing

Build ✅ · 101 JS tests ✅ · live app ✅ — a unified doc with block + pen stroke + mind-map + flowchart shows all of them in the minimap (6 glyphs incl. viewport).

🤖 Generated with Claude Code

…filter

- Minimap: on a unified doc, the navigator now overviews ALL content — block
  shapes + whiteboard objects + the mind-map / flowchart frames (offset by their
  origin) — instead of only block shapes. (whiteboardObjectBoxes + per-frame
  layout, added as an isUnifiedDocument branch in items().)
- Library: add 'unified' (label "Drawing", the current default type) to
  DIAGRAM_TYPES, so unified diagrams are filterable in the home type filter and
  their tiles read "Drawing" instead of falling back to "Block".

Verified: build + 101 JS tests + live app — a unified doc with a block shape,
a pen stroke, a mind-map frame and a flowchart frame shows all of them in the
minimap (6 glyphs incl. viewport rect).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Jul 18, 2026

Copy link
Copy Markdown

Confidence Score: 4/5

Safe to merge; the only gap is that connector lines are missing from the unified minimap, which is a cosmetic omission rather than a functional breakage.

The two changed files are small and self-contained. The links computed is not extended for the unified path, so any mind-map branches or flowchart edges on a unified canvas will be invisible in the minimap — nodes appear disconnected. Everything else, including the type-filter addition, is correct.

frontend/src/components/canvas/Minimap.vue — the links computed (lines 148–175) needs a unified branch to match the new items branch.

Reviews (1): Last reviewed commit: "Frappe Draw: unified-canvas polish — min..." | Re-trigger Greptile

@vibhavkatre
vibhavkatre merged commit e0d3640 into main Jul 19, 2026
3 checks passed
@vibhavkatre
vibhavkatre deleted the feat/unified-polish branch July 19, 2026 00:58
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.

2 participants