Page MenuHomePhabricator

jsdoc-wmf-theme: Search is completely broken
Closed, ResolvedPublic

Description

The search doesn't work at all it seems.

  • The results don't link to their page, there is no anchor link.
  • The results are inaccessible, there is no hover or selection state, content has a text cursor instead of a pointer.
  • The results are not keyboard accessible, cursor keys do nothing.
  • The results feel out of place, mostly unstyled/lacking spacing.
  • The results flicker when you focus the search field.

Consistently reproducible in Firefox and Safari on macOS on https://doc.wikimedia.org/oojs/master/, and also with local builds.

Event Timeline

Krinkle triaged this task as High priority.Sep 9 2020, 12:36 PM
Krinkle moved this task from Backlog to Confirmed Problem on the JSDoc WMF theme board.
Krinkle renamed this task from jsdoc-wmf-theme: Search is broken to jsdoc-wmf-theme: Search is completely broken.May 12 2023, 9:23 PM
Krinkle updated the task description. (Show Details)

We should just disable the search bar. You can still search class names with ctrl+f.

There are big performance issues with the OOUI documentation. My system hangs for 20s just focussing the search bar.

Change 923671 had a related patch set uploaded (by Jforrester; author: Jforrester):

[jsdoc/wmf-theme@master] Allow the disabling of the Search system for repos on which it's too slow

https://gerrit.wikimedia.org/r/923671

Change 923678 had a related patch set uploaded (by Esanders; author: Esanders):

[jsdoc/wmf-theme@master] Truncate search results for performance

https://gerrit.wikimedia.org/r/923678

Change 923679 had a related patch set uploaded (by Esanders; author: Esanders):

[jsdoc/wmf-theme@master] Don't perform search on an empty term

https://gerrit.wikimedia.org/r/923679

Change 923678 merged by jenkins-bot:

[jsdoc/wmf-theme@master] Truncate search results for performance

https://gerrit.wikimedia.org/r/923678

Change 923679 merged by jenkins-bot:

[jsdoc/wmf-theme@master] Don't perform search on an empty term

https://gerrit.wikimedia.org/r/923679

Change 923682 had a related patch set uploaded (by Esanders; author: Esanders):

[jsdoc/wmf-theme@master] Fix typo in search code that was causing it to be mostly broken

https://gerrit.wikimedia.org/r/923682

The above typo fix makes the feature mostly work as expected

Change 923682 merged by jenkins-bot:

[jsdoc/wmf-theme@master] Fix typo in search code that was causing it to be mostly broken

https://gerrit.wikimedia.org/r/923682

Change 923671 abandoned by Jforrester:

[jsdoc/wmf-theme@master] Allow the disabling of the Search system for repos on which it's too slow

Reason:

https://gerrit.wikimedia.org/r/923671

Change 949595 had a related patch set uploaded (by Krinkle; author: TheDJ):

[jsdoc/wmf-theme@master] Some minor search improvements

https://gerrit.wikimedia.org/r/949595

Change 949595 merged by jenkins-bot:

[jsdoc/wmf-theme@master] Some minor search improvements

https://gerrit.wikimedia.org/r/949595

I think its pretty usable now. Though likely accessibility wise, it's probably still lacking at some points.

Krinkle claimed this task.

The flickering bug still exists, but seems usable now indeed.

  1. https://doc.wikimedia.org/oojs/master/
  2. Type OO.
  3. Click elsewhere or tab out.
  4. Re-focus

Observe the field appearing and then disappearing.