Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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
  • 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

flow singapore search (1).pdf

ERD

Singapore expansion (2).drawio

DB Schema / Database Migration

Column NameData TypeDescription
currency codestringAdd currency code on restaurant table

API Blueprint

MethodPathURLDescriptionPayload

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 +65 as phone code
  • New country id and country code on manage restaurant params, get country id and code from method find_country_id_currency the default country was Thailand, but if the data have lat and lng we will search country using Geocoder.search([lat, lng]).first.country and 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://www.figma.com/file/9lSyZO3C1Un0PSgWAEy24U/New-Filter-(Market-Place)?node-id=201%3A4452&t=wbZltsPsUO4IAhkF-1

https://github.com/hungryhub-team/hh-server/pull/4081/files https://github.com/hungryhub-team/hh-server/pull/4048/files

Change History