Closed discorick closed 8 years ago
Which repo are you using to test many task columns?
Checkout /discorick/repro-repo
for many columns (8)
The distribution doesn't look quite right:
For eight columns I would expect:
0 ....
1 |...
2 |...
3 ||..
4 ||..
5 |||.
6 |||.
7 ||||
Whoa, @dahlbyk that styling is off, Firefox ?
Whoa, @dahlbyk that styling is off, Firefox ?
Si
Not quite there...
Alright, I think I have the "right" algorithm:
As an annotated Excel formula, because I'm a Real Programmer™:
# $B$1 = this.powerBarLength # rename as maxPowerBarLength?
# N$1 = total_length
# N$2 = MIN(N$1 - 1, $B$1) # powerBarLength
# $A3 = powerbar_total
=IF($A3 = N$1 - 1, # Last column?
N$2, # Full bar!
CEILING.MATH(
(N$2 - 1) * # Fill all but the last bar
$A3 / (N$1 - 1) # ...based on proportion of non-last bars
) # ...rounded up
)
Alright, I think I have the "right" algorithm
Implemented and tested. I think we're good?
Wow! this is really cool!
đź‘Ť
Everything looks like its checking out!
Alright, so...having focused obsessively on the power bars, what else do we need to look at here? What's a good example repo?
Checkout:
https://huboard-rails-pr-339.herokuapp.com/huboard-testing/card-designs-1#/milestones & https://huboard-rails-pr-339.herokuapp.com/huboard/huboard#/milestones
Everythings looking pretty solid to me at this point.
Not sure if we want to tackle here or not, but I did notice that the power meter status icons seem a little off:
Chrome
Firefox
Edge
Curiously, Chrome Canary looks much better:
Not sure if we want to tackle here or not, but I did notice that the power meter status icons seem a little off
Probably not here, these types of icons have trouble elsewhere in the app as well (see issue timeline icons), when we move to SVG icons that should fix all those inconsistencies between browsers.
Merges into https://github.com/huboard/huboard-web/pull/327