Commit Graph

12389 Commits

Author SHA1 Message Date
Michael Lange
da8a6e4f2b Spiff up the form buttons with type and disabled attributes 2018-08-17 18:20:15 -07:00
Michael Lange
a5d6790eba Acceptance tests for job run page 2018-08-16 17:22:58 -07:00
Michael Lange
635411f750 Rework job parse mirage request to get the job ID out of the payload 2018-08-16 17:22:22 -07:00
Michael Lange
c6fa7575d1 New Page Object component for common error formatting 2018-08-16 10:57:56 -07:00
Michael Lange
3b5d96b234 New PageObject helper for getting and setting CodeMirror values 2018-08-16 10:57:13 -07:00
Michael Lange
875ba9971e New test helper for getting the underlying CodeMirror instance from a dom selector 2018-08-16 10:56:37 -07:00
Michael Lange
3b8b894ffd Acceptance test for the jobs list page 2018-08-15 17:12:18 -07:00
Michael Lange
4b12c069f6 Use the job name as the job id
This has bit me more than once. It's best just to make Mirage consistent
with the API even if it currently means indeterminate job ids
2018-08-15 17:00:08 -07:00
Michael Lange
09e6432e38 Support parse, plan, and run endpoints in mirage 2018-08-15 16:59:42 -07:00
Michael Lange
a970741198 Move the Diff property read out of the template 2018-08-15 16:58:54 -07:00
Michael Lange
f29f4351f1 Error messages for job submit 2018-08-15 15:18:38 -07:00
Michael Lange
f2128872ce Run job UI and API workflows 2018-08-14 18:26:26 -07:00
Michael Lange
21da150b93 Remove unused solarized theme configuration 2018-08-14 17:37:44 -07:00
Michael Lange
27f4a59259 Fix no allocations error message layout for the recent allocations component 2018-08-14 17:37:15 -07:00
Michael Lange
da1e179704 Parse and Plan API and UI workflows 2018-08-14 17:29:51 -07:00
Michael Lange
302401d45c Add breadcrumb to the run job page 2018-08-14 13:06:26 -07:00
Michael Lange
33956a69da New job run page and navigation to get there. 2018-08-14 12:54:54 -07:00
Michael Lange
53f2ca3127 New layout helper for associating two elements vertically
By default, blocks have a margin of 1.5em to create a consistent
vertical rhythm. However, sometimes elements need to be associated with
the element above them. In this cases, the gap between elements needs to
be tighter. There are many ways to do this, but this approach asks the
latter content to be marked as associative. The implication is that the
association is with the previous block.
2018-08-14 12:47:28 -07:00
Michael Lange
751b6e2fd6 Enforce a min-height for the code editor component 2018-08-14 12:46:55 -07:00
Michael Lange
dafe580415 Merge pull request #4541 from hashicorp/f-ui-new-json-viewer
UI: New JSON viewer
2018-08-13 17:15:14 -07:00
Michael Lange
dcd8133461 Remove the old json viewer 2018-08-13 17:04:15 -07:00
Michael Lange
ee08e40071 Delete the removed "depth" aspect of json viewer from the styleguide 2018-08-13 17:04:14 -07:00
Michael Lange
8291373d24 Theme CodeMirror
Borrowed heavily from Vault
2018-08-13 17:04:14 -07:00
Michael Lange
19d7202bd1 Use ivy-codemirror in the JSON Viewer component 2018-08-13 17:04:14 -07:00
Michael Lange
b58c229625 Introduce ivy-codemirror 2018-08-13 17:03:20 -07:00
Michael Lange
3fd11d40a4 Merge pull request #4572 from hashicorp/f-ui-region-switcher
UI: Region Switcher
2018-08-13 16:33:08 -07:00
Michael Lange
a61ad7ac59 List the new region mirage env var in the environment file 2018-08-13 16:18:53 -07:00
Michael Lange
3192267039 Use the model hook and setupController hook instead of afterModel
This is a more idiomatic way to handle the QP resetting in the
application controller.
2018-08-13 16:18:06 -07:00
Michael Schurter
b05b00fb47 Merge pull request #4568 from hashicorp/vendor-fix-blake2b
vendor: fix blake2b on non-amd64 archs
2018-08-13 15:46:32 -07:00
Chelsea Komlo
468de05861 Merge pull request #4570 from hashicorp/b-disable-checkpoint
Skip update checking if DisableUpdateCheck is set to true
2018-08-13 16:02:47 -04:00
Alex Dadgar
a58faf019a Merge pull request #4574 from hashicorp/f-base-go-plugin
Base go-plugin client/server
2018-08-13 11:10:54 -07:00
Alex Dadgar
2de5989e37 vet 2018-08-13 11:10:33 -07:00
Alex Dadgar
1736d93430 Review comments 2018-08-13 11:01:44 -07:00
Charlie Voiselle
5f03b31f30 Fix typo 2018-08-13 10:38:22 -04:00
Alex Dadgar
cfc6992e4a Initial go-plugin 2018-08-12 15:58:39 -07:00
Michael Lange
95e8259447 Acceptance tests for the region switcher 2018-08-10 12:52:05 -07:00
Alex Dadgar
6cd2c19b9b move protos 2018-08-10 11:16:55 -07:00
Alex Dadgar
640c1bc5f3 Merge pull request #4571 from hashicorp/f-base-plugin-configs
Convert HCL Interface values to Cty Values
2018-08-10 11:16:23 -07:00
Alex Dadgar
42a51e98a0 block attr spec 2018-08-10 11:14:12 -07:00
Alex Dadgar
332b701a0e hcl interface to cty function 2018-08-10 10:51:23 -07:00
Chelsea Holland Komlo
82c096bc60 skip update checking if DisableUpdateCheck is set to true 2018-08-10 13:08:13 -04:00
Michael Lange
ae464a01dc Unit test coverage for adding the region param to requests 2018-08-09 20:27:54 -07:00
Michael Lange
dbc18c9d46 Properly model regions in Mirage 2018-08-09 19:57:21 -07:00
Michael Lange
c55df8ff4b Specify the request type for token self
Without this, the data (query params) get json stringified
2018-08-09 18:22:39 -07:00
Michael Lange
362aff0fab Simplify the control flow around changing namespaces and regions
The UI will no longer try to redirect to the appropriate namespace or
region if one is found in localStorage. Instead, it will assume that
the lack of query param means the default namespaces or region is
desired.
2018-08-09 18:22:39 -07:00
Michael Lange
b767a87422 Update tests to handle region switching 2018-08-09 18:22:39 -07:00
Michael Lange
822d99833b Handle errors when getting regions or the default regions
This protects against volatility in the server and, more commonly, ACLs
returning forbidden responses.
2018-08-09 18:22:39 -07:00
Michael Lange
fe315fe6d1 Address an issue with certain dependent keys 2018-08-09 18:22:39 -07:00
Michael Lange
ae0bf90b79 Only deal with the region param (in the app and in api calls) when necessary 2018-08-09 18:22:39 -07:00
Michael Lange
d690709462 Get the server's region (aka default region) from the API
The default region shouldn't be used as a qp since no qp means the same
thing.
2018-08-09 18:22:38 -07:00