Skip to content

Commit

Permalink
feat: Publish an activity name in settings
Browse files Browse the repository at this point in the history
This will allow different locations to have a different prompt for the
race activity. COSI wants theirs to be called Walk not Run.

Issues: #266
  • Loading branch information
bryankennedy committed Feb 11, 2019
1 parent 045bd83 commit 68c0662
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/server-graphql/src/db/models/setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ const Setting = sequelize.define('Setting', {
latitude: { type: Sequelize.INTEGER },
longitude: { type: Sequelize.INTEGER },

// Activity name
// Some locations will be running, some will be walking, this setting allows each location
// to customize the interface word use for prompting the visitors.
activityName: { type: Sequelize.STRING },

// Milliseconds...
//
// ...of time between the run start signal, and the run actually beginning.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = {
{
location: 'smm',
usState: 'MN',
activityName: 'run',
preRunDelay: 11540,
postRunDelay: 7500,
startLineTimeout: 10000,
Expand All @@ -19,6 +20,7 @@ module.exports = {
{
location: 'cns-iu',
usState: 'IN',
activityName: 'run',
preRunDelay: 15540,
postRunDelay: 7500,
startLineTimeout: 10000,
Expand All @@ -33,6 +35,7 @@ module.exports = {
{
location: 'cosi',
usState: 'OH',
activityName: 'walk',
preRunDelay: 15540,
postRunDelay: 7500,
startLineTimeout: 10000,
Expand All @@ -47,6 +50,7 @@ module.exports = {
{
location: 'dev',
usState: 'MN',
activityName: 'walk',
preRunDelay: 2000,
runTimeout: 6000,
postRunDelay: 2000,
Expand All @@ -61,6 +65,7 @@ module.exports = {
{
location: 'demo',
usState: 'IN',
activityName: 'run',
preRunDelay: 0,
runTimeout: 6000,
postRunDelay: 500,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ type Setting {
usState: String
latitude: Float
longitude: Float
activityName: String
preRunDelay: Int
postRunDelay: Int
startLineTimeout: Int
Expand Down

0 comments on commit 68c0662

Please sign in to comment.