Inserting a synced pattern from the iOS block inserter adds an unsynced copy
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 75/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- ios, javascript
Direzione di ricerca
Inizia da src/components/native-inserter/index.jsx ed esamina insertPattern, quindi confrontane il comportamento con la scheda Reusable blocks dell’inseritore nativo e con l’inseritore di WP Admin. Riproduci i passaggi su iOS con un pattern sincronizzato e verifica che il blocco inserito resti collegato alla sua origine; il problema è risolto quando le modifiche successive al pattern aggiornano il blocco inserito.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
Synced patterns stay linked to their source, so editing the pattern updates every post that uses it. When a synced pattern is inserted from the Patterns section of the native block inserter on iOS, the editor adds a plain copy of its blocks instead. Later changes to the pattern don't reach the post, and nothing tells the user the link was lost.
The Patterns sheet lists the site's own patterns under "Uncategorized", and doesn't show which ones are synced.
Expected: inserting a synced pattern adds a synced pattern block, as WP Admin's inserter does. The native inserter's "Reusable blocks" tab already does this.
Step-by-step reproduction instructions
- Create a synced pattern on the site.
- In the iOS editor, open the block inserter, then Patterns, then "Uncategorized".
- Tap the synced pattern.
- The inserted block is a regular block (e.g. Paragraph), not a Pattern block.
Screenshots, screen recording, code snippet
Additional AI-generated details
- The native inserter's
insertPattern(src/components/native-inserter/index.jsx) always insertsparse( pattern.content ). - Suggested fix: for a user pattern (
pattern.type === 'user') that isn't unsynced (syncStatus !== 'unsynced'), insertcreateBlock( 'core/block', { ref: pattern.id } )instead, as core's inserter does. Optionally, pass the sync status to the native sheet so it can mark synced patterns. - Android's native inserter has no Patterns section, so only iOS is affected.
- Related, unverified: the "Reusable blocks" tab (core's
reusableinserter category) also lists unsynced patterns, and inserts them as references. Check what WP Admin's inserter shows before changing that.
Environment info
GutenbergKit trunk (5f799a1f), iOS demo app with the native inserter enabled, iPhone 18 Pro simulator (iOS 27.1), local WordPress site. WordPress-iOS enables the native inserter by default.
Please confirm that you have searched existing issues in the repo.
- Yes
- Lingua principale
- JavaScript
- Stelle
- 29
- Fork
- 7
- Merge medio
- 2g 11h
- PR unite (30g)
- 81
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di wordpress-mobile/GutenbergKit
-
[Type] Bug Android
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
wordpress-mobile/GutenbergKit#847 ·
I maintainer di solito rispondono entro 1 giorno
-
[Type] Bug iOS
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
wordpress-mobile/GutenbergKit#846 ·
I maintainer di solito rispondono entro 1 giorno
-
[Type] Bug [Type] Code Quality iOS
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
wordpress-mobile/GutenbergKit#668 ·
I maintainer di solito rispondono entro 1 giorno
-
[Type] Bug [Type] Performance iOS
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
wordpress-mobile/GutenbergKit#666 ·
I maintainer di solito rispondono entro 1 giorno
-
[Type] Bug iOS
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
wordpress-mobile/GutenbergKit#664 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di wordpress-mobile/GutenbergKit
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
help wanted Idea 💡 wdio-cli
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
webdriverio/webdriverio#16361 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
clientV2: Application Info header separators show as missing-character boxes without a CJK fontApertabug new-client
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
NUWCDIVNPT/stig-manager#2285 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
Fei2411/DeepSeek-Bot#922 · 1 reazione ·