Skip to content

Commit 6db886c

Browse files
authored
Merge pull request #318 from devtron-labs/chore/sync-main-dt19
chore: sync main dt19
2 parents 9775886 + b054d4a commit 6db886c

File tree

4 files changed

+61
-55
lines changed

4 files changed

+61
-55
lines changed

.github/semantic.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
titleOnly: true
2+
3+
types:
4+
- fix
5+
- feat
6+
- feature
7+
- fixes
8+
- chore
9+
- perf
10+
- docs
11+
- doc
12+
- release
13+
- misc

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "0.3.13",
3+
"version": "0.3.14",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Shared/Components/CICDHistory/Artifacts.tsx

Lines changed: 45 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -153,32 +153,6 @@ const Artifacts = ({
153153
if (status.toLowerCase() === TERMINAL_STATUS_MAP.RUNNING || status.toLowerCase() === TERMINAL_STATUS_MAP.STARTING) {
154154
return <CIProgressView />
155155
}
156-
if (!blobStorageEnabled) {
157-
return (
158-
<div className="flex column p-24 w-100 h-100">
159-
<GenericEmptyState
160-
title={EMPTY_STATE_STATUS.ARTIFACTS_EMPTY_STATE_TEXTS.NoFilesFound}
161-
subTitle={EMPTY_STATE_STATUS.ARTIFACTS_EMPTY_STATE_TEXTS.BlobStorageNotConfigured}
162-
image={noartifact}
163-
/>
164-
<div className="flexbox pt-8 pr-12 pb-8 pl-12 bcv-1 ev-2 bw-1 br-4 dc__position-abs-b-20">
165-
<ICHelpOutline className="icon-dim-20 fcv-5" />
166-
<span className="fs-13 fw-4 mr-8 ml-8">
167-
{EMPTY_STATE_STATUS.ARTIFACTS_EMPTY_STATE_TEXTS.StoreFiles}
168-
</span>
169-
<a
170-
className="fs-13 fw-6 cb-5 dc__no-decor"
171-
href={DOCUMENTATION.BLOB_STORAGE}
172-
target="_blank"
173-
rel="noreferrer"
174-
>
175-
{EMPTY_STATE_STATUS.ARTIFACTS_EMPTY_STATE_TEXTS.ConfigureBlobStorage}
176-
</a>
177-
<OpenInNew className="icon-dim-20 ml-8" />
178-
</div>
179-
</div>
180-
)
181-
}
182156
if (
183157
status.toLowerCase() === TERMINAL_STATUS_MAP.FAILED ||
184158
status.toLowerCase() === TERMINAL_STATUS_MAP.CANCELLED ||
@@ -200,7 +174,7 @@ const Artifacts = ({
200174
/>
201175
)
202176
}
203-
if (!artifactId && status.toLowerCase() === TERMINAL_STATUS_MAP.SUCCEEDED && !isJobView) {
177+
if (!artifactId && status.toLowerCase() === TERMINAL_STATUS_MAP.SUCCEEDED) {
204178
return (
205179
<GenericEmptyState
206180
title={EMPTY_STATE_STATUS.ARTIFACTS_EMPTY_STATE_TEXTS.NoArtifactsFound}
@@ -210,8 +184,8 @@ const Artifacts = ({
210184
)
211185
}
212186
return (
213-
<div className={`flex left column dc__gap-12 dc__content-start ${rootClassName ?? ''}`}>
214-
{!isJobView && type !== HistoryComponentType.CD && (
187+
<>
188+
<div className={`flex left column dc__gap-12 dc__content-start ${rootClassName ?? ''}`}>
215189
<CIListItem
216190
type="artifact"
217191
ciPipelineId={ciPipelineId}
@@ -239,30 +213,49 @@ const Artifacts = ({
239213
</div>
240214
</div>
241215
</CIListItem>
216+
{blobStorageEnabled &&
217+
downloadArtifactUrl &&
218+
(type === HistoryComponentType.CD || isArtifactUploaded || isJobView) && (
219+
<CIListItem
220+
type="report"
221+
hideImageTaggingHardDelete={hideImageTaggingHardDelete}
222+
isSuperAdmin={isSuperAdmin}
223+
renderCIListHeader={renderCIListHeader}
224+
>
225+
<div className="flex column left">
226+
<div className="cn-9 fs-14">Reports.zip</div>
227+
<button
228+
type="button"
229+
onClick={handleArtifact}
230+
className="anchor p-0 cb-5 fs-12 flex left pointer"
231+
>
232+
Download
233+
<Download className="ml-5 icon-dim-16" />
234+
</button>
235+
</div>
236+
</CIListItem>
237+
)}
238+
</div>
239+
{!blobStorageEnabled && (
240+
<div className="flexbox dc__position-abs-b-20 dc__content-center w-100">
241+
<div className="flexbox pt-8 pr-12 pb-8 pl-12 bcv-1 ev-2 bw-1 br-4">
242+
<ICHelpOutline className="icon-dim-20 fcv-5" />
243+
<span className="fs-13 fw-4 mr-8 ml-8">
244+
{EMPTY_STATE_STATUS.ARTIFACTS_EMPTY_STATE_TEXTS.StoreFiles}
245+
</span>
246+
<a
247+
className="fs-13 fw-6 cb-5 dc__no-decor"
248+
href={DOCUMENTATION.BLOB_STORAGE}
249+
target="_blank"
250+
rel="noreferrer"
251+
>
252+
{EMPTY_STATE_STATUS.ARTIFACTS_EMPTY_STATE_TEXTS.ConfigureBlobStorage}
253+
</a>
254+
<OpenInNew className="icon-dim-20 ml-8" />
255+
</div>
256+
</div>
242257
)}
243-
{blobStorageEnabled &&
244-
downloadArtifactUrl &&
245-
(type === HistoryComponentType.CD || isArtifactUploaded || isJobView) && (
246-
<CIListItem
247-
type="report"
248-
hideImageTaggingHardDelete={hideImageTaggingHardDelete}
249-
isSuperAdmin={isSuperAdmin}
250-
renderCIListHeader={renderCIListHeader}
251-
>
252-
<div className="flex column left">
253-
<div className="cn-9 fs-14">Reports.zip</div>
254-
<button
255-
type="button"
256-
onClick={handleArtifact}
257-
className="anchor p-0 cb-5 fs-12 flex left pointer"
258-
>
259-
Download
260-
<Download className="ml-5 icon-dim-16" />
261-
</button>
262-
</div>
263-
</CIListItem>
264-
)}
265-
</div>
258+
</>
266259
)
267260
}
268261

0 commit comments

Comments
 (0)