-
Notifications
You must be signed in to change notification settings - Fork 9
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
Statistics display #91
Conversation
c444326
to
897b3f4
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.
Very nice!
I advocate for 1000 by Mar 31st
I'd propose 500 to make it realistic (100 is going to exist by the end of January). |
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.
e494054
to
a4bf8f8
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.
Thank you very much for the update. A couple of minor things and then we are ready to go.
frontend/src/app/homepage.cljs
Outdated
(float | ||
(/ | ||
(:total_reports @backend-stats) | ||
@report-target)) 100) 100)) |
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.
We will probably need to round the number. In my case backend returns a reasonable number:
{"total_reports":7}
but frontend prints
Are we there yet?
0.7000000000000001%
frontend/src/app/homepage.cljs
Outdated
[:div { | ||
:id "progress" | ||
:style {:width (str (progress-width) "%")} | ||
}]]) |
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'll need to set up some linter for the formatting. In comparison to e.g. python, AFAIK all lisps do:
- Ending brackets are not on their own lines. All of them are at the end of the last command
- We don't write opening bracket and then newline. e.g.
:div {\n
. The{
goes to the same line as whatever comes after it
So for example:
(defn render-stats []
[:div {:id "progressbar"}
[:h5 "Are we there yet?"]
[:div {:id "progressbar-number"}
[:p (progress-width) "%"]]
[:div
{:id "progress"
:style {:width (str (progress-width) "%")}}]])
Especially the ending brackets are incorrect on multiple places
7a5423b
to
0c17e0c
Compare
Signed-off-by: Jiri Podivin <[email protected]>
Signed-off-by: Jiri Podivin <[email protected]>
We need to decide on our report collection target before merging this. Something that is ambitious, yet reachable.
Until we know for sure we shouldn't merge it.