-
Notifications
You must be signed in to change notification settings - Fork 391
feat: progress bar for next batch #1631
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
Conversation
fb3424e to
dc70bbd
Compare
Co-authored-by: Urix <[email protected]>
Co-authored-by: Urix <[email protected]>
…1630) Co-authored-by: Urix <[email protected]>
Co-authored-by: Uriel Mihura <[email protected]>
Co-authored-by: Urix <[email protected]>
de876d1 to
bc961c5
Compare
Fixed by setting the preference in a cookie and load it from the server
Also removed target attr as it wasn't needed and was showing warnings when compling
Co-authored-by: Urix <[email protected]> Co-authored-by: Marcos Nicolau <[email protected]>
Co-authored-by: Urix <[email protected]>
|
@Oppen here is a suggestion to avoid clip-path, use tailwind and smooth transitions that should do it: def render(assigns) do
~H"""
<div class="w-full relative weight-700 rounded-lg">
<div class="w-full bg-accent/20 rounded-2xl">
<p class="ml-2 text-center relative text-foreground font-bold z-10">
<%= @label %>
</p>
</div>
<div
class="top-0 left-0 h-full bg-accent p-1 rounded-2xl absolute transition-all"
style={"width: #{@progress}%"}
>
</div>
</div>
"""
end |
|
Other than those comments, the update logic worked fantastic. |
I can try this, but I don't quite grasp what it does. Also, note the duplicate label is intentional because it remains centered and depending on which half of the bar you see it it needs different styling. |
2c8f1a9 to
e0aaba2
Compare
Co-authored-by: Urix <[email protected]>
Co-authored-by: nicolau <[email protected]> Co-authored-by: Marcos Nicolau <[email protected]> Co-authored-by: Urix <[email protected]> Co-authored-by: Marcos Nicolau <[email protected]>
Co-authored-by: Uriel Mihura <[email protected]>
uri-99
left a comment
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.
getting this when running the explorer:
Error: other error: %ArithmeticError{message: "bad argument in arithmetic expression"}
which leads to a 500: key :cost_per_proof_chart not found in: %{
uri-99
left a comment
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.
add a default value for the new var
Co-authored-by: Urix <[email protected]> Co-authored-by: Marcos Nicolau <[email protected]> Co-authored-by: PatStiles <[email protected]> Co-authored-by: Avila Gastón <[email protected]> Co-authored-by: Marcos Nicolau <[email protected]> Co-authored-by: nicolau <[email protected]>
Co-authored-by: Urix <[email protected]> Co-authored-by: Marcos Nicolau <[email protected]> Co-authored-by: PatStiles <[email protected]> Co-authored-by: Avila Gastón <[email protected]> Co-authored-by: Marcos Nicolau <[email protected]> Co-authored-by: nicolau <[email protected]>
Co-authored-by: Urix <[email protected]> Co-authored-by: Marcos Nicolau <[email protected]> Co-authored-by: PatStiles <[email protected]> Co-authored-by: Avila Gastón <[email protected]> Co-authored-by: Marcos Nicolau <[email protected]> Co-authored-by: nicolau <[email protected]>

Important
This PR requires a new .env variable
Add a new progress bar with inline label telling how much time until the next scheduled batch is pushed.
Type of change
Please delete options that are not relevant.
Testing
You may also play with different timeouts by setting the env var
MAX_BATCH_WAIT_MINUTESto different numbers of minutes.Checklist
testnet, everything else tostaging