Skip to content

Commit c640d27

Browse files
author
Parth Shah
committed
Merge branch 'dev'
2 parents c6da221 + 7e3ece7 commit c640d27

File tree

11 files changed

+193
-96
lines changed

11 files changed

+193
-96
lines changed

src/components/ActionCard/ActionCard.scss

Lines changed: 175 additions & 85 deletions
Large diffs are not rendered by default.

src/components/MessageList/MessageList.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ class MessageList extends Component {
5656

5757
componentDidMount() {
5858
const { scrollPosition } = this.props
59+
const panelMessages = this.refs.panelMessages
60+
// 145 = 60 for topbar + 45 for panel title + 20px for margin between topbar and left panel + 10px padding
61+
panelMessages.style.height = (window.innerHeight - 145) + 'px'
5962
if (scrollPosition) {
60-
const panelMessages = this.refs.panelMessages
6163
// We use requestAnimationFrame because this function may be executed before
6264
// the DOM elements are actually drawn.
6365
// Source: http://stackoverflow.com/a/28748160

src/components/TeamManagement/AutoCompleteInput.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, {PropTypes} from 'react'
22
import ReactDOM from 'react-dom'
33
import uncontrollable from 'uncontrollable'
44
import { Avatar } from 'appirio-tech-react-components'
5+
import { AUTOCOMPLETE_TRIGGER_LENGTH } from '../../config/constants'
56

67
class AutoCompleteInput extends React.Component {
78

@@ -52,7 +53,7 @@ class AutoCompleteInput extends React.Component {
5253
return (
5354
<div className="input-icon-group tc-file-field__inputs">
5455

55-
{isPopupVisible && searchMembers.length > 0 &&
56+
{isPopupVisible && keyword.length >= AUTOCOMPLETE_TRIGGER_LENGTH && searchMembers.length > 0 &&
5657
<div className="member-dropdown">
5758
{searchMembers.map(renderMember)}
5859
</div>

src/components/TeamManagement/TeamManagement.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ $tc-body-extra-small : 12px;
153153
right: $base-unit*3;
154154
// @include icon('x-mark-big.svg');
155155
background-size: $tc-heading-extra-small;
156+
overflow: hidden;
156157
}
157158
.modal-title{
158159
@include roboto-bold;

src/config/constants.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,3 +211,5 @@ export const CODER_BOT_USER_FNAME = 'Coder'
211211
export const CODER_BOT_USER_LNAME = 'Bot'
212212

213213
export const PROJECT_MAX_COLORS = 5
214+
215+
export const AUTOCOMPLETE_TRIGGER_LENGTH = 3

src/config/projectQuestions/topcoder.v1.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const sections = [
6161
id: 'notes',
6262
fieldName: 'details.appDefinition.notes',
6363
title: 'Notes',
64-
description: 'Add any other important information regarding your project (e.g., links to documents or existing applications, budget or timeing constraints)',
64+
description: 'Add any other important information regarding your project (e.g., links to documents or existing applications, budget or timing constraints)',
6565
type: 'notes'
6666
},
6767
{
@@ -94,7 +94,7 @@ const sections = [
9494
type: 'tiled-radio-group',
9595
options: [
9696
{value: 'serif', title: 'Serif', icon: Icons.IconTcSpecTypeSerif, iconOptions: { fill: '#00000'}, desc: 'formal, old style'},
97-
{value: 'sanSerif', title: 'Sans Serif', icon: Icons.IconTcSpecTypeSerif, iconOptions: { fill: '#00000'}, desc: 'clean, modern, informal'}
97+
{value: 'sanSerif', title: 'Sans Serif', icon: Icons.IconTcSpecTypeSansSerif, iconOptions: { fill: '#00000'}, desc: 'clean, modern, informal'}
9898
],
9999
fieldName: 'details.designSpecification.fontStyle'
100100
},

src/projects/create/components/AppProjectForm.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class AppProjectForm extends Component {
110110

111111
<TCFormFields.TextInput
112112
name="newProject.details.utm.code"
113-
label="Invite code (optional)"
113+
label="Reference code (optional)"
114114
type="text"
115115
maxLength={25}
116116
wrapperClass="row center"

src/projects/create/components/GenericProjectForm.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class GenericProjectForm extends Component {
6363

6464
<TCFormFields.TextInput
6565
name="newProject.details.utm.code"
66-
label="Invite code (optional)"
66+
label="Reference code (optional)"
6767
maxLength={25}
6868
type="text"
6969
disabled={false}

src/projects/detail/components/EditProjectForm.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class EditProjectForm extends Component {
102102
/>
103103
<div className="section-footer section-footer-spec">
104104
<button className="tc-btn tc-btn-primary tc-btn-md"
105-
type="submit" disabled={!this.state.canSubmit}
105+
type="submit" disabled={!this.state.canSubmit || this.state.isSaving }
106106
>Save Changes</button>
107107
</div>
108108
</div>

src/projects/detail/components/SidebarNav.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require('./SidebarNav.scss')
88
const scrollProps = {
99
spy: true,
1010
smooth: true,
11-
offset: -10,
11+
offset: -70, // 60px for top bar and 10px for margin from nav bar
1212
duration: 500,
1313
activeClass: 'active'
1414
}

0 commit comments

Comments
 (0)