Luiz Aoqui
fdc023019e
ui: fix file formating
2021-12-17 19:47:25 -05:00
Luiz Aoqui
e6a202b408
ui: fix linting
2021-12-17 18:55:41 -05:00
Luiz Aoqui
dbb47b5bc9
ui: fix task group alloc filter and add tests
2021-12-17 18:49:47 -05:00
Luiz Aoqui
1ae40fcc37
ui: display empty message in the client details page if there are no allocations to show
2021-12-17 18:49:47 -05:00
Luiz Aoqui
660f4a8b1e
ui: fix client details page alloc status filter and replace task group with namespace and job
2021-12-17 18:49:42 -05:00
Jai
416a40bbcc
fix: more descriptive parameters in sort function
...
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
2021-12-17 09:46:29 -05:00
Jai
e813f27b7b
fix: remove eslint disable indent
2021-12-17 09:36:42 -05:00
Jai Bhagat
9d9042f95e
feat: add sliceClick to job-page/summary
2021-12-16 11:24:03 -05:00
Jai Bhagat
d508c10d8d
chore: prettify job-page/summary
2021-12-16 11:23:05 -05:00
Luiz Aoqui
92eccda949
ui: revert default mirage scenario to topoMedium and set product links in all scenarios ( #11649 )
2021-12-08 19:13:22 -05:00
Luiz Aoqui
b59a333727
UI: Add tests for prodcut links ( #11645 )
2021-12-07 19:51:17 -05:00
Michael Klein
c3d79d2e35
ui: cleanup server start script package.json ( #11622 )
2021-12-07 09:01:25 -05:00
Tim Gross
39acac33a0
ui: change Consul/Vault base URL field name ( #11589 )
...
Give ourselves some room for extension in the UI configuration block
by naming the field `ui_url`, which will let us have an `api_url`.
Fix the template path to ensure we're getting the right value from the
API.
2021-11-30 13:20:29 -05:00
Jai Bhagat
7241a8b24e
fix: add job version filter
2021-11-23 18:24:01 -05:00
Jai Bhagat
203940e26d
fix: filter callbacks use different param
2021-11-23 17:57:35 -05:00
Jai Bhagat
0341171a53
feat: 🎸 add consul and vault links to global header
2021-11-22 16:59:22 -05:00
Jai Bhagat
3f78c6e717
feat: add filters to alloc table in task group view
2021-11-20 15:07:27 -05:00
Jai Bhagat
2e08f71e5d
fix: re-order multiselect and search boxes
2021-11-20 14:48:28 -05:00
Jai Bhagat
2857e703d2
feat: add taskgroup filter to alloc table
2021-11-20 12:18:02 -05:00
Jai Bhagat
78fd8e350b
feat: add filter client allocations table
2021-11-20 11:22:48 -05:00
Jai Bhagat
883502fccf
disable eslint for indentation
2021-11-20 10:49:31 -05:00
Jai Bhagat
2f0f6fc0fa
feat: add taskgroup filter to alloc
2021-11-20 10:30:48 -05:00
Jai Bhagat
e3ae0ea7ae
feat: add client status filter
2021-11-20 10:21:28 -05:00
Jai Bhagat
8e15b6c12e
feat: add status filter to allocations
2021-11-20 10:04:15 -05:00
Tim Gross
e729133134
api: return 404 for alloc FS list/stat endpoints ( #11482 )
...
* api: return 404 for alloc FS list/stat endpoints
If the alloc filesystem doesn't have a file requested by the List
Files or Stat File API, we currently return a HTTP 500 error with the
expected "file not found" error message. Return a HTTP 404 error
instead.
* update FS Handler
Previously the FS handler would interpret a 500 status as a 404
in the adapter layer by checking if the response body contained
the text or is the response status
was 500 and then throw an error code for 404.
Co-authored-by: Jai Bhagat <jaybhagat841@gmail.com>
2021-11-17 11:15:07 -05:00
Luiz Aoqui
94b7071c98
ui: upgrade xterm 4.10.0 -> 4.15.0 and xterm-addon-fit 0.3.0 -> 0.5.0
2021-11-05 18:09:20 -04:00
Luiz Aoqui
532d6219df
ui: upgrade testem 3.2.0 -> 3.6.0
2021-11-05 18:09:19 -04:00
Luiz Aoqui
521acf688e
ui: upgrade sass 1.32.6 -> 1.43.4
2021-11-05 18:09:19 -04:00
Luiz Aoqui
c6d3950a90
ui: upgrade qunit-dom 1.6.0 -> 2.0.0
2021-11-05 18:09:18 -04:00
Luiz Aoqui
044153275a
ui: upgrade query-string 5.1.1 -> 7.0.1
2021-11-05 18:09:18 -04:00
Luiz Aoqui
f3ad191962
ui: upgrade pretender 3.4.3 -> 3.4.7
2021-11-05 18:09:17 -04:00
Luiz Aoqui
f96f8ea6f0
ui: upgrade lru_map 0.3.3 -> 0.4.1
2021-11-05 18:09:17 -04:00
Luiz Aoqui
09893b86bb
ui: upgrade lint-staged 10.5.3 -> 11.2.6
2021-11-05 18:09:17 -04:00
Luiz Aoqui
ef6b16454f
ui: upgrade glob 4.5.3 -> 7.2.0
2021-11-05 18:09:16 -04:00
Luiz Aoqui
a45ef5d47f
ui: minor fixes
2021-11-05 18:09:16 -04:00
Luiz Aoqui
38791ad142
ui: upgrade flat 4.1.1 -> 5.0.2
2021-11-05 18:09:16 -04:00
Luiz Aoqui
6183e22ae2
ui: fix after ugrading d3-selection
2021-11-05 18:09:15 -04:00
Luiz Aoqui
beadf3dbe5
ui: upgrade d3-selection 1.4.2 -> 3.0.0
2021-11-05 18:09:14 -04:00
Luiz Aoqui
fc3a92102a
ui: upgrade dependency d3-transition 1.3.2 -> 3.0.1
2021-11-05 18:09:14 -04:00
Luiz Aoqui
5d8e08dd7a
ui: upgrade dependency d3-time-format 2.3.0 -> 4.0.0
2021-11-05 18:09:14 -04:00
Luiz Aoqui
e21dd8c256
ui: fix tests broken by d3-format upgrade
2021-11-05 18:09:13 -04:00
Luiz Aoqui
6cdc5f349a
ui: upgrade dependency d3-shape 1.3.7 -> 3.0.1
2021-11-05 18:09:13 -04:00
Luiz Aoqui
2288f33e38
ui: fix tests broken by d3-format upgrade
2021-11-05 18:09:13 -04:00
Luiz Aoqui
b876b4cad2
ui: upgrade d3-scale 1.0.7 -> 4.0.2
2021-11-05 18:09:12 -04:00
Luiz Aoqui
2f2c65e546
ui: upgrade d3-format 1.4.5 -> 3.0.1
2021-11-05 18:09:12 -04:00
Luiz Aoqui
0c6d95c59c
ui: upgrade d3-axis 1.0.12 -> 3.0.0
2021-11-05 18:09:11 -04:00
Luiz Aoqui
b5329b3b5f
ui: upgrade d3-array 2.11.0 -> 3.1.1
2021-11-05 18:09:11 -04:00
Luiz Aoqui
eda0ef7aff
ui: upgrade core-js 3.0.0 -> 3.19.1
2021-11-05 18:09:11 -04:00
Luiz Aoqui
d47a9f7226
up: upgrade code-js 2.6.12 -> 3.0.0
2021-11-05 18:09:10 -04:00
Luiz Aoqui
f9ce6cc536
ui: upgrade codemirror 5.59.2 -> 5.63.3
2021-11-05 18:09:10 -04:00
Luiz Aoqui
86f246e251
ui: upgrade bulma 0.8.2 -> 0.9.3
2021-11-05 18:09:10 -04:00
Luiz Aoqui
5496aa9461
ui: upgrade bulma 0.7.5 -> 0.8.2
2021-11-05 18:09:09 -04:00
Luiz Aoqui
4bbf6fce8d
ui: upgrade bulma 0.6.1 -> 0.7.5
2021-11-05 18:09:09 -04:00
Luiz Aoqui
54870d99ea
ui: update babel-loader 8.2.2 -> 8.2.3
2021-11-05 18:09:08 -04:00
Luiz Aoqui
d532479dbc
ui: upgrade anser 1.4.10 -> 2.1.0
2021-11-05 18:09:08 -04:00
Luiz Aoqui
a96d43c1ba
upgrade @hashicorp/structure-icons 1.8.1 -> 1.9.2
2021-11-05 18:09:07 -04:00
Luiz Aoqui
0bf0410f3b
ui: upgrade @ember/optional-features 1.3.0 -> 2.0.0
2021-11-05 18:09:07 -04:00
Luiz Aoqui
31dd87a05a
ui: upgrade @babel/plugin-proposal-object-rest-spread @babel/plugin-transform-member-expression-literals 7.12.1 -> 7.16.0
2021-11-05 18:09:06 -04:00
pangratz
baabf1cb7f
chore: upgrade ember-data to 3.24
2021-11-04 16:27:42 +01:00
pangratz
4623d7d2d0
chore: upgrade ember-data to 3.20
2021-11-04 16:27:42 +01:00
pangratz
021adc5af2
chore: upgrade ember-data to 3.16 (and ember-data-model-fragments to 5.0.0-beta.2)
2021-11-04 16:27:42 +01:00
pangratz
0fdedc344b
fix: ensure reloading an allocation doesn't result in an infinite loop
...
`allocation.reload()` has differnt semantics for reloading, as it will
reload the record in the background and immediately resolve [1].
By using the stores' findRecord and specifying `backgroundReload:
false`, we make sure we await the response from the server and hereby
have the complete record once we continue in the code.
Using `allocation.reoad()` causes and infinite loop when we upgrade
ember-data to 3.16 (and model fragments to 5.0.0-beta.2).
[1] This is, unless `shouldBackgroundReload` on the adapter returns
false, but it's true by default.
2021-11-04 16:27:40 +01:00
pangratz
0978685e71
test: ensure we return a valid JSON response
...
An empty string is not a valid JSON response which is expected by this
endpoint.
2021-11-04 16:07:06 +01:00
Luiz Aoqui
645a87f6b3
ui: update task group alloc summary chart to use new SummaryLegendItem
component ( #11375 )
2021-10-25 11:14:01 -04:00
Luiz Aoqui
2c7bfb7000
ui: persist node drain settings ( #11368 )
2021-10-22 10:51:31 -04:00
Luiz Aoqui
dc5222f6e5
ui: display Nomad version in the Clients and Servers table ( #11366 )
2021-10-22 10:33:06 -04:00
Luiz Aoqui
a7eb72f7d1
ui: use get
to access job meta value ( #11370 )
2021-10-22 10:05:48 -04:00
Luiz Aoqui
b73ecf684b
ui: update favicon ( #11371 )
2021-10-22 09:40:38 -04:00
Luiz Aoqui
fce1a03897
ui: create tooltip component ( #11363 )
2021-10-21 13:12:33 -04:00
Luiz Aoqui
362c8c54f4
ui: set * as the default namespace selector ( #11357 )
2021-10-21 10:24:07 -04:00
Luiz Aoqui
dceeccfc5d
ui: add client name tooltip when displaying client ID in tables ( #11358 )
2021-10-21 10:23:06 -04:00
Luiz Aoqui
c0023c6c85
Update job details box ( #11288 )
2021-10-12 16:36:10 -04:00
Jai
563d609118
System Batch UI, Client Status Bar Chart and Client Tab page view ( #11078 )
2021-10-07 17:11:38 -04:00
Michael Lange
93124622a3
Migrate: New hierarchical separator
2021-10-06 14:05:32 -07:00
Michael Lange
76255ae0ee
Migrate decorator to new file layout
2021-10-06 14:05:32 -07:00
Michael Lange
fd7970cf0d
Override the app rootURL for storybook
...
Hopefully this work gets merged into ember-cli-storybook. For the time
being, we get a fork instead.
2021-10-06 14:05:32 -07:00
Michael Lange
c78bc5be3e
Storybook for ember workaround
2021-10-06 14:05:32 -07:00
Michael Lange
1a6008d015
Upgrade Storybook configuration for v6
2021-10-06 14:05:32 -07:00
Michael Lange
168c395282
Upgrade storybook from 5 to 6
2021-10-06 11:06:57 -07:00
dependabot[bot]
31874f3616
build(deps): bump postcss from 7.0.35 to 7.0.36 in /ui ( #10771 )
...
Bumps [postcss](https://github.com/postcss/postcss ) from 7.0.35 to 7.0.36.
- [Release notes](https://github.com/postcss/postcss/releases )
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md )
- [Commits](https://github.com/postcss/postcss/compare/7.0.35...7.0.36 )
---
updated-dependencies:
- dependency-name: postcss
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-08 19:44:11 -04:00
dependabot[bot]
398c928aa9
build(deps): bump hosted-git-info from 2.8.8 to 2.8.9 in /ui ( #10737 )
...
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info ) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases )
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md )
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9 )
---
updated-dependencies:
- dependency-name: hosted-git-info
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-08 19:43:23 -04:00
dependabot[bot]
a92c59b042
build(deps): bump ws from 7.4.3 to 7.4.6 in /ui ( #10669 )
...
Bumps [ws](https://github.com/websockets/ws ) from 7.4.3 to 7.4.6.
- [Release notes](https://github.com/websockets/ws/releases )
- [Commits](https://github.com/websockets/ws/compare/7.4.3...7.4.6 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-08 19:40:31 -04:00
dependabot[bot]
39b7cb0fa1
build(deps): bump ssri from 6.0.1 to 6.0.2 in /ui ( #10398 )
...
Bumps [ssri](https://github.com/npm/ssri ) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/npm/ssri/releases )
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md )
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-08 19:39:12 -04:00
dependabot[bot]
08417cf95c
build(deps): bump path-parse from 1.0.6 to 1.0.7 in /ui ( #11028 )
...
Bumps [path-parse](https://github.com/jbgutierrez/path-parse ) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases )
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7 )
---
updated-dependencies:
- dependency-name: path-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-08 18:01:59 -04:00
dependabot[bot]
1df803bfcf
build(deps): bump url-parse from 1.5.1 to 1.5.3 in /ui ( #11030 )
...
Bumps [url-parse](https://github.com/unshiftio/url-parse ) from 1.5.1 to 1.5.3.
- [Release notes](https://github.com/unshiftio/url-parse/releases )
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.1...1.5.3 )
---
updated-dependencies:
- dependency-name: url-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-08 17:59:45 -04:00
Luiz Aoqui
305f0b5702
ui: set the job namespace when redirecting after the job is dispatched ( #11141 )
2021-09-07 12:27:33 -04:00
Luiz Aoqui
eb0ed980a5
ui: set namespace when looking for and displaying children jobs ( #11110 )
2021-09-01 14:40:25 -04:00
Luiz Aoqui
c1d1906628
ui: add missing pipe separator in parameterized and periodic jobs ( #11020 )
2021-08-10 13:48:20 -04:00
Jai
29a7fe6efa
Merge pull request #10666 from hashicorp/b-ui/search-namespaces
...
ui: Fix fuzzy search namespace-handling
2021-08-10 13:13:20 -04:00
Jai Bhagat
a9b9132f35
edit hierarchy to lead with namespace before job
2021-08-10 10:35:36 -04:00
Luiz Aoqui
d283e90c35
ui: only dipslay "Dispatch Job" button on parameterized jobs ( #11019 )
2021-08-09 17:49:08 -04:00
Luiz Aoqui
a81e6a427d
ui: fix job dispatch page when job doesn't have any meta fields ( #10934 )
2021-08-03 13:50:43 -04:00
Jai Bhagat
e7f0cd28f3
edit fuzzy search callback logic
...
Namespaces are set-up in Nomad to be an object that has an id property.
However, namespaces actually don't have that shape. Our search was expecting
a namespace object, but we actually don't have a namespace assigned to jobs
in our config and namespace is set to null. Normally, these namespaces would
be set to default, but that would require us to refactor our Mirage config
if we wanted to assert that namespaces are 'default' and not null. So this is
a bandaid solution.
2021-07-26 17:25:43 -04:00
Jai Bhagat
1440b562e0
Merge remote-tracking branch 'origin/main' into b-ui/search-namespaces
2021-07-22 15:16:30 -04:00
Jai Bhagat
0fba0ce778
edit namespace property in handlebar file to use computed property in component
2021-07-22 11:43:45 -04:00
Jai Bhagat
e6b579ab8f
address merge conflicts
2021-07-21 17:30:11 -04:00
Nicholas Cioli
4d9fa38a5e
ui: add parameterized dispatch interface ( #10675 )
...
* ui: add parameterized dispatch interface
This commit adds a new interface for dispatching parameteried jobs, if
the user has the right permissions. The UI can be accessed by viewing a
parameterized job and clicking on the "Dispatch Job" button located in
the "Job Launches" section.
* fix failing lint test
* clean up dispatch and remove meta
This commit cleans up a few things that had typos and
inconsistent naming. In line with this, the custom
`meta` view was removed in favor of using the
included `AttributesTable`.
* ui: encode dispatch job payload and start adding tests
* ui: remove unused test imports
* ui: redesign job dispatch form
* ui: initial acceptance tests for dispatch job
* ui: generate parameterized job children with correct id format
* ui: fix job dispatch breadcrumb link
* ui: refactor job dispatch component into glimmer component and add form validation
* ui: remove unused CSS class
* ui: align job dispatch button
* ui: handle namespace-specific requests on job dispatch
* ui: rename payloadMissing to payloadHasError
* ui: don't re-fetch job spec on dispatch job
* ui: keep overview tab selected on job dispatch page
* ui: fix task and task-group linting
* ui: URL encode job id on dispatch job tests
* ui: fix error when job meta is null
* ui: handle job dispatch from adapter
* ui: add more tests for dispatch job page
* ui: add "job dispatch" capability check
* ui: update job dispatch from code review
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
2021-07-20 18:27:41 -04:00
Jai Bhagat
cc61ad66bf
refactoring for same regression in job versions
...
In job versions, if you have an ACL token with a write policy
you should be able to revert a job, however, that was not the
case here. This is because we're using ember-can to check if
the user can run a job. That permission relies on policiesSupportRunning
which uses a function called namespaceIncludesCapability. We're going to
need to refactor any cases that use this function.
2021-07-20 16:24:42 -04:00
Jai Bhagat
08a728ac91
edit ember-can to add additional attribute for namespace
...
We wanted the ability to get our namespace from query params
in order to do this, we're using additional attributes via
ember-can to set a bound property directly from our
handlebar file. This sets us up better in the event that
the namespace filter changes on the UI because our handlebar
file will be aware of the change, whereas our ability may not
update as the namespace filter updates.
2021-07-13 15:14:38 -04:00
Georges-Etienne Legendre
d057025ce6
Capture ACL Token from self API call for Reverse Proxy use-case ( #10563 )
...
* Proposed fix for #10561
Signed-off-by: Georges-Etienne Legendre <legege@legege.com>
* Add acceptance tests for reverse proxy use-case
Signed-off-by: Georges-Etienne Legendre <legege@legege.com>
* Use reads instead of computed/get
Signed-off-by: Georges-Etienne Legendre <legege@legege.com>
* Move back the line closer to the task
Signed-off-by: Georges-Etienne Legendre <legege@legege.com>
* skip a11y-audit-called lint rule on reverse proxy tests
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
2021-07-12 20:42:08 -04:00