Skip to content

Commit a1a6c55

Browse files
author
Jonathan O'Donnell
authored
Merge pull request #510 from merico-dev/update-config-ui-docker-build
fix: docker build and update placeholder text
2 parents 5bed674 + 4e18148 commit a1a6c55

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

config-ui/Dockerfile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
FROM node:14-alpine
22

3-
ARG REGISTRY=https://registry.npmjs.org/
4-
COPY ./server/package.json /src/package.json
5-
3+
COPY package.json /src/package.json
64
WORKDIR /src
5+
RUN npm i
76

8-
RUN npm i --registry=${REGISTRY}
9-
10-
COPY out .
11-
COPY ./server/server.js .
7+
COPY . /src
128

13-
CMD ["npm", "run", "server"]
9+
CMD ["npm", "run", "dev"]
1410

1511
EXPOSE 4000

config-ui/pages/plugins/jira/MappingTag.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Tooltip, Position, FormGroup, Label, Tag, TagInput } from '@blueprintjs/core'
22
import styles from '../../../styles/Home.module.css'
33

4-
const MappingTag = ({labelIntent, labelName, onChange, rightElement, helperText, typeOrStatus, values}) => {
4+
const MappingTag = ({labelIntent, labelName, onChange, rightElement, helperText, typeOrStatus, values, placeholderText}) => {
55
return <>
66
<p>Issue {typeOrStatus === 'type' ? 'types' : 'statuses' } mapped to&nbsp;&nbsp;<Tag intent={labelIntent}>{labelName}</Tag></p>
77

@@ -16,7 +16,7 @@ const MappingTag = ({labelIntent, labelName, onChange, rightElement, helperText,
1616
<Tooltip content={`Map custom Jira types to main ${labelName} status`} position={Position.TOP}>
1717
<Label>
1818
<TagInput
19-
placeholder="Add Tags..."
19+
placeholder={placeholderText}
2020
values={values || []}
2121
fill={true}
2222
onChange={value => setTimeout(() => onChange([...new Set(value)]), 0)}

config-ui/pages/plugins/jira/MappingTagStatus.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const MappingTagStatus = ({reqValue, resValue, envName, clearBtnReq, clearBtnRes
55
<MappingTag
66
labelName="Rejected"
77
labelIntent="danger"
8+
placeholderText="Add Issue Statuses..."
89
values={reqValue}
910
helperText={envName}
1011
rightElement={clearBtnReq}
@@ -13,6 +14,7 @@ const MappingTagStatus = ({reqValue, resValue, envName, clearBtnReq, clearBtnRes
1314
<MappingTag
1415
labelName="Resolved"
1516
labelIntent="success"
17+
placeholderText="Add Issue Statuses..."
1618
values={resValue}
1719
helperText={envName}
1820
rightElement={clearBtnRes}

config-ui/pages/plugins/jira/index.page.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ export default function Home(props) {
225225
labelName="Bug"
226226
labelIntent="danger"
227227
typeOrStatus="type"
228+
placeholderText="Add Issue Types..."
228229
values={typeMappingBug}
229230
helperText="JIRA_ISSUE_TYPE_MAPPING"
230231
rightElement={<ClearButton onClick={() => setTypeMappingBug([])} />}
@@ -235,6 +236,7 @@ export default function Home(props) {
235236
labelName="Incident"
236237
labelIntent="warning"
237238
typeOrStatus="type"
239+
placeholderText="Add Issue Types..."
238240
values={typeMappingIncident}
239241
helperText="JIRA_ISSUE_TYPE_MAPPING"
240242
rightElement={<ClearButton onClick={() => setTypeMappingIncident([])} />}
@@ -245,6 +247,7 @@ export default function Home(props) {
245247
labelName="Requirement"
246248
labelIntent="primary"
247249
typeOrStatus="type"
250+
placeholderText="Add Issue Types..."
248251
values={typeMappingRequirement}
249252
helperText="JIRA_ISSUE_TYPE_MAPPING"
250253
rightElement={<ClearButton onClick={() => setTypeMappingRequirement([])} />}

0 commit comments

Comments
 (0)