-
Notifications
You must be signed in to change notification settings - Fork 0
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
Make Weather Page more useful for Network Monitoring [2/2] #6
Make Weather Page more useful for Network Monitoring [2/2] #6
Conversation
…e and see why it was closed
…e the site status- not working yyet
…n issue with the asynchronous calback nature of JS
… in mind for the future
…used by not enough CSS padding?
…eded store property
…nnect dots so that theres no gaps in charts, added min/max coloring for thresholds
…ge had a vulnerable package in its dependency tree
The client fails to build for me: ERROR in /node_modules/css-loader!/node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-3a24dfec","scoped":false,"hasInlineConfig":false}!/node_modules/sass-loader/lib/loader.js!/node_modules/vue-loader/lib/selector.js?type=styles&index=0!/src/App.vue |
@markBowman My apologies, it worked when I tested it locally (using NPM) and I assumed that meant it would be okay when built with Docker. I tested it just now with docker and was able to build and run successfully:
The weird issue that I'm encountering now is that Docker is still showing that we have a security vulnerability in our dependency tree, even though NPM shows that I'm using the latest version of the package that's that vulnerability.
but during the Docker image build step, it still gives the vulnerability error:
You can see that earlier, NPM is reporting that its only the safe version of hoek (5.0.3) is installed, so there appears to be some conflicting info here. |
Air Temperature threshold is a minimum, so should be green in the new way of displaying thresholds |
TFN open state is showing as unknown but it is open. What causes this? |
…shold color to be green, attempting to fix the bad layout issues
…rrectly resizes at smaller viewport sizes..?
…ertical columns at the right size; removed the unknown counter
@Fingel @markBowman To add on to the security vulnerability issue, it looks like we've reached an impasse: the
Someone opened an issue on the node-sass project a while ago (see: sass/node-sass#2355) but its still open. I tried reverting to an older version of node-sass (4.7.1) but this had an issue building on my system (see: nodejs/node-gyp#1217). Not quite sure what to do here. |
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.
Looks good! Just a few things to look at.
client/src/App.vue
Outdated
@@ -1,14 +1,14 @@ | |||
<template> | |||
<div id="app"> | |||
<section class="section"> | |||
<div class="container"> | |||
<div class="container is-fluid is-marginless"> |
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 remove is-marginless? The page is much easier to read with a bit of a margin.
client/src/components/Site.vue
Outdated
</div> | ||
</div> | ||
<div class="level-item has-text-centered"> | ||
<div> | ||
<p class="heading">Pressure mbar</p> | ||
<p class="title">{{ datums['Weather Barometric Pressure Value'].data | latestVal }}</p> | ||
<p class="title">{{ this.$options.filters.latestResult(datums['Weather Barometric Pressure Value'].data, 'Value') }}</p> |
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.
if this is a filter, it should be used as a filter, like this: {{ datums['Weather Barometric Pressure Value'] | latestResult }}
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.
Duly noted. VueJS shows that the two syntaxes are equivalent so I didn't think it mattered which was used; but its fixed in the latest commit.
client/src/components/TimeChart.vue
Outdated
{ | ||
enabled: true, | ||
position: 'left', | ||
content: (this.limit_direction === 'min') ? 'minimum' : '', |
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.
This label is super distracting, I think it would be a lot better as a legend.
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 don't quite think this is supported by the plugin that we use. ChartJS obviously has legends,(https://www.chartjs.org/docs/latest/configuration/legend.html) but I don't see any support for legends in the ChartJS annotation plugin -- the only way I see to mark an annotation is through labels, which is what I'm using now. I can control the location of the label within the plot but thats about it. What I could maybe try doing is only showing the annotation label if you hover over the chart? That could make the chart less busy on first glance but still present the information if needed.
client/src/components/WeatherNav.vue
Outdated
} | ||
else { | ||
var last_val = resp[resp.length - 1].ValueString; | ||
var last_letter = this.$options.filters.statusMsgToLetter(last_val); |
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.
Filters are only meant to be used in templates. If this is just a helper method, no need to place it in filters. Use a computed or normal method instead.
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.
Okay, the global filter was removed and code was moved to methods() section.
…unction, changed syntax used for filter in Site template, removed the filters js file since no global filters are used anymore
… offset for labels so that they dont show up off screen
…plain how to use the new click feature?
@Fingel @markBowman The changes requested are up, but with regards to the label as a legend, I couldn't quite find a way to display the label as a legend. My approach now was to hide the label, and instead let the user click on the threshold line to toggle the label (minimum or maximum). I originally wanted to use the mouseover/mouseleave events (so you when you hover over the plot it shows up, and when you leave it goes away) but the plugin we used appears to have issues with events (chartjs/chartjs-plugin-annotation#88) so I couldn't quite get that working. I also added some text below the first plot to tell the user about the functionality -- see: Let me know what you think. |
…ed a bit of spacing between the menu list and the site open/closed counts
Looks good! |
The legend to the Sky transparency minimum green line has a value of 0 even though the line is at 25% |
OPINION: I would lose the Minimum/Maximum legend from the left side panel because it is not obvious it applies to the plots. You could put it at the very bottom of the main panel under all the plots. |
We're getting into the real nitty-gritty of things you weren't asked to do but....
|
If I increase the size of my browser window the graph scale to take advantage but if I shrink it again they do not get smaller so the right side is out of view. |
Sorry, didn't mean to hit close. The green and yellow widgets with number of open and closed sites are clickable buttons with no obvious behavior. |
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.
Looking really good. Impressive work.
…lue in label since it was incorrect for sky transparency threshold; changed X/Y open/closed buttons to tags so that they cant be clicked; increased size of current values heading and timerange setting heading
@markBowman @Fingel Thanks for the feedback. The latest commit has the following changes.
Regarding the issue about page resizing, you have to refresh the page if you change the size of the window in the x direction -- the existing version of the LCO Weather page has similar behaviour. |
MUST we continue to call Sky Brightness that instead of Sky Darkness?
…On Thu, May 31, 2018 at 8:16 PM, Raleigh Littles ***@***.***> wrote:
@markBowman <https://github.com/markBowman> @Fingel
<https://github.com/Fingel> Thanks for the feedback. The latest commit
has the following changes.
- Increased size of "Current Values" heading
- Increased size of "Last " heading
- Moved legend from sidebar to underneath all plots
- Changed buttons to tags
<https://bulma.io/documentation/elements/tag/> so that they're not
clickable but still look the same
- Removed the minimum/maximum value display from the plot annotation
-- I'm not sure why the values weren't working for the Sky Transparency
closure, since they worked fine for all the other plots. This wasn't
defined in the scope of the story anyways, and I don't think being able to
tell the *exact* value of the threshold is a huge deal, as you can
easily discern what the threshold is with relatively good accuracy (i.e. do
we really need to tell if the threshold is at 25 and not 22.5, etc.)
Regarding the issue about page resizing, you have to refresh the page if
you change the size of the window in the x direction -- the existing
version of the LCO Weather page has similar behaviour.
Below are screenshots of the changes.
[image: screenshot from 2018-05-31 13-13-01]
<https://user-images.githubusercontent.com/2137201/40805840-71e39f24-64d4-11e8-995f-ccec3e6fb5ee.png>
[image: screenshot from 2018-05-31 13-13-20]
<https://user-images.githubusercontent.com/2137201/40805841-7200987c-64d4-11e8-8aec-0f89e49ceaa7.png>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#6 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AKedsAO9Hr53DKvWevn0fKTfOIbl6S4pks5t4E-xgaJpZM4ULZla>
.
--
Clear skies,
Wayne Rosing
Founder
805 708 6901 cell
805 880 1603 office
Please note [email protected] is our preferred address.
|
This PR addresses the remaining tasks from the story that were not addressed in the 1st pull request, the main features being:
Now displays number of sites opened/closed/unknown in the sidebar along with each's site basic status (Y, N, or '?' for unknown).
Adjusted the labeling for closure thresholds to distinguish between minimum value thresholds or maximum value thresholds.
Removed
node-sass
package, which according to npm, had the vulnerable package 'hoek' in its dependency tree.Now shows the times the site was closed on its "Ok to Open" plot, and hovering over the closed section shows a tool-tip which tells you why the site was closed.
Added a 14-day option.