-
Notifications
You must be signed in to change notification settings - Fork 2
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
Projectorville #30
Projectorville #30
Conversation
"change" => countries_income_change[country] | ||
} | ||
|
||
@countries_data.push(this_country) |
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.
Been a long damn time since I've written Ruby and I was never particularly versed in it so I'm not super confident on this being the best way to do this. It also no doubt has broken some tests that I still need to address.
f444b68
to
2c46863
Compare
@michaelpelletier Just a reminder to give me a ping on either on Slack or on Github when you are done with this so I can review. |
@FifthSurprise Will do! You can always start reviewing it early if you would like. |
@@ -3,10 +3,15 @@ | |||
<head> | |||
<title>WatchTheSkiesDashboard</title> | |||
<%= stylesheet_link_tag 'application', media: 'all'%> | |||
|
|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.3/angular.js"></script> |
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.
Note to self: Figure out why Bower stopped playing nicely with Angular.
It's probably fine to use this CDN approach, but if that's the case, let's rip the logic out elsewhere.
Not sure why but it looks like you can lose countries from the dashboard. What I think is happening is on page load, you try to fit all of the tickers into one line but if there's no space, additional countries get pushed below visible window height and then do not appear even after manipulating resizing the window. |
<ul> | ||
<li> | ||
<div ng-repeat="country in countries" class="country"> | ||
<span>{{country.name}}</span> |
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'm not sure if I like Country Name, Amount, then Glyphicon. I think maybe a | as a delimiter would be a good idea between countries.
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.
Sure, easy fix.
Oversight on my part but let's update the README to also |
I discovered a bug in the api_controller.rb that was affecting you.
I will make this change in PR #40 but you can also just put in the above change if you need it. It handles not being able to compare previous income in the opening round against current income since there is no previous income. |
@FifthSurprise Yeah I need to fix the bower install thing and figure out why it's being an asshole with Angular. And good catch with the |
$interval(function() { | ||
$scope.getStatus(); | ||
}, 3000); | ||
} | ||
]); | ||
]).animation('.slide-animation', function () { |
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'm guessing this stuff is for animating left to right scroll for the ticker? Some comments could be useful here to that effect.
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.
It's for the news itself, not the stock ticker thing, which definitely means it needs comments.
@michaelpelletier Done looking at this for now. I'd be interested in maybe throwing a small error image somewhere if the API call gets something other than a 200 response just to make it obvious that something weird happened with the API call. Currently, the dashboard API call will have errors but still try to deliver what it can. So you can use that 200 status message as a healthcheck and just display somewhere on the dashboard a small icon if something is going wrong. Or I guess, throw a javascript error if it sees a 500 but that seems more painful. Otherwise, the ticker resize thing seems to be the only weirdness. If you figure that out, I'd like to take another look as sanity check before I merge it in. |
unless previous_income_list.empty? | ||
previous_income_list.each do |pair| | ||
countries_calculations[pair[0]] -= pair[1] | ||
income_change = if previous_income.empty? |
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.
Derp, realized I can't fix this in #40 since bug is right here.
Anyway, please fix haha.
8b26e47
to
83e7e9d
Compare
added migration for games to have a localized time zone add control for time zone in set of new time edit next step is to add a user preference for time zone display
83e7e9d
to
12371ed
Compare
b9e287b
to
d0f2b4c
Compare
Left to do:
|
@FifthSurprise I think this is ready for review now. I ended up not being able to get I added a bunch more comments to the JS, which I hope clear some things up. The FINALLY, I adjusted the |
Initial look seems like everything is fine. I am going to work on automated testing on rails side in the nearish future so hopefully that will be less of a concern. Also the icon is perfect. I'm going to poke around a bit more to see if there's anything weird I don't understand but will merge it in soonish. |
Yay! 😄 |
Will close #29 when it is done.
First looked like this:
Then a style overhaul happened when I had the idea to make it look like a News Broadcast:
And continuing with progress.