Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
3349f39
New branch and deployment for bug bash
mtwomey Sep 29, 2017
36887ce
Fix issue #994
shizhouxing Sep 30, 2017
f6706e6
Fix issue #946
shizhouxing Sep 30, 2017
b28f7d7
Fix for Code Blocks breaking in Feed
Oct 1, 2017
6e82410
Paragraph dividing fix
Oct 1, 2017
83849e2
fixes #1165 changed fonts path from absolute to relative
shubhendusaurabh Oct 1, 2017
0dcf0a1
Merge pull request #1216 from shubhendusaurabh/issue-1165
gondzo Oct 2, 2017
663053a
Merge pull request #1214 from shizhouxing/issue-946
gondzo Oct 6, 2017
5dc969f
Merge pull request #1213 from shizhouxing/issue-994
gondzo Oct 6, 2017
4c557f8
Merge branch 'test02' of git://github.com/HammadSiddiqui/connect-app …
gondzo Oct 6, 2017
a1307f5
add scrollbar to code blocks in posts
gondzo Oct 6, 2017
5ad56fb
Merge branch 'HammadSiddiqui-test02' into test02
gondzo Oct 6, 2017
c34f03a
Trial fix Issue: #990
kevinkid Oct 7, 2017
e131ed6
Fix #1221
sirakovaDimitrina Oct 9, 2017
2194af0
Github issue#1104, "Create a new project" action should consider the …
Oct 10, 2017
cb0a557
Github issue#1104, "Create a new project" action should consider the …
Oct 10, 2017
752bb65
Github issue#1104, "Create a new project" action should consider the …
Oct 10, 2017
fd75dcd
Github issue#1235, Deep link doesn't open proper page if a project wa…
Oct 10, 2017
913b29c
Merge pull request #1242 from appirio-tech/vertically-aligned-project…
Oct 10, 2017
f104bf8
Merge pull request #1256 from appirio-tech/test02
mtwomey Oct 10, 2017
16f6985
Fixed lint error
Oct 11, 2017
c71006c
Merge pull request #1260 from appirio-tech/feature/optimize-incomplet…
Oct 11, 2017
60a7a0a
Github issue#1234, Functions of the "Connect Logo", "Back", "Esc" but…
Oct 11, 2017
4b45037
Fixed bug around handling incomplete project screen and its after ste…
Oct 11, 2017
8f3e76c
Linting
Oct 11, 2017
8719188
Github issue#1234, Functions of the "Connect Logo", "Back", "Esc" but…
Oct 11, 2017
1d75c13
Merge pull request #1261 from appirio-tech/feature/sync-url-change-fo…
Oct 11, 2017
7903108
Github issue#1234, Functions of the "Connect Logo", "Back", "Esc" but…
Oct 11, 2017
0d86ada
Github issue#1234, Functions of the "Connect Logo", "Back", "Esc" but…
Oct 11, 2017
f7c78ac
Fixed lint errors
Oct 11, 2017
efb75c7
More linting
Oct 11, 2017
1c93c6f
Merge pull request #1262 from appirio-tech/feature/sync-url-change-fo…
Oct 11, 2017
047e456
Github issue#1263, Blank screen shown momentarily while project is be…
Oct 13, 2017
6df5fd3
Cleaned up circle config to not deploy feature branch.
Oct 13, 2017
7c9155f
Merge pull request #1264 from appirio-tech/feature/empty-screen-while…
Oct 13, 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
7 changes: 6 additions & 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, 'feature/back-forward-button-project-wizard']
branch: dev
owner: appirio-tech
commands:
- ./deploy.sh DEV
Expand All @@ -28,6 +28,11 @@ deployment:
owner: appirio-tech
commands:
- ./deploy.sh TEST01
test02:
branch: test02
owner: appirio-tech
commands:
- ./deploy.sh TEST02
qa:
branch: qa
owner: appirio-tech
Expand Down
2 changes: 1 addition & 1 deletion src/components/ActionCard/ActionCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Header extends React.Component{
<div className="portrait">
&nbsp;
</div>
<div className="object">
<div className="object topicBody">
<div className="card-header">
<div className="card-title">
<div>{this.props.title}</div>
Expand Down
9 changes: 9 additions & 0 deletions src/components/ActionCard/ActionCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@
&::before {
content: " · ";
}

a {
color: $tc-gray-70;
}
}

.card-status {
Expand All @@ -132,13 +136,18 @@
}
}

.topicBody{
width: calc(100% - 40px);
}

