Skip to content

fixed search#76

Merged
jaydonkc merged 1 commit into
devfrom
feature/POLY-63-Search
Apr 15, 2026
Merged

fixed search#76
jaydonkc merged 1 commit into
devfrom
feature/POLY-63-Search

Conversation

@mattphanm
Copy link
Copy Markdown
Collaborator

@mattphanm mattphanm commented Apr 14, 2026

Search Page Issue

Closes #63
Linear: POLY-63 (e.g., POLY-123)

Summary

Made search page await user action; allow closing keyboard via tap outside keypad

How to Test

Navigate to Search Page and check functionality

Steps to verify locally:

  • npm run lint
  • npm run typecheck
  • npm test
  • Manual flow:
    1. npm run dev:backend (in terminal A)
    2. npm run dev (in terminal B)
    3. Verify the change: <describe expected behavior/screens>

Checklist

  • Tests added/updated (if applicable)
  • Lint/tests pass locally (npm run lint)
  • Docs updated (README/ADR/changelog if needed)
  • Follows conventional commit format
  • No merge conflicts with dev

Screenshots / Demos

(if UI or visible behavior - attach images, videos, or GIFs)

Summary by CodeRabbit

  • Refactor
    • Enhanced keyboard handling in search — the keyboard now dismisses when tapping elsewhere on the screen.
    • Improved touch interaction with search results when the keyboard is open.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 14, 2026

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

Project Deployment Actions Updated (UTC)
poly-buys Error Error Apr 14, 2026 9:50pm

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 14, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 910abbcd-03d4-417e-abc0-ce264ccc7c60

📥 Commits

Reviewing files that changed from the base of the PR and between 859de2e and 3a83146.

📒 Files selected for processing (1)
  • frontend/app/(tabs)/search.tsx

📝 Walkthrough

Walkthrough

The search screen's keyboard interaction has been refactored to automatically dismiss on background taps. Focus management via useFocusEffect was removed and replaced with a TouchableWithoutFeedback wrapper. A keyboardShouldPersistTaps prop was added to the results list to control tap behavior when the keyboard is visible.

Changes

Cohort / File(s) Summary
Search Screen Keyboard Management
frontend/app/(tabs)/search.tsx
Replaced useFocusEffect auto-focus with TouchableWithoutFeedback wrapper for keyboard dismissal on background taps. Added keyboardShouldPersistTaps="handled" to FlatList. Updated imports and refactored JSX structure to nest UI branches within the wrapper.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 A hop, a tap, the keyboard fades,
No lingering keys in search charades,
The touch dismisses with gentle grace,
Bringing focus back to this searching space!

🚥 Pre-merge checks | ✅ 1 | ❌ 4

❌ Failed checks (1 warning, 3 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title 'fixed search' is vague and doesn't clearly convey what aspect of the search functionality was fixed. Use a more descriptive title that explains the specific fix, such as 'Dismiss keyboard on search page background tap' or 'Add keyboard dismissal to search page'.
Description check ❓ Inconclusive The description lacks critical testing details; the manual flow testing steps are incomplete with only placeholder text for verification. Complete the manual flow section by specifying expected behavior, such as 'Keyboard should close when tapping search page background' and verify search results display correctly.
Linked Issues check ❓ Inconclusive The code changes implement keyboard dismissal on background tap for the search page, which aligns with the web experience polish objective but partially addresses the broader messaging safety and web feature requirements of issue #63. Clarify whether this PR is meant to address only the search page keyboard dismissal or if additional changes are expected for the broader issue #63 objectives like messaging safety and web configuration.
✅ Passed checks (1 passed)
Check name Status Explanation
Out of Scope Changes check ✅ Passed All changes in search.tsx directly relate to keyboard and focus management for the search page, with no unrelated modifications detected.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/POLY-63-Search

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@jaydonkc jaydonkc merged commit 9e5c87d into dev Apr 15, 2026
4 of 5 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.

2 participants