Files
feuerwerk/todo-notes/refactor-types.md
T
rootandClaude Fable 5.1 8a7185948d Make texture and colour full kinds and drop the load-time migrations
- `Texture` and `Color` can be picked as a variable kind, a struct field
  kind and a declared port kind; a new `Texture` node hands a picture id
  into the graph. Declared, a texture is its bare id – the `$texture` tag
  stays a list-only thing.
- The `String` node is labelled "Text" like its kind; the type id stays.
- Whole-number inputs (`Item at`, `Set item`, `Sub list`, `Fill`,
  `Repeat`, `Substring`, `To text`) show no decimals (`int()` in shared.ts).
- All server projects are reseeded, so `legacyNodes.ts`,
  `migrateDeclaredLists` and the `ownerId` fallback go, with their tests.
- Note `reseed-because-of-list` moved to done/; new note `refactor-types`.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-12 14:06:14 +02:00

699 B

Eine Refactoring-Runde speziell für Typen:

Typen (ob jetzt "String" oder "Color" oder "Texture") werden vertreut eingesetzt: Geh alles durch, und refactore so, dass

  • wenn ein neuer Typ in Zukunft irgendwann hinzugefügt wird
  • oder ein Typ geändert wird
  • oder wieder wegkommt dass es nicht ewig viele Stellen beachtet werden müssen.

Reduziere dass auf ein Minimum, wir brauchen das so "modular" wie möglich.

Falls es schon so passt wie es ist, dann braucht man natürlich auch nichts machen, aber ich will nur auf nummer sicher gehen.

Falls dir bei der Arbeit noch andere Dinge auffallen die man besser/konstruktiver/schöner bauen kann, dann kannst du das natürlich gleich mitnehmen.