Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
4f5b38e
Github issue#1102, Process/add ref code from deep link
Aug 9, 2017
6eaa479
Fixed lint error
Aug 9, 2017
a89573c
Merge pull request #1103 from appirio-tech/feature/refcode-from-query…
Aug 9, 2017
77b68b3
Merge branch 'dev-circleci' into dev
mtwomey Aug 9, 2017
d57aa62
FIx box shadow around the box in the specification page
sirakovaDimitrina Aug 9, 2017
2b52855
Github issue#1035, URL does not change when selecting project from "N…
Aug 10, 2017
c19210d
Merge pull request #1108 from appirio-tech/feature/change-url-for-wiz…
Aug 10, 2017
da616a5
Github issue#1102, Process/add ref code from deep link
Aug 10, 2017
e741586
Merge branch 'dev' into feature/refcode-from-query-param
Aug 10, 2017
d9957dc
Merge pull request #1109 from appirio-tech/feature/refcode-from-query…
Aug 10, 2017
3320e02
Github issue#1106, Add IBM chatbot as a project type
Aug 10, 2017
1c023af
Temp deploy to dev
Aug 10, 2017
31d42dc
Merge branch 'dev' into feature/chatbot-product-type
Aug 10, 2017
9dc19c9
fixed lint error
Aug 10, 2017
24fd5a1
Github issue#1106, Add IBM chatbot as a project type
Aug 11, 2017
fdddd8b
small README fix
dmessing Aug 11, 2017
a19689f
Github issue#1102, Process/add ref code from deep link
Aug 11, 2017
c5f95c9
Merge pull request #1113 from appirio-tech/feature/refcode-from-query…
Aug 11, 2017
0abcb32
Merge branch 'dev' into feature/chatbot-product-type
Aug 11, 2017
e0d5f02
Github issue#1037, Project spec information is not saved when changin…
Aug 14, 2017
2d42d35
Fixed lint error
Aug 14, 2017
4759d70
Merge pull request #1115 from appirio-tech/feature/retain-common-info…
Aug 14, 2017
e4e5e92
Github issue#1037, Project spec information is not saved when changin…
Aug 14, 2017
e444cb9
Merge pull request #1117 from appirio-tech/feature/retain-common-info…
Aug 14, 2017
6504ba9
Merge branch 'dev' into feature/chatbot-product-type
Aug 14, 2017
82f38d6
IBM => Watson
Aug 14, 2017
c6ce98e
fix #1092
sirakovaDimitrina Aug 14, 2017
39903e8
copy change for watson chatbot
Aug 16, 2017
6be9906
Merge pull request #1119 from appirio-tech/feature/chatbot-product-type
Aug 16, 2017
6b12cbd
Merge pull request #1112 from appirio-tech/README-FIX
Aug 16, 2017
d7d9f4b
Removed feature branch from being deployed to dev
Aug 16, 2017
b043ae3
Github issue#1033, Other Design's Project Name field error message is…
Aug 16, 2017
5fa523f
Merge pull request #1120 from appirio-tech/feature/github-1033-copy-c…
Aug 16, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Install dependencies by running the following in the root of the project:
- **Note:** You must use npm 3. Type `npm -v` to ensure you have a 3.x version.

## NPM Commands
- To run locally, run `npm start` and head to `http://localhost:3000/search/challenges`
- To run locally, run `npm start` and head to `http://localhost:3000/new_project`
- Run tests with `npm test` or use `npm run test:watch` to rerun tests after files change
- To make sure your code passes linting: `npm run lint`
- To create the build: `npm run build`
Expand Down
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ compile:

deployment:
development:
branch: dev
branch: [dev]
owner: appirio-tech
commands:
- ./deploy.sh DEV
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"react": "^15.6.1",
"react-addons-css-transition-group": "^15.6.0",
"react-addons-pure-render-mixin": "^15.6.0",
"query-string": "^4.3.4",
"react-color": "^2.13.1",
"react-datetime": "2.7.1",
"react-dom": "^15.6.1",
Expand Down
21 changes: 21 additions & 0 deletions src/assets/images/product-chatbot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/App/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

body {
min-width: 320px;
background-color: $tc-gray-neutral-dark;
background-color: $tc-gray-neutral-light;
}

