diff --git a/FloatingSpace/StrategyPart.js b/FloatingSpace/StrategyPart.js index 7841815bd..5b42a748b 100644 --- a/FloatingSpace/StrategyPart.js +++ b/FloatingSpace/StrategyPart.js @@ -749,6 +749,12 @@ function newStrategyPart () { case 'Phase': { let parent = thisObject.payload.parentNode if (parent !== undefined) { + let granParent = parent.payload.parentNode + if (granParent !== undefined) { + if (granParent.type === 'Initial Definition') { + return label + ' #' + 0 + } + } for (let i = 0; i < parent.phases.length; i++) { let phase = parent.phases[i] if (phase.id === thisObject.payload.node.id) { diff --git a/Scales/TimeScale.js b/Scales/TimeScale.js index 7d9521c4e..154b4447f 100644 --- a/Scales/TimeScale.js +++ b/Scales/TimeScale.js @@ -70,7 +70,7 @@ function newTimeScale () { if (thisObject.lenghtPercentage < STEP_SIZE) { thisObject.lenghtPercentage = STEP_SIZE } } else { thisObject.lenghtPercentage = thisObject.lenghtPercentage + STEP_SIZE - if (thisObject.lenghtPercentage > 200) { thisObject.lenghtPercentage = 200 } + if (thisObject.lenghtPercentage > 400) { thisObject.lenghtPercentage = 400 } } event.lenghtPercentage = thisObject.lenghtPercentage @@ -107,7 +107,7 @@ function newTimeScale () { const DISTANCE_BETWEEN_ARROWS = 10 const MIN_DISTANCE_FROM_CENTER = 110 const CURRENT_VALUE_DISTANCE = MIN_DISTANCE_FROM_CENTER + thisObject.lenghtPercentage - const MAX_DISTANCE_FROM_CENTER = MIN_DISTANCE_FROM_CENTER + 200 + DISTANCE_BETWEEN_ARROWS + const MAX_DISTANCE_FROM_CENTER = MIN_DISTANCE_FROM_CENTER + 400 + DISTANCE_BETWEEN_ARROWS let ARROW_DIRECTION = 0 diff --git a/StrategySpace/StrategizerGateway.js b/StrategySpace/StrategizerGateway.js index f7bf74ea5..96c28b5b0 100644 --- a/StrategySpace/StrategizerGateway.js +++ b/StrategySpace/StrategizerGateway.js @@ -46,7 +46,7 @@ function newStrategizerGateway () { } user = JSON.parse(user) - let fbSlug = 'simulator' + '-' + 'bot' + '-' + user.alias.replace('.', '') + let fbSlug = 'simulator' + '-' + user.alias.replace('.', '') graphQLServer = await axios({ url: window.canvasApp.graphQL.masterAppApiUrl, @@ -101,7 +101,7 @@ function newStrategizerGateway () { } user = JSON.parse(user) - let fbSlug = 'simulator' + '-' + 'bot' + '-' + user.alias.replace('.', '') + let fbSlug = 'simulator' + '-' + user.alias.replace('.', '') /* See if we need to update or create a new record at the strategizer */