feat(types,emitter): carry source root attributes — LayoutFamily.root_attrs (finding #7, 36.4→100) - #138
Merged
Merged
Conversation
…bulgu #7) Tema CSS'i <body class="wp-singular single …"> ve <html class="js wf-…"> sınıflarına bağlı; nitelikler düşünce içerik doğru olsa bile düzen tamamen kayboluyor (ölçülen: 36.4 → 100). types: RootAttrs + LayoutFamily.root_attrs. emitter: chrome verisinde html_attrs/body_attrs, üretilen sayfada spread ile basılır; nitelik değerlerinde @@mark@@ doldurma (fillAttrs) — postid-123 gibi sayfa-özel sınıflar için. Kaynaktaki açık lang proje varsayılanını ezer. Koşulsuz taşınır: aynı test ikinci sitede 36 → 36 verdi (o tema gövde sınıflarına bağlı değil), yani belirti siteye göre değişiyor ve "gerekirse taşı" diye güvenilir bir heuristik yok.
✅ Deploy Preview for contentrain-ai ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ne
Bulgu #7: İçeriği kusursuz ama düzeni bozuk sayfa — klonda
<body class="wp-singular post-template-default single … wp-theme-…">ve<html class="js wf-…">varken üretilen sayfada ikisi de boştu; tema CSS'i tam bu sınıflara bağlı. Elle eklenince 36.4 → 100.RootAttrs+LayoutFamily.root_attrs?: { html?, body? }html_attrs/body_attrs) ve üretilen sayfaya<html {...htmlAttrs}>/<body {...bodyAttrs}>olarak yazılır. Değerlerde@@mark@@doldurma çalışır (postid-@@wp_id@@gibi sayfa-özel sınıflar içinfillAttrs). Kaynakta açıklangvarsa proje varsayılanını ezer (spread sırası).Neden koşulsuz taşınıyor: aynı test bir sitede 36.4 → 100, başka bir sitede 36 → 36 (o tema gövde sınıflarına bağlı değil). Belirti siteye göre değiştiği için "gerekirse taşı" diye bir heuristik yok — her zaman taşınır. Bu gerekçe sözleşmenin doc-comment'ine de yazıldı.
Migrate induction sözleşmesi: klonun
<html>/<body>nitelikleriniLayoutFamily.root_attrs'a koy; sayfa-özel parçaları (ör.postid-123) mark'a çevirebilirsin.Test
lint 0/0 · tsc · 8/8 paket build+test; 3 yeni test (nitelik taşınması + mark doldurma, root_attrs'sız ailede boş harita, lang'in spread içindeki önceliği).
🤖 Generated with Claude Code
https://claude.ai/code/session_01NjgQYCFqwZjJt97yioyjnS