Commit Graph

1319 Commits

Author SHA1 Message Date
Michael Lange
ea29d409ef Remove vendored xterm.js files 2020-06-03 09:25:19 -07:00
Buck Doyle
67e9690b7d 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
06baadd01e 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
e40f10bf9b Disable and remove the jquery integration 2020-05-27 09:16:36 -07:00
Michael Lange
97e26b82e4 Remove test code 2020-05-26 14:54:59 -07:00
Michael Lange
07ce413ce8 Remove jquery from the window resize helper 2020-05-26 14:35:57 -07:00
Michael Lange
4bb24ac8f0 Remove jquery from the lazy-click helper 2020-05-26 14:31:15 -07:00
Michael Lange
756069c9a2 Remove jquery from gauge chart 2020-05-26 14:13:29 -07:00
Michael Lange
718114cb98 Remove jquery from the distribution bar chart 2020-05-26 14:11:08 -07:00
Michael Lange
6ffa836a64 Remove jquery from line-chart 2020-05-26 14:05:45 -07:00
Michael Lange
f1acc77806 Merge pull request #8035 from hashicorp/f-ui/ember-fetch
UI: Replace jQuery with fetch within Ember Data
2020-05-26 12:32:03 -07:00
Buck Doyle
b965e6a84b UI: use lazy-loading for Xterm.js (#7964)
This updates Xterm.js to 4.6.0, which includes support for reverse-wraparound
mode, so we no longer need to use a vendored dependency, which closes #7461.
The interface for accessing the buffer that’s used for test assertions changed.

With the dependency now accessed conventionally, we can have it load only when
it’s needed by an exec popup window, which closes #7516. That saves us
≈60kb compressed in the dependency bundle!
2020-05-26 09:56:25 -05:00
Michael Lange
06720bdf8e Replace nulls with empty strings to have an empty response body 2020-05-21 10:35:41 -07:00
Michael Lange
62d859a552 Fix latent race condition in client detail test
Adding this settled makes this test pass now that Ember Data is using
fetch instead of jquery. The test was presumably always incorrect but
never flaked.
2020-05-21 10:35:40 -07:00
Michael Lange
115923d890 Type-check the ForbiddenError rather than ducktype it
Going off of the error message being "Forbidden" was brittle to begin
with and no longer works with Fetch due to the error message coming from
jquery underpinnings that were unobserved by Ember Data's attempted
recreation.
2020-05-21 10:35:40 -07:00
Michael Lange
3872b0be23 Always lower case headers now 2020-05-21 10:35:40 -07:00
Michael Lange
c792478224 Don't double query params for findQuery 2020-05-21 10:35:40 -07:00
Michael Lange
e49d4e5a81 Adjust header case, which changed with the migration to fetch 2020-05-21 10:35:40 -07:00
Michael Lange
505510915b Replace XHRToken with AbortController 2020-05-21 10:35:39 -07:00
Michael Lange
dc06b460e4 Use the AbortController provided by the fetch polyfill 2020-05-21 10:35:39 -07:00
Michael Lange
8332ed11e2 Instrument jquery ajax method to see if it is getting called anywhere 2020-05-21 10:35:39 -07:00
Michael Lange
2818655b96 Force the use of fetch despite jquery still being integrated 2020-05-21 10:35:39 -07:00
Michael Lange
5302c08b9b Prevent sticky query params for plugin alloc filtering 2020-05-20 14:34:16 -07:00
Michael Lange
57bad784ed Show the number of allocations in the the goto links on plugin detail 2020-05-20 14:22:47 -07:00
Michael Lange
2aeb1eca66 Test coverage for the plugin allocations page 2020-05-19 19:22:12 -07:00
Michael Lange
c90354179c Test coverage for the limited alloc tables and goto links 2020-05-19 18:01:42 -07:00
Michael Lange
24ba64a298 Limit the length of the alloc tables on the plugin overview page 2020-05-19 17:30:00 -07:00
Michael Lange
909d3b2055 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
f255a1c963 Expose existing qp serialization util as a helper 2020-05-19 17:28:23 -07:00
Michael Lange
58f23eefc3 Add filtering to the plugin allocations page 2020-05-18 23:55:52 -07:00
Michael Lange
4daae6b296 Scaffold the plugin allocations page 2020-05-18 23:36:12 -07:00
Michael Lange
1cdf519b18 Add a subnav to the plugin page 2020-05-18 23:24:02 -07:00
Michael Lange
7fba336963 Fix scrunched availability chart bug on double chart layout 2020-05-18 22:48:55 -07:00
Michael Lange
2b8c910114 Add plugin/allocations route 2020-05-18 22:48:23 -07:00
Michael Lange
cb5cea646c Work around a mirage bug 2020-05-18 17:23:55 -07:00
Michael Lange
f760027ccf Test coverage for node only view of the plugin detail page 2020-05-18 17:23:54 -07:00
Michael Lange
3da88c6925 Test coverage for the node-only change to the list view 2020-05-18 15:30:00 -07:00
Michael Lange
ebc402ac5f Add availability gauges to the plugin page object 2020-05-18 15:30:00 -07:00
Michael Lange
3cf81d2741 Handle node-only views 2020-05-18 15:30:00 -07:00
Buck Doyle
e884b5f923 Remove Ember server from Storybook startup (#7980)
The presence of Storybook’s preview-head.html file in the repository
is a constant annoyance: it’s only needed for Storybook and it changes
all the time, producing a lot of Git noise. By making it a separate
step to have the Ember CLI server running before starting Storybook,
we no longer need to have preview-head in the repository. It needed to
be present because there was a race condition where it was sometimes
not generated in time for the Storybook parallel startup.
2020-05-15 13:53:31 -05:00
Michael Lange
7fc380d35d Merge pull request #7971 from hashicorp/b-ui/plugin-extend-watchable
UI: Make the Plugin adapter extend Watchable
2020-05-15 09:15:59 -07:00
Michael Lange
3fcd5edd41 Make the Plugin adapter extend Watchable 2020-05-14 14:37:07 -07:00
Michael Lange
278b8499c6 Protect against making watch requests using adapters that don't extend Watchable 2020-05-14 14:36:38 -07:00
Nomad Release bot
807cfebe90 Generate files for 0.11.2 release 2020-05-14 20:49:42 +00:00
Buck Doyle
f491c86d91 Change exec URL-generation to use Ember get (#7963)
This fixes a bug in #7815 where you can’t open an exec window from
the allocation overview because accessing `allocation.job.plainId`
fails across the proxied relationship.
2020-05-14 14:09:09 -05:00
Michael Lange
1e7f1871bd 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
0a258b1a9f Test coverage for the gauge chart 2020-05-13 08:36:05 -07:00
Michael Lange
b3475add53 Adjust gauge chart stories 2020-05-13 08:36:05 -07:00
Michael Lange
83cd585682 Add gauge charts to the plugin detail page to measure availability 2020-05-13 08:36:05 -07:00
Michael Lange
df3c24f968 Bottom aligned columns variant 2020-05-13 08:36:05 -07:00