Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ workflows:
- build-dev
filters:
branches:
only: ['dev', 'feature/project-plan-simplification-0']
only: ['dev', 'feature/cf-2.20']

- deployTest01:
context : org-global
Expand Down
4 changes: 3 additions & 1 deletion src/components/TeamManagement/TeamManagement.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,10 @@ class TeamManagement extends React.Component {
const copilotRemoveAction = hasPermission(PERMISSIONS.REMOVE_COPILOTS)
const copilotViewAction = hasPermission(PERMISSIONS.VIEW_COPILOTS)
const canRequestCopilot = hasPermission(PERMISSIONS.REQUEST_COPILOTS)
const canManageCopilots = hasPermission(PERMISSIONS.MANAGE_COPILOTS)
const copilotRequestLink = `https://topcoder.typeform.com/to/YJ7AL4p8#handle=${currentUser.handle}&projectid=${projectId}`
const canJoinTopcoderTeam = !currentMember && hasPermission(PERMISSIONS.JOIN_TOPCODER_TEAM)
const hasCopilot = members.some(member => member.role === 'copilot')

const sortedMembers = members
let projectTeamInviteCount = 0
Expand Down Expand Up @@ -194,7 +196,7 @@ class TeamManagement extends React.Component {
<div className="projects-team">
<div className="title">
<span styleName="title-text">Copilot</span>
{(copilotTeamManageAction || copilotRemoveAction || copilotViewAction) &&
{((copilotTeamManageAction || copilotRemoveAction || copilotViewAction) && (canManageCopilots || hasCopilot)) &&
<span className="title-action" onClick={() => onShowCopilotDialog(true)}>
{(copilotTeamManageAction || copilotRemoveAction) ? 'Manage' : 'View'}
</span>
Expand Down
4 changes: 4 additions & 0 deletions src/components/TeamManagement/TeamManagement.scss
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,10 @@
display: flex;
flex-wrap: wrap;
flex-direction: column;

div {
align-items: center;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,14 @@ class CreatePhaseForm extends React.Component {

const phaseData = {
title: model.title,
description: model.description || ' ',
startDate: moment(model.startDate),
endDate: moment(model.endDate),
}

if (model.description.trim()) {
phaseData.description = model.description
}

const apiMilestones = milestones.map((milestone, index) => ({
// default values
...MILESTONE_DEFAULT_VALUES[milestone.type],
Expand Down
6 changes: 4 additions & 2 deletions src/projects/detail/components/PhaseCard/EditStageForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ class EditStageForm extends React.Component {
if (publishClicked && phase.status === PHASE_STATUS_DRAFT) {
newStatus = PHASE_STATUS_ACTIVE
}
if (!model.description.trim()) {
delete model.description
}
const updateParam = _.assign({}, model, {
description: model.description || ' ',
startDate: updatedStartDate,
endDate: updatedEndDate || '',
status: newStatus
Expand Down Expand Up @@ -285,7 +287,7 @@ class EditStageForm extends React.Component {
wrapperClass={`${styles['input-row']}`}
label="Description"
name="description"
value={phase.description ? phase.description.trim() : ''}
value={phase.description}
maxLength={255}
/>
<label styleName="description-sub-label">255 character maximum</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ class CreateMilestoneForm extends React.Component {
cancelEdit() {
const { previousMilestone } = this.props
const startDate = previousMilestone ? moment.utc(previousMilestone.completionDate || previousMilestone.endDate) : moment.utc()
this.state = {
this.setState({
isEditing: false,
type: '',
name: '',
startDate: startDate.format('YYYY-MM-DD'),
endDate: startDate.add(3, 'days').format('YYYY-MM-DD')
}
})
}

onAddClick() {
Expand Down