diff --git a/source/components/CDDIntro.js b/source/components/CDDIntro.js index 9f9b3261e..168b9b9e4 100644 --- a/source/components/CDDIntro.js +++ b/source/components/CDDIntro.js @@ -19,10 +19,10 @@ export default () => (

Ce simulateur calcule pour vous les 4 éléments de ce surcoût :

Par simplification, ces éléments sont tous calculés par mois de contrat.

diff --git a/source/components/Rule.js b/source/components/Rule.js index 24f2b5da9..4496f757d 100644 --- a/source/components/Rule.js +++ b/source/components/Rule.js @@ -1,12 +1,10 @@ import React, { Component } from 'react' // import {findRuleByName} from '../engine/rules.js' -import {analyseSituation} from '../engine/traverse' import './Rule.css' import JSONTree from 'react-json-tree' import R from 'ramda' import PageTypeIcon from './PageTypeIcon' import {connect} from 'react-redux' -import {formValueSelector} from 'redux-form' import mockSituation from '../engine/mockSituation.yaml' import {START_CONVERSATION} from '../actions' import classNames from 'classnames' diff --git a/source/engine/traverse.js b/source/engine/traverse.js index 79bc88800..202b34246 100644 --- a/source/engine/traverse.js +++ b/source/engine/traverse.js @@ -78,6 +78,7 @@ let fillVariableNode = (rule, situationGate) => (parseResult) => { category: 'variable', fragments: fragments, variableName, + name: variableName, type: 'boolean | numeric', explanation: parsedRule, missingVariables: (variableIsRule || known) ? [] : [variableName], @@ -90,7 +91,6 @@ let fillVariableNode = (rule, situationGate) => (parseResult) => { } let treat = (situationGate, rule) => rawNode => { -// console.log('rawNode', rawNode) let reTreat = treat(situationGate, rule) if (R.is(String)(rawNode)) { @@ -253,7 +253,7 @@ let treat = (situationGate, rule) => rawNode => { value={result.nodeValue} child={ } /> @@ -353,7 +353,7 @@ let treat = (situationGate, rule) => rawNode => { value={node.nodeValue} child={ } /> @@ -450,17 +450,17 @@ let treat = (situationGate, rule) => rawNode => { value={nodeValue} child={