Michael Lange
a891e907f5
Test coverage for line chart annotations
2020-08-05 12:02:22 -07:00
Michael Lange
8445e22faf
Add annotations to the line chart component
2020-08-05 12:02:22 -07:00
Michael Lange
868509de5f
Merge pull request #8563 from hashicorp/b-ui/missing-job-distribution-chart-texture
...
UI: Restore striped texture used in the job distribution bar
2020-07-30 08:20:48 -07:00
Michael Lange
8a78999019
Move the svg-patterns template into the component dir
2020-07-29 22:54:30 -07:00
Michael Lange
4d2f322e10
Add a tooltip to explain the count change icons
2020-07-29 19:30:00 -07:00
Michael Lange
602b6771ba
Assert that the scale up/down indicator is not shown when the count is null
2020-07-29 19:26:32 -07:00
Michael Lange
13af67ac80
Integration tests for the scale-events-accordion component
2020-07-29 19:26:32 -07:00
Michael Lange
69795e8b7d
Refactor scale events into their own component
2020-07-29 19:26:32 -07:00
Michael Lange
4b7f431981
Acceptance tests for scaling events
2020-07-29 19:07:24 -07:00
Michael Lange
203f7e06b8
Present scaling events on the job task group page
2020-07-29 19:07:24 -07:00
Buck Doyle
7bed453de3
Add acceptance test accessibility auditing and fixes ( #8455 )
...
This introduces ember-a11y-testing to acceptance tests via a helper
wrapper that allows us to globally ignore rules that we can address
separately. It also adds fixes for the aXe rules that were failing.
2020-07-28 12:59:14 -05:00
Buck Doyle
9e3ae523d6
Fix layout of title component elements ( #8495 )
...
The spacing has been broken for job types that use this yield
(parameterised and periodic) since I added the exec button
to this template. This could be further refined to allow a more
logical grouping of elements where buttons and tags are
separate.
2020-07-22 11:30:58 -05:00
Buck Doyle
77b4d59f5d
Change edition to Octane ( #8418 )
...
This updates the Ember edition setting to Octane, which I removed from #8319
because it required the template-only Glimmer components setting to be turned
on, which this does. These changes to templates accommodate that setting.
2020-07-13 09:26:12 -05:00
Michael Lange
d5b54ad84c
Reset the system and refetch namespaces with every token change
2020-07-10 15:18:36 -07:00
Buck Doyle
d7c26b033e
Fix client allocations table heading order ( #8409 )
...
This closes #8408 . Thanks to @gmichalec-pandora for letting us
know about this.
2020-07-10 07:27:20 -05:00
Buck Doyle
244157786a
Add explicit this to templates ( #8388 )
...
This is the result of running the no-implicit-this-codemod, some manual fixes,
and the addition of a linting rule to prevent future ambiguity.
2020-07-09 15:19:07 -05:00
Buck Doyle
ea2adb3bf6
Update template linting and fix missed curly invocations ( #8382 )
...
This includes fixes for newer template lint rules that came along with
updating that dependency, which was necessary to be able to use
the no-curly-component-invocation rule. It also updates some curly
invocations that I missed in #8075 .
2020-07-09 12:30:11 -05:00
Buck Doyle
40332963ef
Update to Ember 3.16/Data 3.12 ( #8319 )
...
This updates to Ember 3.16 but leaves Ember Data at 3.12 so we don’t need
to use the model fragments beta. It can be reviewed on a commit-by-commit
basis: blueprint updates, fixes for test failures, and the removal of
now-deprecated partials.
It’s not a true update to Octane as that would involve turning on template-only
components by default, which breaks various things. We can accomplish that
separately and then add the edition setting to package.json.
2020-07-09 11:37:00 -05:00
Michael Lange
7ad214f34a
StepperInput UX improvements
...
- Click label to focus input
- Focusing input selects value
- Entering an invalid value reverts selection
- Entering a fractional number floors the value
2020-06-30 11:54:11 -07:00
Michael Lange
8072996ee2
Label buttons that only have icons for markup
2020-06-30 11:54:11 -07:00
Michael Lange
70cc9cb5c8
Add tooltips to scaling controls
2020-06-30 11:54:11 -07:00
Buck Doyle
196f27aec4
Add multiple substring highlights for search ( #8287 )
...
The fuzzy search highlighting was ignoring everything after the first
substring that was matched, this now highlights all substrings.
2020-06-25 15:26:52 -05:00
Michael Lange
6c7d3f49d5
Merge pull request #8280 from hashicorp/f-ui/wide-monitor-logs
...
UI: Make monitor log output full-width
2020-06-25 09:22:54 -07:00
Buck Doyle
bf7ed82def
Improve global search UX ( #8249 )
...
This updates the look of the search control, adds a hint about the slash
shortcut, adds highlighting of fuzzy search results, and addresses a few
edge case UX failures. It moves to using a fork of Ember Power Select
to handle an edge case where pressing escape would put the control
in an undesirable active-but-not-open state.
2020-06-25 08:51:52 -05:00
Michael Lange
22f9faeb84
Make monitor log output full-width
2020-06-24 20:37:12 -07:00
Michael Lange
a9bf04675f
Add a key to the alloc table on the task group detail page
...
Adding keys tells Ember to rerender matching entries instead of
destroying and recreating.
Without this key, every time the allocation collection changes, every
allocation row gets destroyed and recreated.
This happens a lot, since each allocation needs to be reloaded which
dirties the collection.
Since allocation rows fetch stats on init, each of these many many
renders results in a stats request.
By using key and rerendering matching records, this all goes away. Since
the rows aren't being destroyed and recreated, the init stats request
isn't being made overnumerously.
2020-06-19 11:27:57 -07:00
Buck Doyle
ee7141a59a
Add phase 1 of global search ( #8175 )
...
This introduces a DataCaches service so recently-updated collections don’t need
to be requeried within a minute, or based on the current route. It only searches
jobs and nodes. There are known bugs that will be addressed in upcoming PRs.
2020-06-19 13:05:28 -05:00
Michael Lange
02fd45f02b
Acceptance tests for task group scaling
2020-06-18 23:23:03 -07:00
Michael Lange
d3cce73747
Wire up the scale action on the task group page
2020-06-18 23:23:03 -07:00
Michael Lange
6259e3ae5d
Integrate the stepper input with the task group page
2020-06-18 22:32:56 -07:00
Michael Lange
ddd5a7e342
Test coverage for the StepperInput
2020-06-18 22:08:29 -07:00
Michael Lange
ff3653ddf6
Style the StepperInput component
2020-06-18 22:08:28 -07:00
Michael Lange
28916c22cf
Add count StepperInput to the task group page
2020-06-18 22:08:28 -07:00
Michael Lange
ba91a4ffe5
Barebones StepperInput component
2020-06-18 22:08:28 -07:00
Michael Lange
c664f57361
Disable scale buttons when a deployment is running or ACL forbids it
2020-06-18 22:08:28 -07:00
Michael Lange
136b4ec354
Wire up the +/- buttons in task group rows to the job scale action
2020-06-18 22:08:28 -07:00
Michael Lange
c583c00088
Add the elements of the manual scaling actions to the task-group-row component
2020-06-18 22:08:27 -07:00
Michael Lange
1182e76383
Add the min/max and policy y/n of a task group to the details ribbon
2020-06-18 22:08:27 -07:00
Michael Lange
c62db754a3
Server monitor page
2020-06-16 10:23:36 -07:00
Michael Lange
f745ce4269
Test coverage for new features of the server detail page
2020-06-16 10:23:36 -07:00
Michael Lange
56e66e76e6
Redesign the server detail page to be inline with everything else
2020-06-16 10:23:36 -07:00
Michael Lange
3381c835b1
Add nested monitor route to servers/server
2020-06-16 10:23:36 -07:00
Michael Lange
e6928cb01d
Refactor the servers/server pages to match the subnav style of nested pages
2020-06-16 10:23:36 -07:00
Michael Lange
bb499bba72
Show a helpful forbidden message when monitor access is not authorized
2020-06-16 10:23:36 -07:00
Michael Lange
129ccec82c
New component version of the forbidden-message partial
2020-06-16 10:23:36 -07:00
Michael Lange
cfee0f74a4
Test coverage for the AgentMonitor component
2020-06-16 10:23:36 -07:00
Michael Lange
cdc7db07c6
Refactor AgentMonitor levels handling to be simpler
2020-06-16 10:23:36 -07:00
Michael Lange
ca99ec774b
Implement the log streaming portion of the AgentMonitor component
2020-06-16 10:23:36 -07:00
Michael Lange
e0fbd88d26
Monitor component and query param interaction
2020-06-16 10:23:35 -07:00
Michael Lange
10e1371d34
Create new monitor route for clients
2020-06-16 10:23:35 -07:00
Buck Doyle
a4be011141
Rename clashing property
2020-06-15 10:14:36 -05:00
Buck Doyle
782bc3b7c0
Rename clashing action
2020-06-15 10:14:36 -05:00
Buck Doyle
2998deac50
Convert to angle bracket invocation ( #8075 )
...
This is mostly a direct application of the ember-angle-brackets-codemod.
I manually restored newlines in multi-line component invocations, usually
preserving file line length except for now-non-positional link-to @route.
I needed to rename task to taskState in some cases to avoid Ember
Concurrency naming conflicts.
2020-06-01 14:03:56 -05:00
Buck Doyle
9c0f85d7b6
UI: add filesystem browsing for allocations ( #7951 )
...
This partially addresses #7799 .
Task state filesystems are contained within a subdirectory of their
parent allocation, so almost everything that existed for browsing task
state filesystems was applicable to browsing allocations, just without
the task name prepended to the path. I aimed to push this differential
handling into as few contained places as possible.
The tests also have significant overlap, so this includes an extracted
behavior to run the same tests for allocations and task states.
2020-06-01 08:15:59 -05:00
Michael Lange
4588f2b5a3
Show the number of allocations in the the goto links on plugin detail
2020-05-20 14:22:47 -07:00
Michael Lange
360a0dfc08
Test coverage for the plugin allocations page
2020-05-19 19:22:12 -07:00
Michael Lange
e57d33a6b1
Test coverage for the limited alloc tables and goto links
2020-05-19 18:01:42 -07:00
Michael Lange
f683529b29
Limit the length of the alloc tables on the plugin overview page
2020-05-19 17:30:00 -07:00
Michael Lange
993cbe6bdb
Add a title to the plugin/allocations page
...
Typically these filterable list views don't have titles beyond the
breadcrumbs, but since this page has no search bar, the title really
helps balance it out.
2020-05-19 17:29:05 -07:00
Michael Lange
e611b6fcb9
Add filtering to the plugin allocations page
2020-05-18 23:55:52 -07:00
Michael Lange
02ca35e718
Scaffold the plugin allocations page
2020-05-18 23:36:12 -07:00
Michael Lange
3c6983370c
Add a subnav to the plugin page
2020-05-18 23:24:02 -07:00
Michael Lange
05da9a51b7
Fix scrunched availability chart bug on double chart layout
2020-05-18 22:48:55 -07:00
Michael Lange
c68b737fb5
Add plugin/allocations route
2020-05-18 22:48:23 -07:00
Michael Lange
49724673d4
Test coverage for node only view of the plugin detail page
2020-05-18 17:23:54 -07:00
Michael Lange
af5ac78eba
Add availability gauges to the plugin page object
2020-05-18 15:30:00 -07:00
Michael Lange
19916dc028
Handle node-only views
2020-05-18 15:30:00 -07:00
Michael Lange
dc36b40201
Merge pull request #7942 from hashicorp/b-ui/csi-alloc-relationships
...
UI: CSI Bug, Imperatively load controller/node plugin allocations
2020-05-13 10:20:09 -07:00
Michael Lange
0d9b9f5976
Test coverage for the gauge chart
2020-05-13 08:36:05 -07:00
Michael Lange
72ca69811c
Add gauge charts to the plugin detail page to measure availability
2020-05-13 08:36:05 -07:00
Michael Lange
3d7e3e6b9c
Gauge chart component
2020-05-13 08:36:04 -07:00
Michael Lange
c84070fc42
Key allocation rows to prevent unnecessary re-renders
2020-05-12 21:30:32 -07:00
Buck Doyle
c46d5517bb
Add ACL-checking to turn off exec button ( #7919 )
...
This closes #7453 . It adds an abstraction to handle the common
needs of ability-determination.
2020-05-11 14:43:17 -05:00
Mahmood Ali
faecf3a760
Add tests for running allocation client count ( #7906 )
...
* Add tests for running allocation client count
* remove redundant assertions
2020-05-11 12:28:31 -04:00
Michael Lange
5e6a89836b
The active namespace is now shared between jobs and storage
2020-05-08 17:35:27 -07:00
Michael Lange
7610493445
Searchable plugins
2020-05-07 17:25:24 -07:00
Michael Lange
be9d9176b1
Searchable volumes
2020-05-07 16:57:51 -07:00
Michael Lange
11a42b6075
Acceptance test for PluginDetail
2020-05-06 17:36:45 -07:00
Michael Lange
f3bae3b535
Don't wrap between icons and health text
2020-05-06 17:22:42 -07:00
Michael Lange
517db723cd
Sort allocations on the plugin detail page
2020-05-06 17:21:49 -07:00
Michael Lange
e98095bcbd
Page object for Plugins List
2020-05-06 17:21:48 -07:00
Michael Lange
59bb9a516e
Correct the table headers for dates on the volume page
2020-05-06 17:21:48 -07:00
Michael Lange
665ba3b2f7
Add a nodes table as well
2020-05-06 17:21:48 -07:00
Michael Lange
4ec53234d1
Add icons to the plugin alloc row component
2020-05-06 17:21:47 -07:00
Michael Lange
778e7fdb07
New PluginAllocationRow derivative of AllocationRow
2020-05-06 17:21:46 -07:00
Michael Lange
ca6849ebaa
Refactor AllocationRow to use AllocationStat
2020-05-06 17:21:45 -07:00
Michael Lange
f55133e76e
Separate AllocationStat component for containing the multiple states a stat tracker can be in
2020-05-06 17:21:45 -07:00
Michael Lange
d94177085e
Setup the plugin detail page
2020-05-06 17:21:45 -07:00
Michael Lange
b3f140fee6
Plugins table on the plugins list page
2020-05-06 17:21:44 -07:00
Michael Lange
bf35d92224
Clean up the csi volume page
2020-05-06 17:21:44 -07:00
Michael Lange
7d524ac341
Set up routes, controllers, and template basics for the plugins page
2020-05-06 17:21:43 -07:00
Michael Lange
dba9a25a13
Add a subnav to the volumes page
2020-05-06 17:21:43 -07:00
Michael Lange
343d4e0b81
Add constraints table to the volume detail page
2020-05-06 17:21:42 -07:00
Mahmood Ali
24e0c7f081
ui: only count running allocations in client view
...
In the client view list, only show running allocations count for each
client, rather than include already completed tasks.
This is done for two reasons:
First, consitency with the CLI: `nomad node status --allocs` only
shows running allocs.
Second, and more importantly, the count is useful to estimate how loaded
the clients are. Allocs that have completed (but not GCed yet) have
very little value to operators.
2020-05-05 21:31:58 -04:00
Jasmine Dahilig
a9004faa11
UI: Add representations for task lifecycles ( #7659 )
...
This adds details about task lifecycles to allocations, task groups,
and tasks. It includes a live-updating timeline-like chart on allocations.
2020-04-30 08:15:19 -05:00
Michael Lange
21ef3633be
Make the no connection error on the logs page dismissable
2020-04-29 17:36:17 -07:00
Buck Doyle
d4708860f0
UI: Fix exec popup link for job id ≠ name ( #7815 )
...
This closes #7814 . It makes URL-generation more central and changes
the exec URL to include job id instead of name.
2020-04-29 07:54:04 -05:00
Buck Doyle
438aec636a
UI: update exec styles to match conventions ( #7811 )
2020-04-28 08:33:07 -05:00
Michael Lange
35d4b48644
Merge pull request #7577 from hashicorp/f-ui/csi-beta-label
...
UI: Change CSI to Storage and mark it as beta
2020-04-06 13:21:11 -07:00
Buck Doyle
f10906e006
UI: add exec handling for dead jobs/task states ( #7637 )
...
This closes #7456 . It hides the terminal when the job is dead and
displays an error when trying to open an exec session for a task
that isn’t running. There’s a skipped test for the latter behaviour
that I’ll have to come back for.
2020-04-06 14:08:22 -05:00
Buck Doyle
fc7de8b153
UI: add live-updating to exec sidebar ( #7499 )
...
This closes #7454 . It makes use of the existing watchable tools to
allow the exec popup sidebar to be live-updating. It also adds
alphabetic sorting of task groups and tasks.
2020-04-06 13:52:42 -05:00
Michael Lange
2955d356e7
Test coverage for the volume detail page
2020-04-04 17:13:40 -07:00
Michael Lange
280fa5d53b
Annotate volume row and make the tr clickable
2020-04-03 19:27:44 -07:00
Michael Lange
70eb558b65
Acceptance tests for the page size selector on the jobs list view
2020-04-02 12:50:35 -07:00
Michael Lange
e0110e1757
Repeat new pagination pattern throughout the app
2020-04-02 12:50:34 -07:00
Michael Lange
8dc54a6164
Reset current page when changing page size
2020-04-02 12:50:33 -07:00
Michael Lange
3d02f61455
Replace crusty lt and gt with chevron icons
2020-04-02 12:50:32 -07:00
Michael Lange
53954d1bc3
Add page size select to the jobs list page
2020-04-02 12:50:30 -07:00
Michael Lange
06524fe5a7
Page size select component
2020-04-02 12:50:29 -07:00
Buck Doyle
3bc13a715e
UI: Fix confirmation position for right-aligned TSBs ( #7590 )
...
Without this, the confirmation text was extending beyond the
edge of the page.
2020-04-02 11:58:29 -05:00
Michael Lange
37a1a32209
Move beta to a tag
2020-04-01 10:49:47 -07:00
Michael Lange
28ba7e8075
Change CSI to Storage and mark it as beta
2020-03-31 18:21:55 -07:00
Buck Doyle
d70c3fbb3e
UI: Add exec loading template ( #7566 )
...
This closes #7460 . Before this, there was an incongruous flash
of the non-exec UI during loading.
2020-03-31 13:59:43 -05:00
Buck Doyle
61164b856e
UI: Change exec button to not show on dead jobs ( #7548 )
...
I still want to add acceptance tests for the existence
of these buttons but this change makes the exec button
for jobs behave similarly to the others.
2020-03-31 13:11:26 -05:00
Michael Lange
01341530e7
Add a volume facet to the clients list page
2020-03-30 17:33:44 -07:00
Michael Lange
1bd6a69067
UI: Support for CSI ( #7446 )
...
Closes #7197 #7199
Note: Test coverage is limited to adapter and serializer unit tests. All
acceptance tests have been stubbed and all features have been manually
tested end-to-end.
This represents Phase 1 of #6993 which is the core workflow of CSI in
the UI. It includes a couple new pages for viewing all external volumes
as well as the allocations associated with each. It also updates
existing volume related views on job and allocation pages to handle both
Host Volumes and CSI Volumes.
2020-03-25 07:51:26 -05:00
Buck Doyle
674da96a59
UI: add exec terminal ( #6697 )
...
This connects Xterm.js to a Nomad exec websocket so people
can interact on clients via live sessions. There are buttons on
job, allocation, task group, and task detail pages that open a
popup that lets them edit their shell command and start a
session.
More is to come, as recorded in issues.
2020-03-24 18:22:16 -05:00
Michael Lange
bc87d0a440
Remove the question mark from the Volume th
...
This makes it consistent with other volume columns across the app.
2020-02-14 16:56:51 -08:00
Michael Lange
0e6c81d3ef
Add volume table to the task detail page
2020-02-13 17:11:34 -08:00
Michael Lange
e4dcd9c2a4
Add volume requirements table to the task group page
2020-02-13 17:11:33 -08:00
Michael Lange
3fbd267263
Add volumes column to the task row component
2020-02-13 17:11:32 -08:00
Michael Lange
c57993f0a5
Add volume to the client row
2020-02-13 17:11:29 -08:00
Michael Lange
b3452cc33c
Add volume column to allocation row
2020-02-13 17:11:27 -08:00
Michael Lange
61a3b4919f
Add volume column to task group row
2020-02-13 17:11:26 -08:00
Michael Lange
18cf59b22f
Test coverage for the host volumes table
2020-02-13 17:11:25 -08:00
Michael Lange
1e40837731
Add a Host Volumes table to the client detail page
2020-02-13 17:11:24 -08:00
Michael Lange
89532e27e3
Add an icon inside the node status light
2020-01-31 12:55:59 -08:00
Michael Lange
9438330329
Add an explanatory tooltip to the unauthorized node drain popover
2020-01-31 09:41:33 -08:00
Michael Lange
4eac743262
Update disabled 'Run Job' button to use standard disabled style
2020-01-31 09:41:32 -08:00
Michael Lange
eb7d34df6b
Disable options for popover and drain-popover
2020-01-30 21:29:29 -08:00
Michael Lange
c7af942652
Enable the eligibility toggle conditionally based on acls
2020-01-30 21:29:22 -08:00
Michael Lange
b4ab7b02ba
Remove superfluous information from the client details ribbon
2020-01-23 16:34:36 -08:00
Michael Lange
1dd1298626
New test coverage for the drain capabilities
2020-01-23 16:34:34 -08:00
Michael Lange
0f41bfafad
Update existing tests
2020-01-23 16:34:33 -08:00
Michael Lange
5e95633481
PopoverMenu integration tests
2020-01-23 16:34:32 -08:00
Michael Lange
3b534bbdf9
Integration tests for the toggle component
2020-01-23 16:34:32 -08:00
Michael Lange
bc555f7758
Update the client detail page object
2020-01-23 16:34:31 -08:00
Michael Lange
8deea899c1
Model the notification pattern as a page object component
2020-01-23 16:34:30 -08:00
Michael Lange
ae85882ca7
Switch drain popover checkboxes for toggles
2020-01-23 16:34:29 -08:00
Michael Lange
76bfed5f25
Swap the eligiblity checkbox out for a toggle
2020-01-23 16:34:27 -08:00
Michael Lange
95e6068d5d
New toggle component
2020-01-23 16:34:27 -08:00
Michael Lange
faa15bc581
Force drain button in the drain info box
2020-01-23 16:34:26 -08:00
Michael Lange
80642b8868
Modifiers to the two-step-button
2020-01-23 16:34:25 -08:00
Michael Lange
7097591281
Drain stop and update and notifications
2020-01-23 16:34:24 -08:00
Michael Lange
9c9c6b08c3
Drain complete notification
2020-01-23 16:34:24 -08:00
Michael Lange
8b19a19908
Fill out the metrics and time since values in the drain summary
2020-01-23 16:34:23 -08:00
Michael Lange
35671a3bd4
Fill in the drain strategy ribbon values
2020-01-23 16:34:22 -08:00
Michael Lange
6e3e8d01e2
Stub out all the markup for the new drain strategy view
2020-01-23 16:34:22 -08:00
Michael Lange
47924d05d3
Polish for the drain popover
2020-01-23 16:34:21 -08:00
Michael Lange
fd16612be3
Factor out the drain popover and implement its behaviors
2020-01-23 16:34:18 -08:00