Allow searching for content in the editor navigation

Created on 9 April 2025, 12 days ago

Overview

We currently have a text field for searching for content in the editor navigation that is not functional.

Proposed resolution

Update `\Drupal\experience_builder\Controller\ApiContentControllers::list` to read a `search` query parameter and do a `LIKE` query on the `label` entity key.

Update `contentApi` and `getContentList` to pass the `search` query param.

Update `PageInfo` to pass a function to `Navgation` component's `onSearch` prop to perform a refresh of `useGetContentListQuery` when search is performed.

User interface changes

Pressing "enter" in search no longer shows the "not implemented yet" alert and pages can be searched

Feature request
Status

Active

Version

0.0

Component

Page builder

Created by

🇺🇸United States mglaman WI, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @mglaman
  • 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺

    Update `\Drupal\experience_builder\Controller\ApiContentControllers::list` to read a `search` query parameter and do a `LIKE` query on the `label` entity key.

    If only we had QUERY!

    But at least in this case, the querystring itself should be comparatively tiny, so ?search=hello%20world will do just fine 👍

    Note: ApiContentControllers::list() may end up finding hundreds of matches. But the API response does not yet support pagination. Thoughts?

  • 🇺🇸United States mglaman WI, USA

    But the API response does not yet support pagination. Thoughts?

    Technically it'd still be a subset of the default result without a query string. But I do think getting pagination is going to become important pretty soon

  • First commit to issue fork.
  • Pipeline finished with Canceled
    11 days ago
    Total: 63s
    #471320
  • Pipeline finished with Failed
    11 days ago
    Total: 1611s
    #471321
  • Pipeline finished with Failed
    10 days ago
    Total: 1323s
    #471863
  • Pipeline finished with Failed
    8 days ago
    Total: 1690s
    #472811
  • Pipeline finished with Failed
    8 days ago
    Total: 1532s
    #472879
  • Pipeline finished with Canceled
    8 days ago
    Total: 605s
    #472999
  • Pipeline finished with Failed
    8 days ago
    Total: 1865s
    #473004
  • Pipeline finished with Failed
    8 days ago
    Total: 1537s
    #473128
  • Pipeline finished with Failed
    8 days ago
    Total: 1802s
    #473254
  • Pipeline finished with Failed
    8 days ago
    Total: 1931s
    #473289
  • Pipeline finished with Failed
    7 days ago
    Total: 1523s
    #473639
  • 🇮🇳India deepakkm

    All the threads are resolved hence moving into review.

  • Pipeline finished with Failed
    7 days ago
    Total: 1863s
    #473711
  • Pipeline finished with Failed
    7 days ago
    Total: 1624s
    #474249
  • Pipeline finished with Failed
    6 days ago
    Total: 3691s
    #474641
  • Pipeline finished with Failed
    6 days ago
    Total: 1643s
    #474712
  • 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
  • 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
  • Pipeline finished with Failed
    5 days ago
    Total: 1377s
    #475723
  • Pipeline finished with Canceled
    4 days ago
    Total: 172s
    #476430
  • Pipeline finished with Failed
    4 days ago
    Total: 1942s
    #476435
  • Pipeline finished with Failed
    4 days ago
    Total: 3294s
    #476490
  • Pipeline finished with Canceled
    about 21 hours ago
    Total: 68s
    #478346
  • Pipeline finished with Failed
    about 20 hours ago
    Total: 1978s
    #478347
  • Pipeline finished with Failed
    about 19 hours ago
    Total: 1618s
    #478383
  • Pipeline finished with Failed
    about 19 hours ago
    Total: 1589s
    #478398
  • Pipeline finished with Failed
    about 18 hours ago
    Total: 1707s
    #478421
Production build 0.71.5 2024