Page MenuHomePhabricator

Support multiple roots
Closed, ResolvedPublic

Description

Original report: https://github.com/wikimedia/wikipedia-preview/issues/167

When calling the Wikipedia Preview init function, one can specify the root to use as the container for all items with previews. It has been requested that the root can actually be multiple roots. I would go further and say that we should allow specifying a selector (e.g. .content) for consistency and flexibility.

QA Results - WordPress Dev

Event Timeline

SBisson triaged this task as Medium priority.Oct 5 2023, 2:41 PM
PWaigi-WMF changed the task status from Open to In Progress.Nov 17 2023, 5:38 PM

@SBisson When running through some regression testing, I did not come across any new issues. I will move this to design sign-off. Thanks for all your work!

Status: ✅PASS
Environment: WordPress Dev 6.4.2; Wikipedia Preview: commit f8134c6ac58618bd0c9eef77697a59b53cd8ca7e - Mon Dec 11 14:50:53 2023 -0500
OS: macOS Sonoma 14.2
Browser: Chrome 120, Firefox 120, Safari 17.2, Edge 120
Skins. N/A
Device: MBA M2
Emulated Device:: n/a
Test Links:
http://dev-test.local/wp-admin/post.php?post=27&action=edit
http://dev-test.local/27-2/

✅AC1: https://phabricator.wikimedia.org/T348261 - Regression Testing

EditPost
2023-12-21_14-31-11.png (894×2 px, 174 KB)
2023-12-21_14-31-28.png (1×1 px, 292 KB)