Skip to content

refactor(erd): extract notes from ErdView (part of #1362) - #1394

Merged
ZhuchkaTriplesix merged 2 commits into
devfrom
issue/1362-erd-note-and-canvas
Oct 10, 2026
Merged

ZhuchkaTriplesix merged 2 commits into
devfrom
issue/1362-erd-note-and-canvas

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Part of #1362 (second step; the issue stays open until erd_view.dart is a thin coordinator).

What this PR does

  • ErdNoteCard (lib/features/erd/widgets/erd_note_card.dart): the sticky note widget, its context menu and resize handle. Changes go out through callbacks.
  • ErdNoteOps (lib/core/erd/erd_note_ops.dart): pure id, placement, drag, resize and nearest-table rules.
  • test/core/erd/erd_note_ops_test.dart: unit tests without a widget tester.
  • erd_view.dart keeps the thin wrappers and the state; no behaviour change intended (1950 -> ~1780 lines).

Still on #1362

Canvas gestures / zoom (ErdCanvas), selection and search state (ErdViewController), and the PNG/SVG/PDF export operations.

Not run locally; CI is the check.

- ErdNoteCard: the sticky note widget with its menu and resize handle
- ErdNoteOps: pure id, placement, drag, resize and nearest-table rules,
  covered by unit tests without a widget tester
@github-actions github-actions Bot added frontend Theme parser epic label: frontend ui User interface components and widgets P2 Medium priority / Parity & Refactoring labels Oct 10, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit e4ed816 into dev Oct 10, 2026
15 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1362-erd-note-and-canvas branch October 11, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Theme parser epic label: frontend P2 Medium priority / Parity & Refactoring ui User interface components and widgets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant