Skip to content

SCIX-972 fix(search): raise the slow-search notice threshold to 15s - #984

Open
thostetler wants to merge 2 commits into
adsabs:masterfrom
thostetler:fix/scix-972-slow-search-notice-threshold
Open

thostetler wants to merge 2 commits into
adsabs:masterfrom
thostetler:fix/scix-972-slow-search-notice-threshold

Conversation

@thostetler

Copy link
Copy Markdown
Member

The slow-search notice fired after 5 seconds on ordinary searches.

  • Threshold is now 15s, half the 30s search API timeout, and overridable via NEXT_PUBLIC_SLOW_SEARCH_THRESHOLD_MS
  • Notice copy now reads "Still searching — large or complex queries can take a while."

Extract the timer into useSlowSearchNotice, overridable via
NEXT_PUBLIC_SLOW_SEARCH_THRESHOLD_MS. The notice copy now reads
"Still searching — large or complex queries can take a while."
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Bundle size

Shared by all pages: 643.7 kB (+0.0 kB) ⚪

No route changed by more than 1 kB. ✅

First load = polyfills + shared _app chunks + route chunks, gzipped.

@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.3%. Comparing base (8ea152a) to head (3901170).

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #984     +/-   ##
========================================
+ Coverage    58.3%   58.3%   +0.1%     
========================================
  Files         407     408      +1     
  Lines       12768   12781     +13     
  Branches     2863    2866      +3     
========================================
+ Hits         7434    7448     +14     
  Misses       4648    4648             
+ Partials      686     685      -1     
Files with missing lines Coverage Δ
src/config.ts 96.9% <100.0%> (+0.2%) ⬆️
src/lib/useSlowSearchNotice.ts 100.0% <100.0%> (ø)

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@thostetler
thostetler marked this pull request as ready for review November 21, 2026 03:52

This branch has not been deployed

No deployments
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