Skip to content

Conversation

@ffjlabo
Copy link
Member

@ffjlabo ffjlabo commented Mar 10, 2022

What this PR does / why we need it:

This PR changes to show artifact versions with links.

PipeCD

PipeCD

Which issue(s) this PR fixes:

A part of #3303

Does this PR introduce a user-facing change?:

Be able to show artifact versions with links

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 32.40%. This pull request does not change code coverage.

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for javascript is 78.03%. This pull request decreases coverage by -0.04%.

File Base Head Diff
src/components/application-detail-page/application-detail/index.tsx 94.55% 92.86% -1.69%
src/components/applications-page/application-list/application-list-item/index.tsx 89.36% 87.76% -1.61%

<>
{i > 0 && ","}
<Link
href={`//${v.url}`}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should only add this // in case the url does not contain schema.
Can use v.url.includes(://) as the condition.

@nghialv
Copy link
Member

nghialv commented Mar 10, 2022

Love this!

What do you guys thing about changing the layout of the version?
For example, v0.6.0 (helloworld) -> helloworld:v0.6.0.

@nghialv
Copy link
Member

nghialv commented Mar 10, 2022

Btw, should we trim the version in case it is too long?

Like commit hash, we should show only the first 7 characters.

helloworld:36515f2... instead of helloworld:sha36515f2d60ad86cc1f7b7e8d97e935741e5cf9f1

@ffjlabo
Copy link
Member Author

ffjlabo commented Mar 10, 2022

Love this!

What do you guys thing about changing the layout of the version? For example, v0.6.0 (helloworld) -> helloworld:v0.6.0.

I see, may be helloworld:v0.6.0 style is natural for users because they often show that style in artifact files (e.g. k8s manifest).

Btw, should we trim the version in case it is too long?

Like commit hash, we should show only the first 7 characters.

helloworld:36515f2... instead of helloworld:sha36515f2d60ad86cc1f7b7e8d97e935741e5cf9f1

I agree with it!

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 32.40%. This pull request does not change code coverage.

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for javascript is 78.00%. This pull request decreases coverage by -0.06%.

File Base Head Diff
src/components/application-detail-page/application-detail/index.tsx 94.55% 92.86% -1.69%
src/components/applications-page/application-list/application-list-item/index.tsx 89.36% 87.76% -1.61%
src/modules/commands/index.ts 90.62% 93.75% +3.12%
src/modules/project/index.ts 60.38% 56.60% -3.77%

@ffjlabo
Copy link
Member Author

ffjlabo commented Mar 10, 2022

How about the above?

@nghialv
Copy link
Member

nghialv commented Mar 10, 2022

How about the above?

@khanhtc1202 @knanao what do you think?

@khanhtc1202
Copy link
Member

yeh, one vote from me. Please go ahead and address it 🙏

@ffjlabo
Copy link
Member Author

ffjlabo commented Mar 10, 2022

These are after fixed.

PipeCD

PipeCD

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 32.40%. This pull request does not change code coverage.

@khanhtc1202
Copy link
Member

nits, I think we should only trim the long text as it's a table cell content. On the detail page, we should just show it clearly, wdyt?

@nghialv
Copy link
Member

nghialv commented Mar 10, 2022

nits, I think we should only trim the long text as it's a table cell content. On the detail page, we should just show it clearly, wdyt?

I feel the same too. And maybe we also should split them into multiple lines on the application detail page.

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for javascript is 77.98%. This pull request decreases coverage by -0.09%.

File Base Head Diff
src/components/applications-page/application-list/application-list-item/index.tsx 89.36% 87.76% -1.61%
src/modules/project/index.ts 60.38% 56.60% -3.77%
src/components/application-detail-page/application-detail/index.tsx 94.55% 92.86% -1.69%

@ffjlabo
Copy link
Member Author

ffjlabo commented Mar 10, 2022

I see! Then I'll fix to truncate it in case the long text over the size of the table cell.

@ffjlabo
Copy link
Member Author

ffjlabo commented Mar 10, 2022

On the detail page, I fixed it to show full version info and split them into multiple lines.
PipeCD

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 32.40%. This pull request does not change code coverage.

@nghialv
Copy link
Member

nghialv commented Mar 10, 2022

Looks beautiful! ❤️
/lgmt

@nghialv
Copy link
Member

nghialv commented Mar 10, 2022

/lgtm

@ffjlabo
Copy link
Member Author

ffjlabo commented Mar 10, 2022

sorry I found some mistakes, so I'll fix

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for javascript is 78.03%. This pull request decreases coverage by -0.04%.

File Base Head Diff
src/components/application-detail-page/application-detail/index.tsx 94.55% 92.86% -1.69%
src/components/applications-page/application-list/application-list-item/index.tsx 89.36% 87.76% -1.61%

@pipecd-bot pipecd-bot removed the lgtm label Mar 10, 2022
@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 32.40%. This pull request does not change code coverage.

@ffjlabo
Copy link
Member Author

ffjlabo commented Mar 10, 2022

I fixed, PTAL. 🙇

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for javascript is 78.06%. This pull request decreases coverage by -0.01%.

File Base Head Diff
src/components/application-detail-page/application-detail/index.tsx 94.55% 92.86% -1.69%
src/components/applications-page/application-list/application-list-item/index.tsx 89.36% 87.76% -1.61%
src/modules/commands/index.ts 90.62% 93.75% +3.12%

@nghialv
Copy link
Member

nghialv commented Mar 10, 2022

👍
/lgtm

@khanhtc1202
Copy link
Member

it's beautiful, thank you 😀
/approve

@pipecd-bot
Copy link
Collaborator

APPROVE

This pull request is APPROVED by khanhtc1202.

Approvers can cancel the approval by writing /approve cancel in a comment. Any additional commits also will change this pull request to be not-approved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants