Commit Graph
100 Commits
Author SHA1 Message Date
Joe Fiorini b84bba19f8 Handle single-host with empty versions 2015-06-03 12:21:15 -04:00
Joe Fiorini 8868235af2 Fallback to first hostname if only 1 host 2015-06-03 12:15:36 -04:00
Joe Fiorini f88de17adf Use clone of params object to avoid time traveling 2015-06-03 10:21:51 -04:00
Joe Fiorini f2322e7cc3 Clarify info in table headers 2015-06-03 09:53:11 -04:00
Joe Fiorini 32580e2ffd Fix system tracking test 2015-06-03 08:12:17 -04:00
Joe Fiorini 9526975318 Resolve fact versions before looking up fact views
This adds a step to the fact version lookup that attempts to resolve
fact versions before looking up their views. Resolving a fact version
means finding another version to use when there is a problem with the
one the user selected.

In this case, the resolution process works as follows:

1. Check if either request returned an empty list

If so, request again, changing the dates to look back a year. This
will almost always return something.

2. If we are requesting multiple facts for the same host, and both of
the resolved versions have the same timestamp, they are duplicates and
we cannot compare against them.

Instead we instruct it to grab the selected and the previous versions for
comparison.

For host-to-host view, this also updates the timestamp in the header to
reflect the actual timestamps. It _does not_ update the date picker
dates yet.
2015-06-03 00:16:54 -04:00
Joe Fiorini 0591812da6 Make sure array promises pass through undefined 2015-06-03 00:16:54 -04:00
Joe Fiorini bcf4688a55 Fix headers on ansible facts module 2015-06-02 17:21:52 -04:00
Joe Fiorini 3d1dc42e2a Compare facts before assuming they are all different 2015-06-02 17:21:52 -04:00
Joe Fiorini 633647a2a8 Track fact presence with property 2015-06-02 13:11:46 -04:00
Joe Fiorini 9eea389458 Simplify fact templates for packages and services 2015-06-02 13:08:39 -04:00
Joe Fiorini a9a839a549 Compare facts in both directions, not just one way 2015-06-02 13:06:30 -04:00
Joe Fiorini 0dd9c4e5eb Add missing styles for system tracking 2015-06-02 12:11:40 -04:00
Joe Fiorini 5beb7b1aa0 Display package version string for packages 2015-06-02 12:11:40 -04:00
Joe Fiorini a3f5d9a9a5 Add timeline recording helper to debug 2015-06-02 12:11:40 -04:00
Joe Fiorini 17a7117f0c Prevent data from reloading when switching modules 2015-06-01 18:01:41 -04:00
Joe Fiorini e419282c0c Merge pull request #256 from joefiorini/moment-fixes
Make usage of moment consistent throughout app
2015-06-01 17:18:01 -04:00
Joe Fiorini d8e1887036 Remove accidentally committed value 2015-06-01 17:04:14 -04:00
Joe Fiorini bcca803323 Copy all properties of original moment to wrapped object 2015-06-01 16:45:13 -04:00
Joe Fiorini 6d6d8c66c2 Fix tests 2015-06-01 16:30:11 -04:00
Joe Fiorini 884423f86c Make usage of moment consistent throughout app
This always includes the user's language preference when loading moment.
It also deletes the moment global, so if you don't require it somehow
you will get an error trying to call `moment`'.