.card-body {
@include roboto;
font-size: $tc-label-lg;
color: $tc-gray-70;
line-height: $base-unit*5;
padding: 10px 0;
word-break: break-word;
overflow-x:auto;

&.comment-section {
margin-bottom: -50px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Feed/Feed.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Feed extends React.Component {
<div className="portrait">
<Avatar avatarUrl={user.photoURL} userName={authorName} />
</div>
<div className="object">
<div className="object topicBody">
<div className="card-title">
<div>{title}</div>
{self && (
Expand Down
9 changes: 9 additions & 0 deletions src/components/Home/Home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
padding-bottom: $base-unit*6;
}
.tc-btn{
color: #cfe6ff;
height:$base-unit*8;
width: $base-unit*50;
text-align: center;
Expand All @@ -79,6 +80,14 @@
font-size: $tc-label-lg;
display: block;
margin-bottom: $base-unit * 4;
&:hover {
color:#ffffff;
background-image: linear-gradient(#3996FF 0%, #127BF3 100%) !important;
}
&:active {
color:#ffffff;
background-image: linear-gradient(#3996FF 0%, #127BF3 100%) !important;
}
}
}
}
2 changes: 2 additions & 0 deletions src/components/LoadingIndicator/LoadingIndicator.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.loading-indicator {
height: 80%;
width: 100%;
min-height: 70px;
min-width: 70px;
background: 50% 50% no-repeat;
background-size: 70px 70px;
}
79 changes: 6 additions & 73 deletions src/components/TopBar/ProjectsToolBar.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
require('./ProjectsToolBar.scss')

import React, {PropTypes, Component} from 'react'
import { Link } from 'react-router'
import { connect } from 'react-redux'
import cn from 'classnames'
import _ from 'lodash'
import Modal from 'react-modal'
import { SearchBar } from 'appirio-tech-react-components'
import Filters from './Filters'

import ModalControl from '../ModalControl'
import SVGIconImage from '../SVGIconImage'
import CoderBot from '../CoderBot/CoderBot'
import ProjectWizard from '../../projects/create/components/ProjectWizard'

import { createProjectWithStatus as createProjectAction } from '../../projects/actions/project'
import { projectSuggestions, loadProjects } from '../../projects/actions/loadProjects'
import {
ROLE_CONNECT_COPILOT,
ROLE_CONNECT_MANAGER,
ROLE_ADMINISTRATOR,
PROJECT_STATUS_IN_REVIEW
ROLE_ADMINISTRATOR
} from '../../config/constants'


Expand All @@ -28,18 +21,14 @@ class ProjectsToolBar extends Component {
constructor(props) {
super(props)
this.state = {
isCreateProjectModalVisible : false,
errorCreatingProject: false,
isFilterVisible: false
}
this.applyFilters = this.applyFilters.bind(this)
this.toggleFilter = this.toggleFilter.bind(this)
this.showCreateProjectDialog = this.showCreateProjectDialog.bind(this)
this.hideCreateProjectDialog = this.hideCreateProjectDialog.bind(this)
this.handleTermChange = this.handleTermChange.bind(this)
this.handleSearch = this.handleSearch.bind(this)
this.handleMyProjectsFilter = this.handleMyProjectsFilter.bind(this)
this.createProject = this.createProject.bind(this)
this.onLeave = this.onLeave.bind(this)
}

Expand All @@ -51,7 +40,6 @@ class ProjectsToolBar extends Component {
this.setState({
isProjectDirty : false
}, () => {
this.hideCreateProjectDialog()
this.props.router.push('/projects/' + nextProps.project.id)
})
} else {
Expand Down Expand Up @@ -103,26 +91,6 @@ class ProjectsToolBar extends Component {
this.applyFilters({memberOnly: event.target.checked})
}

showCreateProjectDialog() {
this.setState({
isCreateProjectModalVisible : true
})
}

hideCreateProjectDialog() {
let confirm = true
if (this.state.isProjectDirty) {
confirm = window.confirm('You have unsaved changes. Are you sure you want to leave?')
}
if (confirm === true) {
this.setState({
isProjectDirty: false,
isCreateProjectModalVisible : false,
errorCreatingProject: false
})
}
}

applyFilters(filter) {
const criteria = _.assign({}, this.props.criteria, filter)
if (criteria && criteria.keyword) {
Expand Down Expand Up @@ -155,62 +123,27 @@ class ProjectsToolBar extends Component {
this.props.loadProjects(criteria, page)
}

createProject(project) {
this.props.createProjectAction(project, PROJECT_STATUS_IN_REVIEW)
}

shouldComponentUpdate(nextProps, nextState) {
const { user, criteria, creatingProject, projectCreationError, searchTermTag } = this.props
const { isCreateProjectModalVisible, errorCreatingProject, isFilterVisible } = this.state
const { errorCreatingProject, isFilterVisible } = this.state
return nextProps.user.handle !== user.handle
|| JSON.stringify(nextProps.criteria) !== JSON.stringify(criteria)
|| nextProps.creatingProject !== creatingProject
|| nextProps.projectCreationError !== projectCreationError
|| nextProps.searchTermTag !== searchTermTag
|| nextState.isCreateProjectModalVisible !== isCreateProjectModalVisible
|| nextState.errorCreatingProject !== errorCreatingProject
|| nextState.isFilterVisible !== isFilterVisible
}

render() {
const { logo, userMenu, userRoles, criteria, isPowerUser } = this.props
const { isCreateProjectModalVisible, errorCreatingProject, isFilterVisible } = this.state
const { isFilterVisible } = this.state
const isLoggedIn = userRoles && userRoles.length

const noOfFilters = _.keys(criteria).length - 1 // -1 for default sort criteria

return (
<div className="ProjectsToolBar">
<Modal
isOpen={ isCreateProjectModalVisible }
className="project-creation-dialog"
overlayClassName="project-creation-dialog-overlay"
onRequestClose={ this.hideCreateProjectDialog }
contentLabel=""
>
<ModalControl
className="escape-button"
icon={<SVGIconImage filePath="x-mark" />}
label="esc"
onClick={ this.hideCreateProjectDialog }
/>
{ !errorCreatingProject &&
<ProjectWizard
showModal={ false }
processing={ this.props.creatingProject }
createProject={ this.createProject }
closeModal={ this.hideCreateProjectDialog }
userRoles={ userRoles }
onProjectUpdate={ (updatedProject, dirty=true) => {
this.setState({
isProjectDirty: dirty
})
}
}
/>
}
{ errorCreatingProject && <CoderBot code={ 500 } message="Unable to create project" />}
</Modal>
<div className="primary-toolbar">
{ logo }
{
Expand Down Expand Up @@ -240,7 +173,7 @@ class ProjectsToolBar extends Component {
{
!!isLoggedIn &&
<div>
<a onClick={ this.showCreateProjectDialog } href="javascript:" className="tc-btn tc-btn-sm tc-btn-primary">+ New Project</a>
<Link to="/new-project" className="tc-btn tc-btn-sm tc-btn-primary">+ New Project</Link>
</div>
}
{ userMenu }
Expand Down Expand Up @@ -289,6 +222,6 @@ const mapStateToProps = ({ projectSearchSuggestions, searchTerm, projectSearch,
}
}

const actionsToBind = { projectSuggestions, loadProjects, createProjectAction }
const actionsToBind = { projectSuggestions, loadProjects }

export default connect(mapStateToProps, actionsToBind)(ProjectsToolBar)
2 changes: 1 addition & 1 deletion src/config/projectWizard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const products = {
details: 'Translate designs to a web (HTML/CSS/JavaScript) or mobile prototype',
icon: 'product-dev-prototype',
id: 'visual_prototype',
aliases: ['visual-prototype','visual_prototype'],
aliases: ['visual-prototype', 'visual_prototype'],
disabled: true
},
'Front-end': {
Expand Down
8 changes: 1 addition & 7 deletions src/projects/create/components/FillProjectDetails.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import _ from 'lodash'
import React, { PropTypes as PT, Component } from 'react'
import { Link } from 'react-router'
import Sticky from 'react-stickynode'

import config from '../../../config/projectWizard'
import SVGIconImage from '../../../components/SVGIconImage'
import './FillProjectDetails.scss'
import ProjectBasicDetailsForm from '../components/ProjectBasicDetailsForm'
import ProjectOutline from '../components/ProjectOutline'
Expand Down Expand Up @@ -34,9 +32,7 @@ class FillProjectDetails extends Component {
}

render() {
const { project, dirtyProject, processing, submitBtnText, userRoles } = this.props
const isLoggedIn = userRoles && userRoles.length
const logoTargetUrl = isLoggedIn ? '/projects' : '/'
const { project, dirtyProject, processing, submitBtnText } = this.props
const product = _.get(project, 'details.products[0]')
const projectTypeId = _.get(project, 'type')
const subConfig = config[_.findKey(config, {id : projectTypeId})]
Expand All @@ -49,8 +45,6 @@ class FillProjectDetails extends Component {
return (
<div className="FillProjectDetailsWrapper">
<div className="header headerFillProjectDetails">
{ !isLoggedIn && <Link className="logo" to={logoTargetUrl} target="_self"><SVGIconImage filePath="connect-logo-mono" className="connectLogo"/></Link>}
{ !isLoggedIn && <button className="tc-btn tc-btn-default tc-btn-sm" onClick={ this.props.onChangeProjectType }><SVGIconImage filePath="arrows-undo" />Change project type</button> }
</div>
<div className="FillProjectDetails">
<div className="header">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import React, { PropTypes as PT } from 'react'
import { Link } from 'react-router'
import SVGIconImage from '../../../components/SVGIconImage'
import './IncompleteProjectConfirmation.scss'

function IncompleteProjectConfirmation({ loadIncompleteProject, removeIncompleteProject, userRoles }) {
const isLoggedIn = userRoles && userRoles.length
const logoTargetUrl = isLoggedIn ? '/projects' : '/'
function IncompleteProjectConfirmation({ loadIncompleteProject, removeIncompleteProject }) {
// const isLoggedIn = userRoles && userRoles.length
return (
<div className="IncompleteProjectConfirmation">
<div className="header">
{ !isLoggedIn && <Link className="logo" to={logoTargetUrl} target="_self"><SVGIconImage filePath="connect-logo-mono" className="connectLogo"/></Link>}
<SVGIconImage filePath="connect-logo-mono" className="connectLogo"/>
</div>
<h3>Welcome back!</h3>
<h5>You started a project with us recently.</h5>
Expand Down
1 change: 1 addition & 0 deletions src/projects/create/components/ProjectOutline.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
margin-top: $base-unit * 4;
margin-bottom: $base-unit * 4;
word-break: break-all;
white-space: pre-line;
}

.project-meta-data {
Expand Down
Loading