Search Page Singapore
Document Feature
Title
Search page for Singapore
Description / Background
Relating to Singapore expansion plan, Singapore Partners have a different set
Objectives
- When user on singapore homepage, the search bar already selected as “Singapore”
- User only see singapore restaurants
- Filters
- Location: see the location list in the file above
- All location filter shows the result for Partners with that location as Primary Location
- Popular Zone filter shows the Partners with location in the 3 km radius of each location on the list
- Shopping Mall filter shows the Partners with location in the 1km radius of each mall on the list
- Cuisine: see the cuisine list in the file above
- Each cuisine filter shows the result for Partners with that cuisine as Primary Cuisine
- Price tiering: see the price tiering in the file above
- Stylized as $xxx - $xxx
- max higest price filter is $1500
- Location: see the location list in the file above
- Admin can see Partner’s categories by filtering by country on Restaurant tag page
- Admin can select the category for Singapore Partners
Scope
- All platforms
Sequence Diagram / Flow

ERD
Singapore expansion (2).drawio
DB Schema / Database Migration
| Column Name | Data Type | Description |
|---|---|---|
| currency code | string | Add currency code on restaurant table |
API Blueprint
| Method | Path | URL | Description | Payload |
|---|---|---|---|---|
New Query
- New money format on
app/my_lib/hh_money.rb - New phone code, if the country id currency is ‘Singapore’ so it will return
+65as phone code - New country id and country code on manage restaurant params, get country id and code from method
find_country_id_currencythe default country was Thailand, but if the data have lat and lng we will search country usingGeocoder.search([lat, lng]).first.countryand if the country name exists on database, we will search for the country ID and code. - New relation from country to ticket groups and restaurants, from ticket group to country, and from restaurant to country
Notes, Constraint & Assumptions
TODO / Task List / Action Items
[
3.basecamp.com
https://3.basecamp.com/5190892/projects/30629624
](https://3.basecamp.com/5190892/projects/30629624)
References
https://github.com/hungryhub-team/hh-server/pull/4081/files https://github.com/hungryhub-team/hh-server/pull/4048/files