Inserting a synced pattern from the iOS block inserter adds an unsynced copy
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- ios, javascript
Research direction
Start with src/components/native-inserter/index.jsx and inspect insertPattern, then compare its behavior with the native inserter's Reusable blocks tab and WP Admin's inserter. Reproduce the steps on iOS with a synced pattern and confirm the inserted block remains linked to its source; the issue is resolved when later edits to the pattern update the inserted block.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- JavaScript
- Stars
- 29
- Forks
- 6
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 76
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from wordpress-mobile/GutenbergKit
-
[Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
wordpress-mobile/GutenbergKit#940 ·
Maintainers usually reply within 1 day
-
[Type] Bug Android
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
wordpress-mobile/GutenbergKit#847 ·
Maintainers usually reply within 1 day
-
[Type] Bug iOS
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
wordpress-mobile/GutenbergKit#846 ·
Maintainers usually reply within 1 day
-
[Type] Bug [Type] Code Quality iOS
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
wordpress-mobile/GutenbergKit#668 ·
Maintainers usually reply within 1 day
-
[Type] Bug [Type] Performance iOS
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
wordpress-mobile/GutenbergKit#666 ·
Maintainers usually reply within 1 day
All issues in wordpress-mobile/GutenbergKit
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
TarteelAI/quranic-universal-library#1111 ·
Maintainers usually reply within 1 day
-
area:ryoku type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
google-ai-edge/LiteRT-LM#4783 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day