[NO TICKET] Add shebangs for commands & refactor serach modal component#233
[NO TICKET] Add shebangs for commands & refactor serach modal component#233TylerAdamMartinez merged 4 commits intostagingfrom
Conversation
Preview DeploymentPreview URL: $PREVIEW_URL Note: This preview uses the staging API endpoints and has auth disabled for testing. |
There was a problem hiding this comment.
Broke up the Modal Results into their respective components in the Search folder.
There was a problem hiding this comment.
Move the normalization, shebang, and querying logic here.
| frontmatter: FrontMatter | ||
| } | ||
|
|
||
| const docModules = import.meta.glob('../../public/content/**/*.md', { |
There was a problem hiding this comment.
This 🤞 should work in staging...
There was a problem hiding this comment.
It works on this preview: https://preview-tam-no-ticket-add-shebangs-ocotillo-95715287188.us-central1.run.app
There was a problem hiding this comment.
If y'all have any better suggestions for a utility filename for this, I'm all ears.
There was a problem hiding this comment.
Slim and only really handles the UI view as it should.
Grabacion.de.pantalla.2026-03-31.a.la.s.12.49.09.mov@jeremyzilar any thoughts? |
Preview DeploymentPreview URL: $PREVIEW_URL Note: This preview uses the staging API endpoints and has auth disabled for testing. |
|
search for docs is a super nice addition. The games were supposed to be more secretive but I do like the current behavior 👏 |
Preview DeploymentPreview URL: $PREVIEW_URL Note: This preview uses the staging API endpoints and has auth disabled for testing. |
Why
This PR addresses the following problem/context:
SearchModalcomponent had grown too large and difficult to maintainHow
Implementation summary - the following was changed/added/removed:
useSearchModalStatehookCommandResults,GameResults,DocsResults,DefaultResultsRecentSearches,EmptyStatedocsSearch.ts)import.meta.globto load markdown filessearchModal.ts)!,!games,!docs, and partial matchesSearchModalinto a presentation layer using the new hook + componentsMarkdownPage.!Notes
Any special considerations, workarounds, or follow-up work to note?
import.meta.glob/public/content)useSearchModalStateis now the central abstraction for search behaviorCOMMANDS