docs: rework search UI (#2723)
Reworks search to not be a page and instead to be inline dropdown. <img width="763" alt="Screenshot 2024-02-05 at 13 22 58" src="https://github.com/tldraw/tldraw/assets/469604/4e5a8076-62cd-44bb-b8e7-7f5ecdc4af24"> - rework search completely - rm Search Results css - uses Ariakit and add appropriate hooks / styling - I couldn't use Radix unfortunately since they're still working on adding a Combox: https://github.com/radix-ui/primitives/issues/1342 - I'm open to other suggestions but Ariakit plays nicely with Radix and keeps things open to migrate to Radix in the future - fixes bug with not scrolling to right place when having a direct link - adds categories in the search results - examples / reference / learn - and adds category icons. Let me know if there's a better policy for adding new SVG icons cc @steveruizok ### Change Type - [x] `minor` — New feature ### Test Plan 1. Test searches using normal method for each type (examples, docs, refs) 2. Test searches using AI for each type (ditto) ### Release Notes - Docs: rework the search to be an inline dropdown.
This commit is contained in:
parent
591d3129c7
commit
157d24db73
28 changed files with 11965 additions and 11696 deletions
|
@ -8,4 +8,3 @@ status: published
|
|||
---
|
||||
|
||||
[View on GitHub](https://github.com/tldraw/tldraw/releases/tag/v2.0.0-alpha.12)
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -9,7 +9,6 @@ status: published
|
|||
|
||||
[View on GitHub](https://github.com/tldraw/tldraw/releases/tag/v2.0.0-alpha.14)
|
||||
|
||||
|
||||
#### Disable styles panel button on mobile when using the laser tool. ([#1704](https://github.com/tldraw/tldraw/pull/1704))
|
||||
|
||||
- Disable the styles panel button for laser tool on mobile.
|
||||
|
@ -112,4 +111,4 @@ status: published
|
|||
- David Sheldrick ([@ds300](https://github.com/ds300))
|
||||
- Lu Wilson ([@TodePond](https://github.com/TodePond))
|
||||
- Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
|
||||
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
|
||||
|
|
|
@ -9,7 +9,6 @@ status: published
|
|||
|
||||
[View on GitHub](https://github.com/tldraw/tldraw/releases/tag/v2.0.0-alpha.15)
|
||||
|
||||
|
||||
#### frame label fix ([#2016](https://github.com/tldraw/tldraw/pull/2016))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
@ -36,8 +35,14 @@ This pr add the custom defined shapes that's being passed to Tldraw
|
|||
|
||||
Before/After
|
||||
|
||||
<img width="300" src="https://github.com/tldraw/tldraw/assets/98838967/91ea55c8-0fcc-4f73-b61e-565829a5f25e" />
|
||||
<img width="300" src="https://github.com/tldraw/tldraw/assets/98838967/ee4070fe-e236-4818-8fb4-43520210102b" />
|
||||
<img
|
||||
width="300"
|
||||
src="https://github.com/tldraw/tldraw/assets/98838967/91ea55c8-0fcc-4f73-b61e-565829a5f25e"
|
||||
/>
|
||||
<img
|
||||
width="300"
|
||||
src="https://github.com/tldraw/tldraw/assets/98838967/ee4070fe-e236-4818-8fb4-43520210102b"
|
||||
/>
|
||||
|
||||
#### [fix] pinch events ([#1979](https://github.com/tldraw/tldraw/pull/1979))
|
||||
|
||||
|
@ -49,8 +54,14 @@ Before/After
|
|||
|
||||
Before/After
|
||||
|
||||
<image width="350" src="https://github.com/tldraw/tldraw/assets/98838967/320171b4-61e0-4a41-b8d3-830bd90bea65" />
|
||||
<image width="350" src="https://github.com/tldraw/tldraw/assets/98838967/b42d7156-0ce9-4894-9692-9338dc931b79" />
|
||||
<image
|
||||
width="350"
|
||||
src="https://github.com/tldraw/tldraw/assets/98838967/320171b4-61e0-4a41-b8d3-830bd90bea65"
|
||||
/>
|
||||
<image
|
||||
width="350"
|
||||
src="https://github.com/tldraw/tldraw/assets/98838967/b42d7156-0ce9-4894-9692-9338dc931b79"
|
||||
/>
|
||||
|
||||
#### Remove focus management ([#1953](https://github.com/tldraw/tldraw/pull/1953))
|
||||
|
||||
|
@ -71,8 +82,14 @@ Before/After
|
|||
|
||||
Before & After:
|
||||
|
||||
<image width="250" src="https://github.com/tldraw/tldraw/assets/98838967/e0ca7d54-506f-4014-b65a-6b61a98e3665" />
|
||||
<image width="250" src="https://github.com/tldraw/tldraw/assets/98838967/90c9fa12-1bcb-430d-80c7-97e1faacea16" />
|
||||
<image
|
||||
width="250"
|
||||
src="https://github.com/tldraw/tldraw/assets/98838967/e0ca7d54-506f-4014-b65a-6b61a98e3665"
|
||||
/>
|
||||
<image
|
||||
width="250"
|
||||
src="https://github.com/tldraw/tldraw/assets/98838967/90c9fa12-1bcb-430d-80c7-97e1faacea16"
|
||||
/>
|
||||
|
||||
#### Allow right clicking selection backgrounds ([#1968](https://github.com/tldraw/tldraw/pull/1968))
|
||||
|
||||
|
@ -88,7 +105,7 @@ Before & After:
|
|||
|
||||
#### Lokalise: Translations update ([#1964](https://github.com/tldraw/tldraw/pull/1964))
|
||||
|
||||
* Updated community translations for German and Galician
|
||||
- Updated community translations for German and Galician
|
||||
|
||||
#### [improvement] improve arrows (for real) ([#1957](https://github.com/tldraw/tldraw/pull/1957))
|
||||
|
||||
|
@ -132,7 +149,7 @@ Before & After:
|
|||
|
||||
#### :recycle: fix: editing is not terminated after the conversion is confirmed. ([#1885](https://github.com/tldraw/tldraw/pull/1885))
|
||||
|
||||
- fix: editing is not terminated after the conversion is confirmed.
|
||||
- fix: editing is not terminated after the conversion is confirmed.
|
||||
|
||||
#### Update community translations ([#1889](https://github.com/tldraw/tldraw/pull/1889))
|
||||
|
||||
|
@ -450,10 +467,12 @@ Removed a feature to reset the viewport back to a shape that is being edited.
|
|||
- `@tldraw/editor`, `@tldraw/store`, `@tldraw/tldraw`, `@tldraw/tlschema`
|
||||
- Migrate snapshot [#1843](https://github.com/tldraw/tldraw/pull/1843) ([@steveruizok](https://github.com/steveruizok))
|
||||
- `@tldraw/tldraw`
|
||||
- export asset stuff [#1829](https://github.com/tldraw/tldraw/pull/1829) ([@steveruizok](https://github.com/steveruizok))
|
||||
- export asset stuff [#1829](https://github.com/tldraw/tldraw/pull/1829) ([@steveruizok](https://github.com/steveruizok)
|
||||
)
|
||||
- [feature] Asset props [#1824](https://github.com/tldraw/tldraw/pull/1824) ([@steveruizok](https://github.com/steveruizok))
|
||||
- [feature] unlock all action [#1820](https://github.com/tldraw/tldraw/pull/1820) ([@steveruizok](https://github.com/steveruizok))
|
||||
- export `UiEventsProvider` [#1774](https://github.com/tldraw/tldraw/pull/1774) ([@steveruizok](https://github.com/steveruizok))
|
||||
- export `UiEventsProvider` [#1774](https://github.com/tldraw/tldraw/pull/1774) ([@steveruizok](https://github.com/steveruizok)
|
||||
)
|
||||
- `@tldraw/editor`
|
||||
- Add className as prop to Canvas [#1827](https://github.com/tldraw/tldraw/pull/1827) ([@steveruizok](https://github.com/steveruizok))
|
||||
- refactor `parentsToChildrenWithIndexes` [#1764](https://github.com/tldraw/tldraw/pull/1764) ([@steveruizok](https://github.com/steveruizok))
|
||||
|
@ -634,4 +653,4 @@ Removed a feature to reset the viewport back to a shape that is being edited.
|
|||
- Ricardo Crespo ([@ricardo-crespo](https://github.com/ricardo-crespo))
|
||||
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
|
||||
- Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
- Takuto Mori Gump ([@mr04vv](https://github.com/mr04vv))
|
||||
- Takuto Mori Gump ([@mr04vv](https://github.com/mr04vv))
|
||||
|
|
|
@ -9,7 +9,6 @@ status: published
|
|||
|
||||
[View on GitHub](https://github.com/tldraw/tldraw/releases/tag/v2.0.0-alpha.16)
|
||||
|
||||
|
||||
#### Fix shape opacity when erasing ([#2055](https://github.com/tldraw/tldraw/pull/2055))
|
||||
|
||||
- Fixes opacity of shapes while erasing in a group or frame.
|
||||
|
@ -24,9 +23,15 @@ status: published
|
|||
|
||||
Before/after:
|
||||
|
||||
<image width="250" src="https://github.com/tldraw/tldraw/assets/98838967/763a93eb-ffaa-405c-9255-e68ba88ed9a2" />
|
||||
<image
|
||||
width="250"
|
||||
src="https://github.com/tldraw/tldraw/assets/98838967/763a93eb-ffaa-405c-9255-e68ba88ed9a2"
|
||||
/>
|
||||
|
||||
<image width="250" src="https://github.com/tldraw/tldraw/assets/98838967/dc9d3f77-c1c5-40f2-a9fe-10c723b6a21c" />
|
||||
<image
|
||||
width="250"
|
||||
src="https://github.com/tldraw/tldraw/assets/98838967/dc9d3f77-c1c5-40f2-a9fe-10c723b6a21c"
|
||||
/>
|
||||
|
||||
#### fix: proper label for opacity tooltip on hover ([#2044](https://github.com/tldraw/tldraw/pull/2044))
|
||||
|
||||
|
@ -97,4 +102,4 @@ Before/after:
|
|||
- Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Prince Mendiratta ([@Prince-Mendiratta](https://github.com/Prince-Mendiratta))
|
||||
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
|
||||
- Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
- Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
|
|
|
@ -9,7 +9,6 @@ status: published
|
|||
|
||||
[View on GitHub](https://github.com/tldraw/tldraw/releases/tag/v2.0.0-alpha.17)
|
||||
|
||||
|
||||
#### Firefox, Touch: Fix not being able to open style dropdowns ([#2092](https://github.com/tldraw/tldraw/pull/2092))
|
||||
|
||||
- Firefox Mobile: Fixed a bug where you couldn't open some style dropdown options.
|
||||
|
@ -49,8 +48,8 @@ status: published
|
|||
#### [fix] locked shape of opacity problem with eraser.pointing ([#2073](https://github.com/tldraw/tldraw/pull/2073))
|
||||
|
||||
- locked shape of opacity problem with eraser.pointing
|
||||
Before/after:
|
||||
 
|
||||
Before/after:
|
||||
 
|
||||
|
||||
---
|
||||
|
||||
|
@ -107,4 +106,4 @@ Before/after:
|
|||
- Lu Wilson ([@TodePond](https://github.com/TodePond))
|
||||
- Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
|
||||
- Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
- Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
|
|
|
@ -9,7 +9,6 @@ status: published
|
|||
|
||||
[View on GitHub](https://github.com/tldraw/tldraw/releases/tag/v2.0.0-alpha.18)
|
||||
|
||||
|
||||
#### Fix an error when using context menu. ([#2186](https://github.com/tldraw/tldraw/pull/2186))
|
||||
|
||||
- Fixes the console error when opening the context menu for the first time.
|
||||
|
@ -184,4 +183,4 @@ status: published
|
|||
- Lu Wilson ([@TodePond](https://github.com/TodePond))
|
||||
- Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
|
||||
- Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
- Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
|
|
|
@ -9,7 +9,6 @@ status: published
|
|||
|
||||
[View on GitHub](https://github.com/tldraw/tldraw/releases/tag/v2.0.0-alpha.19)
|
||||
|
||||
|
||||
#### zoom to affected shapes after undo/redo ([#2293](https://github.com/tldraw/tldraw/pull/2293))
|
||||
|
||||
- Make sure affected shapes are visible after undo/redo
|
||||
|
@ -248,4 +247,4 @@ status: published
|
|||
- Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
|
||||
- Sugit ([@sugitlab](https://github.com/sugitlab))
|
||||
- Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
- Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
|
|
|
@ -9,7 +9,6 @@ status: published
|
|||
|
||||
[View on GitHub](https://github.com/tldraw/tldraw/releases/tag/v2.0.0-beta.1)
|
||||
|
||||
|
||||
#### add speech bubble example ([#2362](https://github.com/tldraw/tldraw/pull/2362))
|
||||
|
||||
- Add an example for making a custom shape with handles, this one is a speech bubble with a movable tail.
|
||||
|
@ -149,4 +148,4 @@ Updated translations for German, Korean, Russian, Ukrainian, Traditional Chinese
|
|||
- MinhoPark ([@Lennon57](https://github.com/Lennon57))
|
||||
- Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
|
||||
- Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
- Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
|
|
|
@ -9,7 +9,6 @@ status: published
|
|||
|
||||
[View on GitHub](https://github.com/tldraw/tldraw/releases/tag/v2.0.0-beta.2)
|
||||
|
||||
|
||||
#### Fix validation when pasting images. ([#2436](https://github.com/tldraw/tldraw/pull/2436))
|
||||
|
||||
- Fixes url validations.
|
||||
|
@ -164,4 +163,4 @@ status: published
|
|||
- Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Stan Flint ([@StanFlint](https://github.com/StanFlint))
|
||||
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
|
||||
- Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
- Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue