Page MenuHomePhabricator

Allow adding a preview via search first method in Wikipedia Preview Plugin
Closed, ResolvedPublicBUG REPORT


A bug has been identified where the plugin does not function correctly when the user starts by searching a term and then attempts to add a preview. This issue is specific to the search-first method.

Steps to replicate the issue

  • In the WordPress editor, click the "W" icon from the toolbar to activate the Wikipedia Preview plugin.
  • Use the plugin's search functionality to look for a specific word or phrase you wish to add a preview for.
  • Click on the search result that matches the word or phrase you searched for.
  • Observe the behavior of the plugin, particularly whether it allows you to add a preview or if there is a failure in this process.

What happens?:
Plugin does not successfully add a Wikipedia preview for the selected search result.

What should have happened instead?:
Upon selecting a search result, the Wikipedia Preview plugin should have seamlessly integrated a preview.

Acceptance Criteria

  • The search-first method for adding Wikipedia previews is functional and reliable.

QA Results - WordPress

Event Timeline

PWaigi-WMF moved this task from Definition to Ready for Dev on the Inuka-Team (Kanban) board.

@eamedina The search-first method for adding Wikipedia previews is functional and works as designed as seen in the .webm below. We probably have a task for Wikipedia preview words that go to the next line. The preview still works but the line under the word does not display. This will be moved to design sign-off. Thanks for all your work!

Status: ✅PASS
Environment: WordPress 6.4.3; Wikipedia Preview 1.12
OS: macOS Sonoma 14.2.1
Browser: Chrome 121
Skins. n/a
Device: MBA M2
Emulated Device:: n/a
Test Links:


Question- Bigger Font or next line Wikipedia preview- link still works but doesn't show the line anymore.