Skip to content

feat: add organization results to global search bar#2023

Merged
gaspergrom merged 1 commit into
mainfrom
feat/IN-1206
Jul 21, 2026
Merged

feat: add organization results to global search bar#2023
gaspergrom merged 1 commit into
mainfrom
feat/IN-1206

Conversation

@gaspergrom

@gaspergrom gaspergrom commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

What

Extends the global search bar to return organizations alongside projects, repositories, and collections. Implements IN-1206.

  • Each org result shows its logo (with an org-icon fallback when the logo is null) and name.
  • Clicking a result opens /organization/{slug} (the org page from IN-1174).
  • Organizations appear as the last section/tab: All | Projects | Repositories | Collections | Organizations.

How

Org rows come from the search_collections_projects_repos Tinybird pipe's new type='organization' output → /api/search → search modal → search-result.vue.

File Change
types/search.ts SearchOrganization interface; organizations on SearchResults
server/api/search.ts 'organization' in type union; dispatch branch; organizations in response
search-modal.vue organizations ref, wired from response, passed as prop; placeholder copy
search-result.vue Organizations section + tab (last) + empty-state; lfx-avatar type="organization"; link via LfxRoutes.ORGANIZATION
search.vue trigger placeholder copy
collections.api.service.ts organizations: [] on the empty-query return (type completeness)

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>
Copilot AI review requested due to automatic review settings July 20, 2026 19:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@gaspergrom
gaspergrom requested a review from joanagmaia July 21, 2026 09:01

@joanagmaia joanagmaia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@gaspergrom
gaspergrom merged commit ee5a2f2 into main Jul 21, 2026
14 checks passed
@gaspergrom
gaspergrom deleted the feat/IN-1206 branch July 21, 2026 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants