Commit 128e756
Typesense implementation (includes ENG-6484) (#1453)
* Replace Inkeep search with Typesense implementation
- Add new Typesense search component with dropdown results
- Create CI workflow for automatic documentation indexing
- Add indexing script that parses 219 markdown files from docs folder
- Remove hardcoded API keys, use environment variables for security
- Update search bar to use new Typesense component
- Maintain existing UI styling and user experience
Fixes search functionality issue where no results appeared in UI
Co-Authored-By: Alek <[email protected]>
* Fix CSS interference in Typesense search component
- Remove global CSS injection that was affecting other components
- Replace with Reflex responsive styling using array syntax
- Eliminate !important declarations causing test failures
- Fix unit test failures in test_lambdas.py
Co-Authored-By: Alek <[email protected]>
* Transform search into Vercel-style modal popup
- Replace dropdown search with full-screen modal overlay
- Add dark backdrop with blur effect
- Center modal with rounded corners and shadow
- Include search input with 'What are you searching for?' placeholder
- Add suggestions section with predefined documentation topics
- Implement ESC button and click-outside-to-close functionality
- Maintain all existing Typesense search functionality
- Update production deployment workflow to include Typesense indexing
Co-Authored-By: Alek <[email protected]>
* Make search modal more compact like Vercel design
- Reduce modal padding from 24px to 16px
- Decrease search input padding and font size for compactness
- Tighten suggestion item spacing and padding
- Make search result items more compact with smaller padding
- Reduce suggestions section margins
- Decrease modal max-width from 600px to 520px
- Maintain all existing search functionality while improving visual efficiency
Co-Authored-By: Alek <[email protected]>
* Add comprehensive markdown indexing verification
- Enhanced indexing script with detailed coverage verification
- Tracks all 219 markdown files found vs processed vs indexed
- Reports section-by-section breakdown (24 sections total)
- Exits with error if any files fail processing or counts mismatch
- Updated CI workflow with verification summary and search testing
- Ensures 100% coverage of all documentation files in search index
Co-Authored-By: Alek <[email protected]>
* Add breadcrumb navigation to search results
- Enhanced search results with section hierarchy display
- Added _create_breadcrumb() method to format section paths
- Updated search_result_item() with breadcrumb display and file icons
- Breadcrumbs show proper section > subsection > title format
- Matches Vercel-style search UI design from reference screenshot
Co-Authored-By: Alek <[email protected]>
* Add blog indexing and improve content cleaning
- Extended indexing script to process blog posts from /blog directory
- Enhanced content cleaning to remove hashtags and markdown formatting
- Added blog URL generation following /blog/post-slug pattern
- Updated breadcrumb display to handle Blog section
- Added comprehensive verification for both docs and blog coverage
Co-Authored-By: Alek <[email protected]>
* Add search icon and improve CSS scoping to fix test interference
Co-Authored-By: Alek <[email protected]>
* Add filter pills for section-based search filtering
- Add filter categories: All, Docs, Components, API Reference, Blogs
- Implement filter state management in TypesenseSearchState
- Add filter_pill and filter_pills components with proper styling
- Update search_docs method to include section filtering
- Filter pills show active/inactive states with violet highlighting
- Search results properly filtered by selected section
- Maintains existing search functionality and breadcrumb navigation
Co-Authored-By: Alek <[email protected]>
* ui enhancements for search feature
* global hot key + better debounce
* Address UI feedback: bigger search input, lighter violet pills, wider modal, card shadows
- Remove X button from search modal
- Increase search input text size from text-sm to text-base
- Change selected filter pills from white to lighter violet (bg-violet-3)
- Increase modal width from max-w-[520px] to max-w-[640px]
- Add shadow-small class to search result cards
- Fix rxconfig.py by removing unsupported TailwindV3Plugin
Addresses GitHub comments from carlosabadia on PR #1453
Co-Authored-By: Alek <[email protected]>
* Address UI feedback: improve filter pill spacing and add filter reset behavior
- Increase filter pill spacing from gap-x-2 py-2 to gap-x-3 py-3 for more even spacing
- Add open_modal method that resets filter to 'All' when modal opens
- Add on_click handler to search trigger to call open_modal
- Fix @rx.event decorator issue in event_arguments.md documentation
Co-Authored-By: Alek <[email protected]>
* Fix decentralized event handler documentation compilation error
- Add lambda wrappers to increment function calls to match correct Reflex pattern
- Fixes TypeError: increment() missing 1 required positional argument: 'amount'
- Allows documentation to compile and tests to run properly
Co-Authored-By: Alek <[email protected]>
* Fix decentralized event handler documentation to use traditional state methods
- Convert from broken decentralized pattern to working traditional state method pattern
- Use @rx.event def increment(self, amount: int) within state class
- Use lambda: MyState.increment(1) for event handlers instead of lambda: increment(1)
- Fixes TypeError: increment() missing 1 required positional argument
- Allows documentation compilation and tests to run properly
Co-Authored-By: Alek <[email protected]>
* update uv.lock file
* add tailwind plugin to config
* more UI stuff
* final ui changes
* ui
* ui part III
* normalize the broken url
* normalize the broken url
* fix height
* more height stuff
* looking good ui
* more updates
* typsense clusters & updated deploy workflows
* update config file
* fix dep for typsense
* update uv.lock
* make search mobile friendly
* update uv lock file
* handle -II files to /low
* small ui tweak
* revert devin changes
* remove inkeep
* fix tests
* fix typo
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Alek <[email protected]>
Co-authored-by: Ahmad Hakim <[email protected]>
Co-authored-by: Ahmad Hakim <[email protected]>1 parent 8563d53 commit 128e756
File tree
13 files changed
+2455
-1740
lines changed- .github/workflows
- docs/events
- scripts
- tests
13 files changed
+2455
-1740
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
41 | 51 | | |
42 | 52 | | |
43 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
39 | 49 | | |
40 | 50 | | |
41 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
41 | 51 | | |
42 | 52 | | |
43 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
0 commit comments