~singpolyma/sgx-jmp

sgx-jmp/lib/tel_selections.rb -rw-r--r-- 4.7 KiB
Revert "Allow local calling area when searching for a general area like a town or state"

LCA is only allowed on number prefix and rate centre search

This reverts commit 8433c3e2df6aa066cb5952325464e6b0a3257542.
Allow local calling area when searching for a general area like a town or state
Search again if no tel selected
Merge branch 'prev'

* prev:
  Allow prev from mail-in registration
  Allow prev from invite code
  Allow prev from credit card form
  Make sure OOB comes first in payload
  Allow prev from Bitcoin registration
  Allow prev action on TelSelections search results
Allow prev action on TelSelections search results
Merge branch 'state-search'

* state-search:
  Finish state search and add test
  Add state search - for granularity & jmp-register
Finish state search and add test
Add state search - for granularity & jmp-register

Note that this is not quite complete yet, since we need to pull in the
STATE_MAP stuff used elsewhere to make it work properly.  But it will
at least work for every state/province/territory that is not Quebec
for now, which is way better than nothing.  Quebec users will get the
same fallbacks they had before.
Return exact matches only

By default bandwidth includes numbers in the "local calling area" of a search.
This is confusing, so change it to include only actual matches.
Allow lowercase state/province abbreviations

Seems like it won't overlap with other things we allow.
Merge branch 'more-tel-selection-coverage'

* more-tel-selection-coverage:
  Patch bandwidth-iris to raise useful exceptions
  More city maps
Merge branch 'rubocop'

* rubocop:
  Additional fixes for rubocop 1.10.1
  Switch to rubocop 0.89.1
Switch to rubocop 0.89.1

This is the rubocop in new Debian stable
Bandwidth is very picky about city and state/province names

So transform reasonable things into what we know Bandwidth expects.
If number search fails, send user error and ask to search again
Merge branch 'number-search'

* number-search:
  Do not direct back to website to pick new number
  Run rubocop after tests
  Add reference to option to show where the tel is
  Format tel for human reader
  Allow user to search for numbers over XMPP
  s/WebRegisterManager/TelSelections
Do not direct back to website to pick new number

Instead, if number is no longer available keep them in flow and use the number
search tool.
Add reference to option to show where the tel is
Format tel for human reader
Next