Skip to content

chore: make search button functional#763

Closed
iiio2 wants to merge 1 commit intonpmx-dev:mainfrom
iiio2:chore/make-search-button-functional
Closed

chore: make search button functional#763
iiio2 wants to merge 1 commit intonpmx-dev:mainfrom
iiio2:chore/make-search-button-functional

Conversation

@iiio2
Copy link
Copy Markdown
Contributor

@iiio2 iiio2 commented Feb 2, 2026

In our current implementation, search button is not even functional. (https://npmx.dev/). If we click on search button, it does nothing. I think we can keep the button if it does any work. I think in previous implementation I've seen when we click on search button, it navigates to "/search" page. So I make that thing.

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
npmx.dev Ready Ready Preview, Comment Feb 2, 2026 5:06pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview Feb 2, 2026 5:06pm
npmx-lunaria Ignored Ignored Feb 2, 2026 5:06pm

Request Review

@danielroe
Copy link
Copy Markdown
Member

I think it doesn't make sense to search for nothing... I think the previous implementation is correct...

@iiio2
Copy link
Copy Markdown
Contributor Author

iiio2 commented Feb 2, 2026

@danielroe , that means when we click on search button, it should navigate to "/search" page ? That is what I've done now.

@danielroe
Copy link
Copy Markdown
Member

i'm saying it shouldn't navigate without a query

the current behaviour is deliberate and the result of a pr merged earlier today

@iiio2
Copy link
Copy Markdown
Contributor Author

iiio2 commented Feb 2, 2026

i think our search is based on typing. But clicking a button is really tough after typing here. when we start typing, it automatically navigates to "/search" page. When the input field is empty, then the search button navigates to "/search" page after clicking the button.

@iiio2
Copy link
Copy Markdown
Contributor Author

iiio2 commented Feb 2, 2026

@danielroe , Oh I see. Then I close the pr.

@iiio2 iiio2 closed this Feb 2, 2026
@iiio2 iiio2 deleted the chore/make-search-button-functional branch February 2, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants