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

Aperta
#7 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
devtools

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
TypeScript
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bintangyoga/figdiff

Tutte le issue di bintangyoga/figdiff

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.