Skip to content

Add global search#17

Open
Ninot1Quyi wants to merge 1 commit into
gitearn-io:mainfrom
Ninot1Quyi:fix/global-search
Open

Add global search#17
Ninot1Quyi wants to merge 1 commit into
gitearn-io:mainfrom
Ninot1Quyi:fix/global-search

Conversation

@Ninot1Quyi
Copy link
Copy Markdown

Summary

  • add a backend /api/v1/search endpoint that searches visible items and, for superusers, users
  • wire the navbar search input to the new endpoint
  • show typed result cards with navigation to Items or Admin

Fixes #3

Checks

  • npm run build
  • npx biome check src/components/Common/Navbar.tsx src/client/models.ts src/client/services.ts
  • poetry run ruff check app/api/routes/search.py app/models.py app/tests/api/routes/test_search.py
  • poetry run mypy app/api/routes/search.py app/models.py
  • direct search smoke test with sqlite

Note: pytest target tests require a local Postgres role/database matching the project .env; this machine did not have role "postgres" available.

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.

✨ Implment global search feature

1 participant