feat: add organization results to global search bar#2023
Merged
Conversation
Extend the global search bar to return organizations alongside projects,
repositories, and collections. Each org result shows its logo (with an
org-icon fallback when absent) and name, and links to /organization/{slug}.
Organizations appear as the last section/tab. Org data comes from the
search_collections_projects_repos Tinybird pipe's new 'organization' rows;
the datasource is pre-filtered to orgs with linked activity.
Requires the crowd.dev Tinybird pipe change to be deployed first.
Claude-Session: https://claude.ai/code/session_01JFS7TVQUvsTBRyuihHjtQX
Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds organization results to global search, integrating Tinybird data with the existing API and search UI.
Changes:
- Adds organization search types and API response handling.
- Adds organization results, navigation, tab, and empty state.
- Updates search prompts and empty-result defaults.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
frontend/types/search.ts |
Defines organization search results. |
frontend/server/api/search.ts |
Maps Tinybird organization rows into API responses. |
frontend/app/components/shared/layout/search/search.vue |
Updates trigger text. |
frontend/app/components/shared/layout/search/search-result.vue |
Renders organization results and tab. |
frontend/app/components/shared/layout/search/search-modal.vue |
Manages and passes organization results. |
frontend/app/components/modules/collection/services/collections.api.service.ts |
Completes empty search responses. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Extends the global search bar to return organizations alongside projects, repositories, and collections. Implements IN-1206.
/organization/{slug}(the org page from IN-1174).All | Projects | Repositories | Collections | Organizations.How
Org rows come from the
search_collections_projects_reposTinybird pipe's newtype='organization'output →/api/search→ search modal →search-result.vue.types/search.tsSearchOrganizationinterface;organizationsonSearchResultsserver/api/search.ts'organization'in type union; dispatch branch;organizationsin responsesearch-modal.vueorganizationsref, wired from response, passed as prop; placeholder copysearch-result.vuelfx-avatar type="organization"; link viaLfxRoutes.ORGANIZATIONsearch.vuecollections.api.service.tsorganizations: []on the empty-query return (type completeness)