Commit Graph

3 Commits

Author SHA1 Message Date
hayyaksi c490440424 Stop reporting a search you cancelled yourself as a failure (#34594)
Opening a search result aborts the search, which rejects whatever request
is still in flight. The rejection lands in the same handler as a real
failure, so the user was shown a "Search failed: signal is aborted without
reason" dialog for doing nothing more than clicking a result.

There is a guard for this already, but it only covers the case where the
component has come apart first: `aborted` is set by the unmount cleanup,
and the rejection often arrives before React gets that far. An AbortError
is now recognised for what it is and dropped, whichever way round the two
happen to land.

Nothing else changes: a rejection from any other cause still reaches the
error dialog, since that is a failure nobody asked for.

Tests: a search rejected with an AbortError no longer reports an error,
and one rejected with anything else still does.

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2026-08-12 11:18:33 +00:00
David Baker 54d27fd59c Separate out SDKContext (#34053)
* Separate out SDKContext

...from SDKContextClass, as the comments hopefully explain.

Also make the captitalisation consistent.

* Adding the new file usually helps too

* Fix import

* More comment

* Update the various imports of SDKContextClass

* Also fix case of TestSDKContext

* Update the mock
2026-07-01 12:49:18 +00:00
Michael Telatynski 91a3cb03c1 mv element.io @types __mocks__/ debian docker module_system/ playwright res src test webapp Dockerfile .dockerignore .eslintignore .stylelintrc.cjs babel.config.cjs recorder-worklet-loader.cjs .modernizr.json components.json config.json config.sample.json package.json project.json tsconfig.json tsconfig.module_system.json jest.config.ts playwright.config.ts webpack.config.ts build_config.sample.yaml apps/web/
mkdir apps/web/scripts
mv scripts/{cleanup.sh,ci_package.sh,copy-res.ts,deploy.py,package.sh} apps/web/scripts

And a couple of gitignore tweaks

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2026-02-24 15:43:58 +00:00