tldraw/apps/docs
Lu Wilson 004787d5bd
[docs] Add feedback when you search (#1633)
This PR adds some immediate feedback when you search on the docs site —
so that you know that your query has been submitted. This is most
noticeable on slower internet connections. But even on fast connections,
search feels a bit untrustworthy because you don't get that immediate
feedback.

We could make a little loading spinner or something. But for now, I just
disabled the search input when you submit it, because it didn't require
any design work!

## Before

No way of telling that the search results are loading. No immediate
feedback:

![2023-06-22 at 12 17 34 - Fuchsia
Fowl](https://github.com/tldraw/tldraw/assets/15892272/da3b3d7f-fc6a-49f9-9352-58949ca917d5)

## After
![2023-06-22 at 13 09 26 - Turquoise
Cat](https://github.com/tldraw/tldraw/assets/15892272/9e44061a-c4b9-43d2-8b8f-e1c4dce60c48)


## Admin

### Change Type
- [x] `documentation` — Changes to the documentation only[^2]

[^1]: publishes a `patch` release, for devDependencies use `internal`
[^2]: will not publish a new version

### Test Plan

1. Throttle your network tab!
2. Search for something on the docs site (eg: Editor)
3. The search input should get disabled when you press the Enter key.

### Release Notes

- Documentation: Added some immediate feedback when you search.
2023-06-23 09:57:57 +00:00
..
components [docs] Add feedback when you search (#1633) 2023-06-23 09:57:57 +00:00
content [docs] Separate some pages out of the Docs section (#1626) 2023-06-23 09:53:22 +00:00
pages [docs] Separate some pages out of the Docs section (#1626) 2023-06-23 09:53:22 +00:00
public [docs] editor API (#1328) 2023-05-07 19:10:59 +01:00
scripts Auto content refresh for docs site (#1606) 2023-06-17 09:46:46 +00:00
styles [docs] Add feedback when you search (#1633) 2023-06-23 09:57:57 +00:00
types Auto content refresh for docs site (#1606) 2023-06-17 09:46:46 +00:00
utils [docs] Separate some pages out of the Docs section (#1626) 2023-06-23 09:53:22 +00:00
.eslintrc.json transfer-out: transfer out 2023-04-25 12:01:25 +01:00
.gitignore Auto content refresh for docs site (#1606) 2023-06-17 09:46:46 +00:00
CHANGELOG.md transfer-out: transfer out 2023-04-25 12:01:25 +01:00
content.d.ts transfer-out: transfer out 2023-04-25 12:01:25 +01:00
LICENSE readmes 2023-05-04 13:47:56 +01:00
next.config.js [docs] Separate some pages out of the Docs section (#1626) 2023-06-23 09:53:22 +00:00
package.json Revert "Update dependencies (#1613)" (#1617) 2023-06-19 09:49:44 +00:00
README.md transfer-out: transfer out 2023-04-25 12:01:25 +01:00
tsconfig.content.json transfer-out: transfer out 2023-04-25 12:01:25 +01:00
tsconfig.json transfer-out: transfer out 2023-04-25 12:01:25 +01:00

tldraw-docs

tldraw