Skip to content

feat(frontend): add SearchBox component with glass styling#122

Merged
DevanshuNEU merged 2 commits into
OpenCodeIntel:mainfrom
DevanshuNEU:feat/111-searchbox-component
Dec 23, 2025
Merged

feat(frontend): add SearchBox component with glass styling#122
DevanshuNEU merged 2 commits into
OpenCodeIntel:mainfrom
DevanshuNEU:feat/111-searchbox-component

Conversation

@DevanshuNEU

Copy link
Copy Markdown
Collaborator

Overview

New standalone SearchBox component with v2 design system styling. First visual component using the design tokens from #110.

Changes

New: frontend/src/components/search/SearchBox.tsx

Reusable search input with:

  • Glass morphism - Uses .glass class from design tokens
  • Keyboard shortcut - ⌘K / Ctrl+K to focus, Esc to blur
  • Animated placeholder - Typewriter effect cycling through examples
  • Loading state - Spinner replaces search icon
  • Focus glow - Indigo accent glow on focus

Updated: frontend/src/components/SearchPanel.tsx

  • Now uses SearchBox component
  • Updated to use v2 design tokens (.card, .badge-*, .btn-*)
  • Cleaner code, consistent styling

Features

<SearchBox
  value={query}
  onChange={setQuery}
  onSubmit={handleSearch}
  loading={isLoading}
  autoFocus
/>
Feature Implementation
Glass effect glass class with backdrop blur
Focus state border-accent shadow-glow
Shortcut hint ⌘K badge, hidden on focus
Typewriter Cycles through 5 example queries

Testing

  • Build passes
  • Component renders
  • Keyboard shortcut works
  • Visual testing (need to run dev server)

Related

Closes #111
Part of Epic #109

- Glass morphism styling using v2 design tokens
- ⌘K / Ctrl+K keyboard shortcut to focus
- Animated typewriter placeholder effect
- Loading state with spinner
- Integrated into SearchPanel

Closes OpenCodeIntel#111
@vercel

vercel Bot commented Dec 23, 2025

Copy link
Copy Markdown

@DevanshuNEU is attempting to deploy a commit to the Dev's projects Team on Vercel.

A member of the Team first needs to authorize it.

- Added hasSearched state to track if user performed search
- Empty state now only shows after actual search returns 0 results
- Prevents confusing 'No results' message before user searches
@vercel

vercel Bot commented Dec 23, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
opencodeintel Ready Ready Preview, Comment Dec 23, 2025 10:07pm

@DevanshuNEU DevanshuNEU merged commit a3b2e5a into OpenCodeIntel:main Dec 23, 2025
6 checks passed
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.

feat(frontend): SearchBox component with glassmorphism effect

1 participant