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
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
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 Lange
95e8259447
Acceptance tests for the region switcher
2018-08-10 12:52:05 -07: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
Michael Lange
c5439df03a
Add the region qp to all requests made through the token service
2018-08-09 18:22:38 -07:00
Michael Lange
4473bb90c5
The application route doesn't need to fetch namespaces
2018-08-09 18:22:38 -07:00
Michael Lange
61bdc3bfe7
Sidestep a transpilation bug.
...
Default params don't make it into arguments which were being splatted
into the call to super.
2018-08-09 18:22:38 -07:00
Michael Lange
a5da73da31
Repeat the new namespace pattern for region
2018-08-09 18:22:38 -07:00
Michael Lange
4715696959
Clear up the data flow for namespaces
...
This is incredibly tricky with query params, since there is a bundle of
timing issues, lifecycle issues, missing features, and all around
gotchas with query params.
This solution has no observers and no instances of the system service
being set from the jobs controller.
The upside to this is no observers, much easier to follow logic, no more
dependent key chain reactions.
2018-08-09 18:22:38 -07:00
Michael Lange
7e6f02d0c0
Account for the service:system dependency due to region
2018-08-09 18:22:38 -07:00
Michael Lange
134ab34373
Remove the gutter menu from the allocations page
2018-08-09 18:22:38 -07:00
Michael Lange
d77504c539
Never show the menu divider for the first menu item
2018-08-09 18:22:38 -07:00
Michael Lange
95fcbda60a
Line breadcrumbs up flush with section content
2018-08-09 18:22:38 -07:00
Michael Lange
610db7c8c7
Make the dropdown ever so slightly off-white
2018-08-09 18:22:38 -07:00
Michael Lange
3f262143b6
Move the region switcher out of the secondary nav and into the gutter when the gutter is collapsed
2018-08-09 18:22:37 -07:00
Michael Lange
47210b3c93
Add region switcher to the global header
2018-08-09 18:22:37 -07:00
Michael Lange
8c3e5b2e1f
Only show the region switcher when there are multiple regions
2018-08-09 18:22:37 -07:00
Michael Lange
8d36ac8ece
Fetch regions and namespaces in the application route
2018-08-09 18:22:37 -07:00