.ReactModal__Body--open {
Expand Down
6 changes: 5 additions & 1 deletion src/components/TopBar/ProjectsToolBar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ $tc-body-large : 20px;
display: flex;
align-items: center;
// justify-content: center;
padding: 5px 2*$base-unit 5px 34px;
padding: 0 2*$base-unit 0 34px;
text-align: left;
color: $tc-gray-40;
background-color: transparent;
border-radius: 2px;
border: 0;
font-size: 12px;
position: relative;
&:before{
Expand Down Expand Up @@ -173,6 +174,9 @@ $tc-body-large : 20px;
top: 12px;
z-index: 22;/* +1 from z-index of the modal overlay */
}
.FillProjectDetails .header {
margin: 35px 0 0;
}
}

.project-creation-dialog {
Expand Down
2 changes: 2 additions & 0 deletions src/config/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,5 @@ export const MAINTENANCE_MODE = false
export const LS_INCOMPLETE_PROJECT = 'incompleteProject'

export const CONNECT_MESSAGE_API_URL = process.env.CONNECT_MESSAGE_API_URL || TC_API_URL

export const NEW_PROJECT_PATH = '/new-project'
4 changes: 2 additions & 2 deletions src/config/projectQuestions/app_dev.v1.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const sections = [
{
id: 'projectName',
required: true,
validationError: 'Please provide a name to your project',
validationError: 'Please provide a name for your project',
fieldName: 'name',
description: '',
title: 'Project Name',
Expand Down Expand Up @@ -240,7 +240,7 @@ export const basicSections = [
{
id: 'projectName',
required: true,
validationError: 'Please provide a name to your project',
validationError: 'Please provide a name for your project',
fieldName: 'name',
description: '',
title: 'Project Name',
Expand Down
4 changes: 2 additions & 2 deletions src/config/projectQuestions/avd.v1.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const sections = [
{
id: 'projectName',
required: true,
validationError: 'Please provide a name to your project',
validationError: 'Please provide a name for your project',
fieldName: 'name',
description: '',
title: 'Project Name',
Expand Down Expand Up @@ -239,7 +239,7 @@ export const basicSections = [
{
id: 'projectName',
required: true,
validationError: 'Please provide a name to your project',
validationError: 'Please provide a name for your project',
fieldName: 'name',
description: '',
title: 'Project Name',
Expand Down
257 changes: 257 additions & 0 deletions src/config/projectQuestions/ibm_chatbot.v1.0.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,257 @@
import _ from 'lodash'
// import { Icons } from 'appirio-tech-react-components'
import { findProduct} from '../projectWizard'

const isFileRequired = (project, subSections) => {
const subSection = _.find(subSections, (s) => s.type === 'questions')
const fields = _.filter(subSection.questions, q => q.type.indexOf('see-attached') > -1)
// iterate over all seeAttached type fields to check
// if any see attached is checked.
return _.some(_.map(
_.map(fields, 'fieldName'),
fn => _.get(project, `${fn}.seeAttached`)
))
}

const sections = [
{
id: 'appDefinition',
title: (project, showProduct) => {
const product = _.get(project, 'details.products[0]')
if (showProduct && product) {
const prd = findProduct(product)
if (prd) return prd
}
return 'Definition'
},
required: true,
description: 'Please answer a few basic questions about your project. You can also provide the needed information in a supporting document--add a link in the notes section or upload it below.',
subSections: [
{
id: 'projectName',
required: true,
validationError: 'Please provide a name for your project',
fieldName: 'name',
description: '',
title: 'Project Name',
type: 'project-name'
},
{
id: 'questions',
required: true,
hideTitle: true,
title: 'Questions',
description: '',
type: 'questions',
questions: [
{
icon: 'question',
title: 'Are you an existing Watson Virtual Assistant customer?',
description: '',
fieldName: 'details.appDefinition.existingWatsonCustomer',
type: 'checkbox',
options: [
{value: 'true', title: 'Yes'},
{value: 'false', title: 'No'},
]
},
{
id: 'projectInfo',
required: true,
fieldName: 'description',
description: 'Brief Description',
title: 'Description',
type: 'textbox'
},
{
icon: 'question',
title: 'Do you have an existing IBM Bluemix account?',
description: '',
type: 'radio-group',
fieldName: 'details.appDefinition.hasBluemixAccount',
options: [
{value: 'true', label: 'Yes'},
{value: 'false', label: 'No'}
]
},
{
icon: 'question',
title: 'What capabilities does the chatbot need to support? (check all that apply)',
description: '',
type: 'checkbox-group',
fieldName: 'details.appDefinition.capabilities',
options: [
{value: 'order_management', label: 'Order Management'},
{value: 'information', label: 'Information'},
{value: 'help', label: 'Help'},
{value: 'complaints', label: 'Complaints'},
{value: 'billing', label: 'Billing'},
{value: 'account_management', label: 'Account Management'},
{value: 'custom', label: 'Custom'}
],
},
{
icon: 'question',
title: 'Will the chatbot need to provide data from any systems to support the capabilities you listed above?',
description: '',
type: 'radio-group',
fieldName: 'details.appDefinition.integrationSystems',
options: [
{value: 'true', label: 'Yes'},
{value: 'false', label: 'No'}
]
},
{
icon: 'question',
title: 'Do you have existing agent scripts?',
description: '',
type: 'radio-group',
fieldName: 'details.appDefinition.existingAgentScripts',
options: [
{value: 'true', label: 'Yes'},
{value: 'false', label: 'No'}
]
},
{
icon: 'question',
title: 'Are you planning to transfer conversations to human agents?',
description: '',
type: 'radio-group',
fieldName: 'details.appDefinition.transferToHumanAgents',
options: [
{value: 'true', label: 'Yes'},
{value: 'false', label: 'No'}
]
}
]
},
{
id: 'notes',
fieldName: 'details.appDefinition.notes',
title: 'Notes',
description: 'Add any other important information regarding your project (e.g., links to documents or existing applications, budget or timing constraints)',
type: 'notes'
},
{
id: 'files',
required: isFileRequired,
title: (project) => `Project Files (${_.get(project, 'attachments', []).length})` || 'Files',
description: '',
type: 'files',
fieldName: 'attachments'
}
]
}
]

export default sections

export const basicSections = [
{
id: 'appDefinition',
title: '',
required: true,
description: 'Please answer a few basic questions about your project and, as an option, add links to supporting documents in the “Notes” section. If you have any files to upload, you’ll be able to do so later.',
subSections: [
{
id: 'projectName',
required: true,
validationError: 'Please provide a name for your project',
fieldName: 'name',
description: '',
title: 'Project Name',
type: 'project-name'
},
{
id: 'questions',
required: true,
hideTitle: true,
title: 'Questions',
description: '',
type: 'questions',
questions: [
{
id: 'projectInfo',
required: true,
fieldName: 'description',
description: 'Brief Description',
title: 'Description',
type: 'textbox'
},
{
icon: 'question',
required: true,
title: 'Are you an existing Watson Virtual Assistant customer?',
description: '',
fieldName: 'details.appDefinition.existingWatsonCustomer',
type: 'radio-group',
options: [
{value: 'true', label: 'Yes'},
{value: 'false', label: 'No'},
]
},
{
icon: 'question',
required: true,
title: 'Do you have an existing IBM Bluemix account?',
description: '',
type: 'radio-group',
fieldName: 'details.appDefinition.hasBluemixAccount',
options: [
{value: 'true', label: 'Yes'},
{value: 'false', label: 'No'}
]
},
{
icon: 'question',
// required: true,
title: 'What capabilities does the chatbot need to support?',
description: '',
type: 'checkbox-group',
fieldName: 'details.appDefinition.capabilities',
options: [
{value: 'order_management', label: 'Order management'},
{value: 'information', label: 'Information'},
{value: 'help', label: 'Help'},
{value: 'complaints', label: 'Complaints'},
{value: 'billing', label: 'Billing'},
{value: 'account_management', label: 'Account management'},
{value: 'custom', label: 'Custom (please explain in the Notes)'}
],
},
{
icon: 'question',
required: true,
title: 'Will the chatbot need to access data from any systems to support the capabilities you listed above? If so, please list the systems below. (Change to text box)',
description: '',
type: 'textbox',
fieldName: 'details.appDefinition.integrationSystems'
},
{
icon: 'question',
required: true,
title: 'Do you have any example agent conversations you can provide? If so, please paste them or any links to documents below (you’ll be able to upload documents later).',
description: '',
type: 'textbox',
fieldName: 'details.appDefinition.existingAgentScripts'
},
{
icon: 'question',
required: true,
title: 'Are you planning to transfer conversations to human agents? If so, please list the agents’ communication tools (e.g., Slack, LiveAgent, Intercom, etc.)',
description: '',
type: 'textbox',
fieldName: 'details.appDefinition.transferToHumanAgents'
}
]
},
{
id: 'notes',
fieldName: 'details.appDefinition.notes',
title: 'Notes',
description: 'Add any other important information regarding your project (e.g., links to documents or existing applications, budget or timing constraints)',
type: 'notes'
}
]
}
]
Loading