Repository navigation
feat(places-near-me): add Places near me tool and flow action - #1601
Merged
Merged
Conversation
- PlaceCategory and PlaceLocation tables with category/location services - Public API (places scope) for place categories and locations, plus CLI docs - Server actions and tool page with locations and categories tabs - Find nearest place location from a contact's latest location custom fields - Worker handler and flow builder "Find places near me" action
setValues skips writing an unchanged value, so updatedAt stayed stale and Find places near me could pick an older location from another field. Get User Data (Location) now passes touchUnchanged to refresh updatedAt without emitting a change event.
hoangle398
force-pushed
the
feat/places-near-me
branch
from
October 31, 2026 04:05
b857828 to
ea11c7b
Compare
hello-jackytruong
referenced
this pull request
in hello-jackytruong/ChatWorkAI
Nov 22, 2026
* feat(places-near-me): add Places near me tool and flow action - PlaceCategory and PlaceLocation tables with category/location services - Public API (places scope) for place categories and locations, plus CLI docs - Server actions and tool page with locations and categories tabs - Find nearest place location from a contact's latest location custom fields - Worker handler and flow builder "Find places near me" action * fix(places-near-me): rank a re-shared identical location as newest setValues skips writing an unchanged value, so updatedAt stayed stale and Find places near me could pick an older location from another field. Get User Data (Location) now passes touchUnchanged to refresh updatedAt without emitting a change event. * fix(places-near-me): clarify the location must be collected in the same flow * docs: remove completed superpowers plans
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PlaceCategoryandPlaceLocationtables (migration20261029013513_add_places_near_me). Deleting a category keeps its locations; they just become uncategorized.placesworkspace-token scope, plus CLI docs. The UI and the API call the same services inpackages/business/src/place-near-me.lat,lngfrom the location custom fields collected earlier in the flow, finds the nearest place (optionally within one category), and sends it as a WhatsApp location message.parseCoordinatePairmoved to@chatbotx.io/utils/coordinates.contactCustomFieldService.listValuesByKeys.RankSelectFieldgains acurrentRankprop.Migration
Adds the two tables and their indexes. Run
pnpm --filter @chatbotx.io/database db:migrate.Validation
pnpm lintpnpm turbo check-typespnpm testsuite.