Skip to content

feat(vara-eth-idea/frontend): add program and code search#2287

Merged
nikitayutanov merged 13 commits intomainfrom
ny-search
Jan 19, 2026
Merged

feat(vara-eth-idea/frontend): add program and code search#2287
nikitayutanov merged 13 commits intomainfrom
ny-search

Conversation

@nikitayutanov
Copy link
Member

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds search functionality for programs and codes, with automatic entity detection based on address/hash format. The Navigation component has been refactored to be centralized at the app level, removing duplication across individual pages.

Changes:

  • Centralized Navigation component in app.tsx, removing individual Navigation instances from all pages
  • Enhanced Search component with form validation using React Hook Form and Zod, including entity type detection (program/user/code)
  • Refactored code queries to separate concerns between requests and query hooks

Reviewed changes

Copilot reviewed 15 out of 17 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
vite-env.d.ts Deleted file - removes critical Vite and SVG type definitions
react-router.d.ts Added type augmentation for NavigateFunction
shared/utils/index.ts Added cx and noop utility exports
pages/*.tsx Removed Navigation component imports and usage (now centralized)
features/search/ui/search.tsx Major refactor with Zod validation and async entity detection
features/search/ui/search.module.scss Added error styling and validation states
features/codes/lib/requests.ts New file extracting Code type and getCode function
features/codes/lib/queries.ts Refactored to use shared Code type from requests.ts
features/programs/lib/queries.ts Updated import path for Code type
components/navigation/navigation.tsx Refactored to be self-contained with route-based action buttons
app/app.tsx Added centralized Navigation component

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nikitayutanov nikitayutanov force-pushed the ny-search branch 4 times, most recently from e4b80f8 to d5bf2e2 Compare January 12, 2026 16:26
@nikitayutanov nikitayutanov merged commit 097c092 into main Jan 19, 2026
14 checks passed
@nikitayutanov nikitayutanov deleted the ny-search branch January 19, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C1-feature Feature request D6-vara-eth-idea Vara.Eth Idea

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants