Skip to content

Initial seach improvements #764

Closed
Closed

Description

@OrbisK

The initial search works-around the fact that we navigate from the index page to the search page. We need to prevent loss of focus between page renders. Teleports dont work because they recreate the element.

I can think of two options:

  • position/style the layout input to be centred on the index page (same input).
  • combine the index and search pages and show the index on initial load.

Feel free to add more.

Activity

  1. MatteoGabriele commented on Feb 2, 2026

    @MatteoGabriele
    Member

    Perhaps this issue relates to a PR I closed because it had been stale for too long. Maybe this is the perfect place to discuss it before making any changes. See #408.

  2. dominikg commented on Feb 2, 2026

    @dominikg

    +1 to removing the redirect until there is a solution that actually works well in all browsers and with all typing speeds. The initial experience right now for a first time visitor is jarring and might deter them from exploring the rest of it

  3. alexdln commented on Feb 2, 2026

    @alexdln
    Member

    I'll add a bit: the problem is that when switching between pages, there's a moment where the old input is already removed, and the new one is already mounted but hasn't been hydrated yet.

    That is - debounces, slowdowns and delayed changes will not help, but will only reduce the chance of such a thing.

    Basically, we could always have a header search field in the header (transparent by default). But then there won't be smooth animation (although I like it without it as well)

    Screenshot Image
    Details
  4. added
    uxRelated to wider UX decisions
    on Feb 2, 2026
  5. added theissue type on Feb 5, 2026
  6. alexdln commented on Feb 8, 2026

    @alexdln
    Member

    This also happens on other pages - #1211

    The problem might be when we add queries as well, not only navigate to another page...

  7. MatteoGabriele commented on Feb 8, 2026

    @MatteoGabriele
    Member

    I have a search version that uses a submit-only approach. (see #1107)
    As @alexdln mentioned, no matter how much you debounce, there will always be users who type differently and at different speeds, which can cause this bug. It's too unreliable.
    Perhaps we should consider removing the query parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    uxRelated to wider UX decisions

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions