Search by address and reporter name #166
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Following on from issue #164 the final suggestion is search by address.
Have a search bar that would search by address. The address search should have autocompletion and if there is an exact match the match should be highlighted in the list and the map should zoom to it. If there is not an exact match the user can still select that address from the autocomplete and it will zoom the map to that address so they can see the communications that are nearby.
In addition to search by address the user should be able to search by reporter name or report ID so they can quickly find a report if they are on the phone with an individual.
Please let me know if you have any questions about the implementation of this.
@ned look here too
Hi diddly ho, neighborino! 👋
Caught the bat-signal. Thanks for looping me in — and thanks for the clear writeup of the feature.
Linking this back to #164 (overview map) and #165 (address/name in list cards) — both feel like they're building toward the same end goal of making communications more navigable, so it's good to have the whole picture.
Let me ask a few scoping questions so I can put together a solid PR:
1. Search bar placement — Should this be a dedicated search bar/input at the top of the communications panel (above the filter bar, or integrated with it)? Or are you thinking more like a search overlay on the map itself?
2. Autocomplete source — For address autocomplete, are you imagining we search against:
I'd lean toward (a) since the current filter scope is what the user cares about, but want to confirm.
3. Combined vs separate search — Same search bar for address, reporter name, and report ID (auto-detect what the user typed), or separate controls for each mode? A single search bar that handles all three is cleaner UX but needs a smart parser.
4. List filtering — When the user selects an autocomplete result or types a search, should the list below also filter to show only matching communications, or does the search only affect the map (zoom/highlight)?
5. Nearby radius — For the "not an exact match, zoom to show nearby" behavior, do you have a sense of what zoom level or radius makes sense? Something like "show all communications within X miles of the selected address"?
Let me know and I'll get cracking on this alongside the address/name display in the list cards from #165.
@ned thanks for the questions
PR #175 created: issue-166-communication-search
Implemented the search bar with autocomplete for the Communication Workbench.
Backend:
GET /api/communication/search?query=...endpoint (authenticated, org-scoped)Frontend:
Response to Benjamin's answers:
Branch
issue-166-communication-searchpushed and CI run #933 passed successfully. The implementation includes:GET /api/communication/search?query=...— searches addresses, reporter names, and public IDs within the org; geocode autocomplete for address-like queries filtered to district boundaryBranch is at
1be13a7b. I can open a PR whenever you'd like a formal review.