matrix-org / matrix-org/matrix-viewer

Disable search form after submission

Open
#109 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-room-directory T-Enhancement
Dominant language
JavaScript
Stars
84
Forks
10
PR merge metrics
No merged PRs in 30d

Description

When there is a big delay between searches, it can be a bit awkward to interact with the form during the page-load and then have the new content pop in.

We can add a loading spinner to indicate that something is happening.

We want the disable/re-enable to be robust though to make sure we don't leave the user with a disabled form if they cancel the page-load.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the search form submission and page-load handling in the JavaScript frontend. Add a loading indication and ensure the form is disabled during loading but re-enabled when navigation is cancelled; verify both delayed searches and cancellation leave the form usable.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.