Buck Doyle
7b9f8b5cb1
Fix job detail crash when recommendations off ( #9269 )
...
Without this, visiting any job detail page on Nomad OSS would crash with
an error like this:
Error: Ember Data Request GET
/v1/recommendations?job=ping%F0%9F%A5%B3&namespace=default returned a
404 Payload (text/xml)
The problem was twofold.
1. The recommendation ability didn’t include anything about checking
whether the feature was present. This adds a request to
/v1/operator/license on application load to determine which features are
present and store them in the system service. The ability now looks for
'Dynamic Application Sizing' in that feature list.
2. Second, I didn’t check permissions at all in the job-fetching or job
detail templates.
2020-11-06 08:21:38 -06:00
Michael Lange
88a7458488
Merge pull request #9271 from hashicorp/b-ui/missing-warning-in-stories
...
UI: Update lingering instances of the old warning icon in stories
2020-11-05 13:56:07 -08:00
Michael Lange
a69eb82cfc
Show dismissable no live updating notice on the topology page
2020-11-04 19:25:12 -08:00
Michael Lange
6c5597d548
Update lingering instances of the old warning icon in stories
2020-11-04 19:24:39 -08:00
Michael Lange
3cb5bbb0f8
Show a partial view notice when ACLs are enabled and the mgmt token isn't being used
2020-11-04 15:24:34 -08:00
Michael Lange
916c119269
Update URL for namespace globbing
2020-11-04 15:23:47 -08:00
Michael Lange
5f9267cd2d
Forbidden state for the topo viz
2020-11-04 12:32:22 -08:00
Buck Doyle
ba17e2191b
Add DAS subroute and copy button ( #9201 )
...
This continues iteration on the DAS UI by adding the ability to directly
navigate to a recommendation summary by (namespaced) slug and a copy
button for the direct navigation link.
It includes a change to CopyButton allowing it to take a block that’s
rendered within the button.
It also changes some instances of multi-relationship traversal to use
in-summary attributes, such as summary.jobNamespace instead of
summary.job.namespace.name.
2020-11-04 12:22:24 -06:00
Buck Doyle
1b0f4203bc
Change node id search to prefix-only ( #9244 )
...
This test has been periodically failing, like here:
https://app.circleci.com/pipelines/github/hashicorp/nomad/12879/workflows/40c0445c-b244-4a04-a5a3-d9685b656c94/jobs/114751/tests
The failure was because sometimes the first node contains the
beginning of the ”otherNode” id somewhere within its id. It seems
less useful to match within the node, so this changes id search to
only match at the beginning of the id.
2020-11-04 12:12:31 -06:00
Michael Lange
187f778056
Merge pull request #9074 from Liraim/fix_download
...
ui: "View Raw File" download using JS instead simple link
2020-11-04 10:09:35 -08:00
Michael Lange
52226f3a5a
Merge pull request #9256 from hashicorp/ui/upgrade-node
...
Use Node v12 for UI development
2020-11-04 10:06:41 -08:00
Michael Lange
b9bbea6596
Use Node v12 for UI development
2020-11-04 09:04:22 -08:00
Michael Lange
c6f410f551
Merge pull request #9240 from hashicorp/f-ui/topo-viz-tooltips
...
UI: Topo Viz Tooltips
2020-11-02 13:46:58 -08:00
Michael Lange
5411ed830e
Fix the raw 'blue' in recommendation cards to use '$blue'
2020-11-02 13:29:44 -08:00
Michael Lange
cf2cac1785
Replace visualViewport with the more compatible scrollX and scrollY
2020-11-02 13:25:50 -08:00
Michael Lange
24b0e41036
Add tooltips to the topo viz
2020-11-02 13:25:33 -08:00
Vyacheslav Morov
21de0aee50
Add type=button to View Raw Data buttons.
2020-11-01 02:47:11 +03:00
Vyacheslav Morov
160b038314
Change to button.
...
Rewrite tests to check that proper urls was called.
2020-10-31 23:11:14 +03:00
Michael Lange
595e1a3c19
Make the style-string property glimmer safe
2020-10-30 16:14:31 -07:00
Michael Lange
ae81d7c3ea
Add new is-static chart tooltip variant and decouple from charts
2020-10-30 16:14:31 -07:00
Buck Doyle
d986fa1fdc
Add handling for empty state flaky test edge case ( #9234 )
...
This test occasionally fails because the random generation
sometimes produces a node with no allocations, such as here:
https://app.circleci.com/pipelines/github/hashicorp/nomad/12735/workflows/9a407f87-0383-48ee-8e41-7e6e351dce28/jobs/113130/steps
This is a temporary measure to solve it without trying to force the
generated data to always have an allocation.
2020-10-30 15:57:09 -05:00
Michael Lange
5d21e55063
Add namespace and task states query params to the topo viz route
2020-10-29 11:28:41 -07:00
Buck Doyle
2dc95a10ab
Fix Firefox positioning of chart resource label ( #9209 )
...
alignment-baseline appears to be ignored in Firefox, but dominant-baseline
works. This also moves the anchor into CSS.
2020-10-29 08:13:41 -05:00
Buck Doyle
828487352b
Add DAS UI code from enterprise ( #9192 )
...
This is a few combined iterations on the DAS feature.
2020-10-29 07:46:42 -05:00
Michael Lange
df685e3b7f
Remove no longer used warning icon svg
2020-10-26 15:07:12 -07:00
Michael Lange
7423a5b42a
Replace all instances of the warning icon with the Structure alert-triangle icon
2020-10-26 15:07:12 -07:00
Michael Lange
94f3d79ebe
List all available icons in a story.
...
This is like the same as using svg-jar, right?
2020-10-26 12:26:42 -07:00
Michael Lange
a97b1bc3e2
New all-icons helper that's really only meant for development use
...
This returns an array of all icons. As the comment suggests, it's
because the SVGs file can't be imported in stories since it is generated
as part of the Ember project.
2020-10-26 12:25:34 -07:00
Michael Lange
47cb6c43bb
Merge pull request #9166 from mobiltracker/master
...
Display class in client details
2020-10-26 10:54:14 -07:00
Michael Lange
f69e3a1e2b
Merge pull request #9167 from hashicorp/f-ui/topo-viz-refinements
...
UI: topo viz refinements
2020-10-26 10:51:31 -07:00
Michael Lange
607aac440a
Merge pull request #9172 from hashicorp/b-ui/logs-for-fails
...
UI: Always show the file browser for allocations and tasks.
2020-10-26 10:36:18 -07:00
fqborges
e9ae4406cc
Display class in client details
2020-10-26 11:29:19 -03:00
Michael Lange
8d8f9aaa28
Show the nomad agent version of the agent the UI is served from
2020-10-25 23:52:06 -07:00
Michael Lange
05f3bf2d09
Always show the file browser for allocations and tasks.
...
Before, we'd show a helpful error message when a task isn't running
instead of erroring in a generic way. Turns out when an alloc is
terminal but reachable, the filesystem is left behind so we were hiding
it.
Now it is always shown and in the event that something errors, it'll
either be generic, or--more commonly--a 404 of the allocation.
2020-10-25 22:24:56 -07:00
Michael Lange
b87b4257ae
Make alloc association lines conditional on alloc count relative to node count
2020-10-23 15:16:31 -07:00
Michael Lange
9c7bee8a01
Redo column widths on the topology page.
...
Now the info panel has a fixed width and the TopoViz will display as a
single column if the TopoViz column is too narrow for two columns.
2020-10-23 14:17:03 -07:00
Michael Lange
2385baae80
Reset inline styles on flex-masonry elements when columns is set to 1
2020-10-23 14:17:03 -07:00
Michael Lange
6d8192c065
Truncate text in the topo viz info panel
2020-10-23 14:17:03 -07:00
Michael Lange
d6d2bca48f
Highlight starting allocations with a blue tint
2020-10-23 14:17:03 -07:00
Michael Lange
9e87f6a409
Limit the topo viz to only pending and running allocs
...
Failed allocs immediately vacate their allocated resources which results
in inaccurate distributions of allocations on a client.
2020-10-23 14:17:03 -07:00
Buck Doyle
5237c11817
Add logged Faker seed when none is set in tests ( #9140 )
...
This will hopefully make it easier to reproduce test failures
that happen intermittently, especially in CI.
2020-10-22 13:45:51 -05:00
Buck Doyle
7c7b1131f0
Remove logo spin for prefers-reduced-motion ( #9128 )
...
Spinning is one of the triggers mentioned on this page:
https://webkit.org/blog/7551/responsive-design-for-motion/
Thanks to @fivetanley for mentioning that this exists.
2020-10-20 11:52:15 -05:00
Buck Doyle
69605fc3d4
Update loading spinner to be logo-based ( #9106 )
...
Thanks to @mikehobi, whose work here this is adapted from:
https://icons8.com/cssload/en/3d-loaders
2020-10-15 16:05:58 -05:00
Michael Lange
8f94a989d9
Typo
2020-10-15 11:45:59 -07:00
Michael Lange
214ce4a3d2
Work around Safari's lack of text transform support
2020-10-15 11:45:59 -07:00
Michael Lange
0d920ae761
Factor out the common sum aggregator used in the topology controller
2020-10-15 11:45:59 -07:00
Michael Lange
2cf4b5de46
Remove the scenarios I didn't need/didn't get to
2020-10-15 11:45:59 -07:00
Michael Lange
223011e1b4
Describe the glimmer-factory better including the motive
2020-10-15 11:45:59 -07:00
Michael Lange
e540312c67
Reset the standard environment values
2020-10-15 11:45:59 -07:00
Michael Lange
229fa293d0
Treat legend term pairs as single wrapping elements
2020-10-15 10:30:34 -07:00