This is setup to provide moment to both angular and plain JavaScript
modules. In angular modules, just add `moment` as a dependency. In plain
js use `import moment from 'tower/shared/moment/moment';`.
2015-06-01 16:25:46 -04:00
Joe Fiorini fdb8fdf24a Uncomment mongo from startup script
I will add this to the dockerfile once this release is done.
2015-06-01 14:52:55 -04:00
Joe Fiorini 809cbcb6e4 Fix image sizing for logo in IE11 2015-06-01 14:52:55 -04:00
Joe Fiorini 77a7ef1e32 Merge pull request #253 from joefiorini/system-tracking-improvements
System tracking improvements
2015-06-01 11:01:17 -04:00
Joe Fiorini c804409ed3 Fix tests 2015-06-01 09:30:06 -04:00
Joe Fiorini b615df5124 Display error messages when no scan jobs are found 2015-05-29 17:54:15 -04:00
Joe Fiorini 4784f0d96b Handle thens that return a promise 2015-05-29 17:54:15 -04:00
Joe Fiorini 5caf80e9a2 Display timestamp from API in column headers 2015-05-29 17:54:15 -04:00
Joe Fiorini 8d1e2e1c0c Fix styling after nav refresh merge 2015-05-29 17:54:15 -04:00
Joe Fiorini da67aba2d4 Default dates to today and yesterday 2015-05-29 17:54:15 -04:00
Joe Fiorini 5f902a55fe Sort modules by built-in then custom 2015-05-29 17:53:27 -04:00
Joe Fiorini 579ee6d721 Display custom fact plugins in module options 2015-05-29 17:53:27 -04:00
Joe Fiorini caf7c30de7 Get available modules from OPTIONS endpoint 2015-05-29 17:53:27 -04:00
Joe Fiorini 657b41510c Add breadcrumbs to system tracking page 2015-05-29 17:53:27 -04:00
Joe Fiorini d9441a7696 Merge pull request #245 from joefiorini/navigation-refresh
Navigation refresh
2015-05-29 08:58:17 -04:00
Joe Fiorini 0a8be8243f Fix toggle button always showing up 2015-05-29 08:57:39 -04:00
Joe Fiorini b3e8bdbf11 Massage wording on setup menu 2015-05-28 18:24:28 -04:00
Joe Fiorini 18303a004d Fix mobile breakpoints for menu
We need a better strategy around these breakpoints. I feel like they'll
be different depending on the thing we're styling, so maybe having a
file with variables for different breakpoints. Not sure yet.
2015-05-28 18:20:05 -04:00
Joe Fiorini fc07169b5c Fix mobile menu styles for portal mode 2015-05-28 18:09:51 -04:00
Joe Fiorini 1a5b04c7ee Close menu when user selects item 2015-05-28 18:09:25 -04:00
Joe Fiorini 77d38b0455 Always show web socket status on right 2015-05-28 16:48:05 -04:00
Joe Fiorini 267833ac76 Correct viewBox on user icon 2015-05-28 16:29:28 -04:00
Joe Fiorini b11bb4db2f Spacing and alignment fixes on setup menu 2015-05-28 16:04:27 -04:00
Joe Fiorini d2534338d7 Add extra icons to portal mode 2015-05-28 15:44:52 -04:00
Joe Fiorini 47b86a3a7e Link to new license page 2015-05-28 09:08:20 -04:00
Joe Fiorini b716394e54 Update class to allow toggle menu to open 2015-05-28 09:03:58 -04:00
Joe Fiorini 2fbf0bec2f Add height back so modals can breathe 2015-05-28 09:03:58 -04:00
Joe Fiorini a81a48ab18 Don't process tooltip on awToolTip items 2015-05-28 09:03:58 -04:00
Joe Fiorini 7b04cce7d4 Simplify switching between menu styles 2015-05-28 09:03:58 -04:00
Joe Fiorini d13b063f08 Fix portal mode links and simplify menu styles 2015-05-28 09:03:58 -04:00
Joe Fiorini 66cb2aaec0 Watch model param for changes in link-to directive 2015-05-28 09:03:57 -04:00
Joe Fiorini 9d95020bf5 Completely remove jPushMenu 2015-05-28 09:03:57 -04:00
Joe Fiorini 2c442cbbbe Fix positioning of A in Tower logo 2015-05-28 09:03:57 -04:00
Joe Fiorini e79540fbba Cleanup 2015-05-28 09:03:57 -04:00
Joe Fiorini a207d1234b Update styles for active links 2015-05-28 09:03:57 -04:00
Joe Fiorini 0aa37251c6 Use route names to generate links on new menus 2015-05-28 09:03:57 -04:00
Joe Fiorini b329f314c2 jshint fixes 2015-05-28 09:03:57 -04:00
Joe Fiorini 2e0bab0f78 Add ansible-red back to colors 2015-05-28 09:03:57 -04:00
Joe Fiorini 3d6bd05c8a Update icons and logo 2015-05-28 09:03:57 -04:00
Joe Fiorini 23e6fdf484 Move menu styles to live with main-menu 2015-05-28 09:03:57 -04:00
Joe Fiorini 24cc7c0611 Use inline svg icons on context menu 2015-05-28 09:03:57 -04:00
Joe Fiorini 51e10675ab Fixes based on feedback after demo 2015-05-28 09:03:56 -04:00
Joe Fiorini ec231bd516 Copy viewBox from symbol rather than hardcoding 2015-05-28 09:03:56 -04:00
Joe Fiorini 3da0f37886 Ensure icons are same width on setup menu 2015-05-28 09:03:56 -04:00
Joe Fiorini 63c9ba7aea Use blue instead of red for icon hover 2015-05-28 09:03:56 -04:00
Joe Fiorini 52b676f0be Move web socket status indicator into directive 2015-05-28 09:03:56 -04:00
Joe Fiorini 02ac45e4c4 Always render svg icons inline 2015-05-28 09:03:56 -04:00
Joe Fiorini 324b0250fc Cleanup icons after change to navbar 2015-05-28 09:03:56 -04:00
Joe Fiorini e75da8f921 Update icons on setup menu 2015-05-28 09:03:56 -04:00
Joe Fiorini f862527d2c Implement new design for setup menu 2015-05-28 09:03:55 -04:00
Joe Fiorini b649887e61 Implement mobile-friendly menu 2015-05-28 09:03:55 -04:00
Joe Fiorini d760c96596 Change portal mode icon when in portal mode 2015-05-28 09:03:55 -04:00
Joe Fiorini 91fe2b5444 Implement main menu redesign 2015-05-28 09:03:55 -04:00
Joe Fiorini ea51113e1b Implement setup menu 2015-05-28 09:03:55 -04:00
Joe Fiorini 9df18fcea3 Merge pull request #243 from joefiorini/system-tracking
Initial merge of system tracking UI
2015-05-27 10:18:19 -04:00
Joe Fiorini df771d5c0d Display comparisons with data from API
See https://gist.github.com/joefiorini/3a8c36bcedf7ad954952 for an
explanation of the comparison logic.
2015-05-27 10:17:31 -04:00
Joe Fiorini 8acc73c833 Setup page to display fake data 2015-05-27 10:17:31 -04:00
Joe Fiorini 455b599ecb Remove underscore now that we have lodash 2015-05-27 10:16:40 -04:00
Joe Fiorini ae5594a853 Add some promise helpers to lodash 2015-05-27 10:16:40 -04:00
Joe Fiorini 862cc40de0 Remove invalid markup from template 2015-05-27 09:53:01 -04:00
Joe Fiorini 7b20dfa98f Merge pull request #232 from joefiorini/breadcrumbs-directive
Move breadcrumb rendering into directive
2015-05-26 16:47:53 -04:00
Joe Fiorini 287e1cc8c0 Move breadcrumb rendering into directive 2015-05-20 14:28:33 -04:00
Joe Fiorini 1b2cce19cd jshint fixes 2015-05-15 11:13:16 -04:00
Joe Fiorini f70a2acbd9 Setup initial system tracking struture 2015-05-15 11:13:15 -04:00
Joe Fiorini e4a9919c24 Merge pull request #208 from joefiorini/browser-data
Move browser data loading into factory
2015-05-15 09:48:54 -04:00
Joe Fiorini b70fa02f2c Merge pull request #209 from joefiorini/tooltip-for-titles
Use tooltip plugin for title attributes
2015-05-15 09:48:16 -04:00
Joe Fiorini a1ee7ebf58 jshint fixes 2015-05-14 16:27:37 -04:00
Joe Fiorini 42dbe5f0b5 jshint fixes 2015-05-14 16:22:58 -04:00
Joe Fiorini 04cb3c9065 Merge pull request #210 from joefiorini/underscore-to-lodash
Replace underscore with lodash for great features
2015-05-13 15:28:27 -05:00
Joe Fiorini f5d720cb71 Merge pull request #207 from joefiorini/branding-colors
Extract colors to easily resuable partial
2015-05-13 15:14:20 -05:00
Joe Fiorini 9626d565f5 Replace underscore with lodash for great features 2015-05-13 16:04:20 -04:00
Joe Fiorini 692bd77e04 Extract colors to easily resuable partial 2015-05-13 13:43:17 -04:00
Joe Fiorini af67ac6931 Fix setting socketStatus on disconnect 2015-05-13 13:41:19 -04:00
Joe Fiorini 83932ae9e5 Use tooltip plugin for title attributes 2015-05-13 13:38:50 -04:00
Joe Fiorini 5c6cae213f Move browser data loading into factory 2015-05-13 13:30:39 -04:00
Joe Fiorini 319a7c3a3a Merge pull request #206 from joefiorini/route-extension-fixes
Route extension fixes
2015-05-13 12:12:08 -05:00
Joe Fiorini b5e037ef71 Name ALL the routes! 2015-05-13 13:09:39 -04:00
Joe Fiorini cfdc4e49ba Make link-to directive more flexible 2015-05-13 13:09:22 -04:00
Joe Fiorini 16cc712b9e Merge pull request #202 from joefiorini/route-extensions
Improve how we pass data when changing URLs
2015-05-13 10:02:25 -05:00
Joe Fiorini 5afd5f5fad Fix issue in route-extensions 2015-05-13 10:16:27 -04:00