Match nodes when ids change (fallback by name and position)

Đang mở
#7 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
devtools

Hướng nghiên cứu

Start by reading docs/compatibility.md to check if FigCraft ids stay stable across saves, and report findings here. The matching logic (file not named) must fall back to type, name and tree position when ids mismatch, noting fallback in report. Add tests with a renumbered copy of same file; done when tests pass and report indicates fallback.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement help wanted

figdiff matches nodes by id. If FigCraft re-assigns ids in some situations (for example after copy and paste or a file migration), every node would show as removed and added.

Done when

  • When ids do not line up, nodes are matched by type, name and position in the tree, and the report says it fell back
  • Tests cover a renumbered copy of the same file

First check, with real FigCraft files, whether ids are stable across saves (see docs/compatibility.md) and share what you find here.


Generated by Claude Code

Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bintangyoga/figdiff

Tất cả issue của bintangyoga/figdiff

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.