Skip to content

Conversation

@Audatic07
Copy link

@Audatic07 Audatic07 commented Feb 1, 2026

This PR prevents the search bar from accepting empty or whitespace-only queries.

Problem

The search form currently allows blank or whitespace inputs to be submitted, resulting in an empty results page with no feedback.
Ref: #196
Screenshot 2026-02-01 224907

Solution

Added an onsubmit function that returns false and prevents submission if the trimmed query is blank.

Testing

Verified that blank queries ("" and " ") are blocked

Verified that valid queries still submit correctly

Summary by CodeRabbit

  • Chores
    • Updated theme submodule to the latest version.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Feb 1, 2026

Walkthrough

The submodule pointer for themes/northendlab-hugo has been updated from commit 1d2ddd49c5f48cdb5ba9816f877c6a907a75bcc6 to commit 3c061ce7eb345dc8f0bd92e07a8a16f9e6b90df8. No modifications to code logic, control flow, error handling, or public/exported declarations are introduced. The change consists of a single line addition and deletion, reflecting the submodule version update.

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Title check ⚠️ Warning The PR title describes fixing search bar blank/whitespace queries, but the raw summary shows only a submodule pointer update with no actual code changes to implement this fix. The title references a fix for search functionality, but the changeset only updates a theme submodule. Verify the actual changes are included or update the title to match the actual changes.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

1 participant