-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indicate a build is in progress in Dashboard build page #2562
Conversation
Post a short video of how it looks for reviewers, please. |
NOTE: you can drag-and-drop video files into this Issue in a comment, and GitHub will host it for you. We can't use a % since we don't have any concept of where we are in a build. |
issue_2542.mp4 |
@humphd Do we have the concept of the time or just our estimate |
We know when a build started (Datetime) and therefore can calculate how long it's been running, so we could do something like |
You need to link the issue you're closing so that github automatically closes it when your PR gets merged. |
Add the datetime calculator function. However it doesn't automatically triggered by build. I will try to do it tomorrow. calculator.mp4.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update the branch? Your changes to build.html should go into builds.hbc
.box { | ||
position: relative; | ||
height: 50px; | ||
width: 250px; | ||
background: transparent; | ||
border-radius: 5px; | ||
} | ||
.box svg { | ||
position: absolute; | ||
height: 160px; | ||
width: 160px; | ||
left: 25%; | ||
top: 50%; | ||
transform: translate(-50%, -50%) rotate(-90deg); | ||
} | ||
.box svg circle { | ||
fill: transparent; | ||
stroke: rgb(252, 206, 3); | ||
stroke-width: 3; | ||
stroke-dasharray: 3; | ||
stroke-dashoffset: 0; | ||
transform-origin: center; | ||
animation: rotate 1s linear infinite, stroke 3.9s linear infinite; | ||
} | ||
|
||
.box .counter { | ||
position: absolute; | ||
top: 60%; | ||
left: 25%; | ||
transform: translate(-50%, -50%); | ||
width: 70%; | ||
height: 30px; | ||
color: #e6b800; | ||
text-align: center; | ||
overflow: hidden; | ||
} | ||
.box .counter span { | ||
font-size: 10px; | ||
line-height: 25px; | ||
font-weight: bold; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use an icon from google material icons. Don't have to make your own.
h8 { | ||
color: #000; | ||
position: absolute; | ||
width: 100%; | ||
text-align: right; | ||
top: 25%; | ||
right: 2%; | ||
letter-spacing: 1px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this HTML tag doesn't exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is h8
tag? Can you provide a link to its documentation?
|
||
document.getElementById( | ||
'calculatorData' | ||
).innerHTML = `${days} days, ${hours} h ${minutes} m ${seconds} s`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A build is several hours at most, skip the day
. Additionally, can you make it so that the units are only shown when it is > 0? For example, 3s instead of 0h 0m 3s. 1h 0m 0s should also be valid.
|
Then solve all the conflict during the rebase. |
I added the issue in the side manually, sorry about this. To correctly link an issue, please use one of the keywords from GitHub to link the issue to the PR. Can you please adjust the PR for this? |
step 2: in the
|
Can you update your branch first?
Any screenshot for errors or any error messages will be helpful. EDIT: Sorry, I made a typo there, you should look for |
@humphd I have almost finished this issue, but when I want to commit my code, it displays an error. Could you help me? |
Try rebasing your branch and run |
On Window, you should open Powershell and run this script first.
|
7af1764
to
cdda0c0
Compare
@Andrewnt219 can I delete the |
You have to add the deleted file to the commit as well. ESLint test failed. You should run |
Deleting from the PR is fine too I guess.
Not sure why it failed either. Just fix ESLint and push again. |
In the file
|
a780cae
to
3e3b6b3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glad to see this is taking shape. There is still room for improvement.
@@ -31,6 +31,24 @@ | |||
</div> | |||
</div> | |||
</nav> | |||
<div class="container-fluid py-2"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move this into the build header? There are two columns for "result" and "total duration".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the beginning, I want to move this into the build header. But after I studied issue #2416, I think they are different functions, maybe it's better to separate these two items
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are they? Your result and total duration are for current
build, and they're the same as those two columns in build-header
. Data is from the same source, too.
87b0eea
to
b13955b
Compare
@Yoda-Canada any updates on the current state of this PR? |
@Andrewnt219 I haven't updated the current state yet. I will review it again. |
@Yoda-Canada how is everything for this PR, would you need some help rebasing it ? |
@tpmai22 Most of the issues has been solved, except for the following issue. Could you help me solve this problem? I really appreciate your assistance. |
I would love to take a look and see |
@Andrewnt219 for this issue I try to catch up with the conversation between you and @Yoda-Canada but I'm still a bit lost. Would you mind to shred some light ? |
@tpmai22 in #2582, a build header was added to show the info of the ongoing build (see screenshots). At the moment, the header just shows the result "Error" or "Good". It is missing an "In progress" state. The current PR is also showing animation/loading indicators of the 3 statuses in addition to just plain text. |
We can close this now refer to #2665 |
Fixes #2542
Issue This PR Addresses
Type of Change
Description
Checklist