Skip to content

Add global search to navbar#13

Open
william08190 wants to merge 2 commits into
gitearn-io:mainfrom
william08190:codex/global-search-bounty-3
Open

Add global search to navbar#13
william08190 wants to merge 2 commits into
gitearn-io:mainfrom
william08190:codex/global-search-bounty-3

Conversation

@william08190
Copy link
Copy Markdown

@william08190 william08190 commented May 12, 2026

Closes #3

Summary

  • Add an authenticated /api/v1/search/ endpoint that searches records visible to the current user
  • Return item results for normal users and include user results only for superusers
  • Keep page matches in the navbar while loading item/user records from the backend search API
  • Add backend route coverage for item visibility and superuser-only user results

Verification

  • npm run build
  • npx biome check --no-errors-on-unmatched --files-ignore-unknown=true src/components/Common/GlobalSearch.tsx src/components/Common/Navbar.tsx src/client/models.ts src/client/services.ts
  • python3 -m compileall backend/app
  • .venv/bin/ruff check app/api/routes/search.py app/api/main.py app/models.py app/tests/api/routes/test_search.py
  • .venv/bin/mypy app/api/routes/search.py app/models.py app/tests/api/routes/test_search.py
  • .venv/bin/pytest app/tests/api/routes/test_search.py
  • git diff --check origin/main...HEAD

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