The search page atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Avendaosander/Plataforma-social/llms.txt
Use this file to discover all available pages before exploring further.
/home/search is the primary discovery surface on Plataforma Social. It renders the same CardPost grid as the main feed but layers on a text search bar and a collapsible filter sidebar so users can narrow results by technology, category, and rating. All search state lives in the URL — queries and filters are encoded as query parameters, making every search result shareable and bookmarkable with a direct link.
URL-Based Search
Both the home feed (/home) and the search page (/home/search) share the same navigation pattern: the user types into an InputWithIcon field and submits to push a ?query= parameter onto /home/search.
encodeURIComponent call ensures that spaces and special characters in the search text are safely encoded as URL components (e.g., "Button React" becomes Button%20React).
Technology Filter via CardPost Tags
EveryCardPost card displays its tech-stack tags as clickable pill buttons. Each tag is a <Link> that navigates directly to /home/search?tech=<technology>, bypassing the search bar entirely:
Filter Sidebar
The search page has a fixed right-side panel (right-0, full screen height) that contains a Filtrar button at the top and a Crear button at the bottom.
Toggling the Filter Panel
The Filtrar button togglesisFilterActive state. When active, the panel expands to w-[250px] with a bg-seagreen-900 background and reveals the filter controls. The button color also switches from primary to secondary to reflect the active state:
Filter Panel Contents
When the panel is open, three filter sections are displayed:| Section label | Control | Notes |
|---|---|---|
| Tecnologias | <select> dropdown | Options include React (and others); defaults to -- Selecione -- |
| Categorias | Label only | Category filter UI (in development) |
| Clasificacion | Label only | Rating filter UI (in development) |
Filter selections and text queries work together — the
?query= and ?tech= parameters can both be present in the URL simultaneously. GraphQL queries on the backend receive both values and apply them as compound filters.Navigation Patterns Summary
Here is a quick reference for all URL-driven navigation patterns used across the search feature:Additional Feed Views
Beyond the main feed and search results, the Navbar links to two more curated feeds:Populares — /home/trending
Accessible from the Populares Navbar link (
TrendingIcon). Shows components ranked by engagement — a discovery surface for the highest-rated or most-commented posts on the platform.Siguiendo — /home/followers
Accessible from the Siguiendo Navbar link (
UserCheck icon). Shows only posts from users you follow, creating a personalized feed of trusted contributors.All three feeds —
/home, /home/trending, and /home/followers — render CardPost components and share the same interaction patterns (follow, rate, comment, share, bookmark). The only difference is the GraphQL query used to fetch and sort the posts.