open-nomad/ui/package.json
Phil Renaud 3db9f11c37
[feat] Nomad Job Templates (#15746)
* Extend variables under the nomad path prefix to allow for job-templates (#15570)

* Extend variables under the nomad path prefix to allow for job-templates

* Add job-templates to error message hinting

* RadioCard component for Job Templates (#15582)

* chore: add

* test: component API

* ui: component template

* refact: remove  bc naming collission

* styles: remove SASS var causing conflicts

* Disallow specific variable at nomad/job-templates (#15681)

* Disallows variables at exactly nomad/job-templates

* idiomatic refactor

* Expanding nomad job init to accept a template flag (#15571)

* Adding a string flag for templates on job init

* data-down actions-up version of a custom template editor within variable

* Dont force grid on job template editor

* list-templates flag started

* Correctly slice from end of path name

* Pre-review cleanup

* Variable form acceptance test for job template editing

* Some review cleanup

* List Job templates test

* Example from template test

* Using must.assertions instead of require etc

* ui: add choose template button (#15596)

* ui: add new routes

* chore: update file directory

* ui: add choose template button

* test: button and page navigation

* refact: update var name

* ui: use `Button` component from `HDS` (#15607)

* ui: integrate  buttons

* refact: remove  helper

* ui: remove icons on non-tertiary buttons

* refact: update normalize method for key/value pairs (#15612)

* `revert`: `onCancel` for `JobDefinition`

The `onCancel` method isn't included in the component API for `JobEditor` and the primary cancel behavior exists outside of the component. With the exception of the `JobDefinition` page where we include this button in the top right of the component instead of next to the `Plan` button.

* style: increase button size

* style: keep lime green

* ui: select template (#15613)

* ui: deprecate unused component

* ui: deprecate tests

* ui: jobs.run.templates.index

* ui: update logic to handle templates

* refact: revert key/value changes

* style: padding for cards + buttons

* temp: fixtures for mirage testing

* Revert "refact: revert key/value changes"

This reverts commit 124e95d12140be38fc921f7e15243034092c4063.

* ui: guard template for unsaved job

* ui: handle reading template variable

* Revert "refact: update normalize method for key/value pairs (#15612)"

This reverts commit 6f5ffc9b610702aee7c47fbff742cc81f819ab74.

* revert: remove test fixtures

* revert: prettier problems

* refact: test doesnt need filter expression

* styling: button sizes and responsive cards

* refact: remove route guarding

* ui: update variable adapter

* refact: remove model editing behavior

* refact: model should query variables to populate editor

* ui: clear qp on exit

* refact: cleanup deprecated API

* refact: query all namespaces

* refact: deprecate action

* ui: rely on  collection

* refact: patch deprecate transition API

* refact: patch test to expect namespace qp

* styling: padding, conditionals

* ui: flashMessage on 404

* test: update for o(n+1) query

* ui: create new job template (#15744)

* refact: remove unused code

* refact: add type safety

* test: select template flow

* test: add data-test attrs

* chore: remove dead code

* test: create new job flow

* ui: add create button

* ui: create job template

* refact: no need for wildcard

* refact:  record instead of delete

* styling: spacing

* ui: add error handling and form validation to job create template (#15767)

* ui: handle server side errors

* ui: show error to prevent duplicate

* refact: conditional namespace

* ui: save as template flow (#15787)

* bug:  patches failing tests associated with `pretender` (#15812)

* refact: update assertion

* refact: test set-up

* ui: job templates manager view (#15815)

* ui: manager list view

* test: edit flow

* refact: deprecate column-helper

* ui: template edit and delete flow (#15823)

* ui: manager list view

* refact: update title

* refact: update permissions

* ui: template edit page

* bug: typo

* refact: update toast messages

* bug:  clear selections on exit (#15827)

* bug:  clear controllers on exit

* test: mirage config changes (#15828)

* refact: deprecate column-helper

* style: update z-index for HDS

* Revert "style: update z-index for HDS"

This reverts commit d3d87ceab6d083f7164941587448607838944fc1.

* refact: update delete button

* refact: edit redirect

* refact: patch reactivity issues

* styling: fixed width

* refact: override defaults

* styling: edit text causing overflow

* styling:  add inline text

Co-authored-by: Phil Renaud <phil.renaud@hashicorp.com>

* bug: edit `text` to `template`

Co-authored-by: Phil Renaud <phil.renaud@hashicorp.com>

Co-authored-by: Phil Renaud <phil.renaud@hashicorp.com>

* test:  delete flow job templates (#15896)

* refact: edit names

* bug:  set correct ref to store

* chore: trim whitespace:

* test: delete flow

* bug: reactively update view (#15904)

* Initialized default jobs (#15856)

* Initialized default jobs

* More jobs scaffolded

* Better commenting on a couple example job specs

* Adapter doing the work

* fall back to epic config

* Label format helper and custom serialization logic

* Test updates to account for a never-empty state

* Test suite uses settled and maintain RecordArray in adapter return

* Updates to hello-world and variables example jobspecs

* Parameterized job gets optional payload output

* Formatting changes for param and service discovery job templates

* Multi-group service discovery job

* Basic test for default templates (#15965)

* Basic test for default templates

* Percy snapshot for manage page

* Some late-breaking design changes

* Some copy edits to the header paragraphs for job templates (#15967)

* Added some init options for job templates (#15994)

* Async method for populating default job templates from the variable adapter

---------

Co-authored-by: Jai <41024828+ChaiWithJai@users.noreply.github.com>
2023-02-02 10:37:40 -05:00

192 lines
6.1 KiB
JSON

{
"name": "nomad-ui",
"version": "0.0.0",
"description": "The web ui for Nomad, by HashiCorp.",
"repository": "",
"directories": {
"doc": "doc",
"test": "tests"
},
"scripts": {
"build": "ember build --environment=production",
"precommit": "lint-staged",
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel \"lint:!(fix)\"",
"lint:fix": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*:fix",
"lint:hbs": "ember-template-lint .",
"lint:hbs:fix": "ember-template-lint . --fix",
"lint:js": "eslint . --cache",
"lint:js:fix": "eslint . --fix",
"start": "ember server",
"build-storybook": "STORYBOOK=true ember build && build-storybook -s dist",
"storybook": "STORYBOOK=true start-storybook -p 6006 -s dist",
"test": "npm-run-all lint test:*",
"test:ember": "percy exec -- ember test",
"local:qunitdom": "ember test --server --query=dockcontainer",
"local:exam": "ember exam --server --load-balance --parallel=4",
"seedless-test": "USE_PERCY=false ember test"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"{app,tests,config,lib,mirage,stories}/**/*.js": [
"prettier --write"
],
"app/styles/**/*.*": [
"prettier --write"
]
},
"devDependencies": {
"@babel/plugin-proposal-object-rest-spread": "^7.4.3",
"@ember/legacy-built-in-components": "^0.4.1",
"@ember/optional-features": "2.0.0",
"@ember/render-modifiers": "^2.0.4",
"@ember/test-helpers": "^2.6.0",
"@glimmer/component": "^1.0.4",
"@glimmer/tracking": "^1.0.4",
"@hashicorp/structure-icons": "^1.3.0",
"@storybook/ember-cli-storybook": "https://github.com/DingoEatingFuzz/ember-cli-storybook#c207500",
"anser": "^2.1.1",
"babel-eslint": "^10.1.0",
"base64-js": "^1.3.1",
"broccoli-asset-rev": "^3.0.0",
"bulma": "0.9.3",
"codemirror": "^5.58.2",
"core-js": "3.19.1",
"d3-array": "^3.1.1",
"d3-axis": "^3.0.0",
"d3-format": "^3.0.1",
"d3-scale": "^4.0.2",
"d3-selection": "^3.0.0",
"d3-shape": "^3.0.1",
"d3-time-format": "^4.0.0",
"d3-transition": "^3.0.1",
"duration-js": "^4.0.0",
"ember-a11y-testing": "^4.0.0",
"ember-auto-import": "^2.4.0",
"ember-can": "^4.1.0",
"ember-classic-decorator": "^3.0.0",
"ember-cli": "~3.28.5",
"ember-cli-babel": "^7.26.10",
"ember-cli-clipboard": "^0.13.0",
"ember-cli-dependency-checker": "^3.2.0",
"ember-cli-deprecation-workflow": "^2.1.0",
"ember-cli-flash": "^3.0.0",
"ember-cli-funnel": "^0.6.1",
"ember-cli-htmlbars": "^5.7.2",
"ember-cli-inject-live-reload": "^2.1.0",
"ember-cli-mirage": "2.2.0",
"ember-cli-moment-shim": "^3.8.0",
"ember-cli-page-object": "^2.0.0-beta.3",
"ember-cli-sass": "^10.0.0",
"ember-cli-sri": "^2.1.1",
"ember-cli-string-helpers": "^6.1.0",
"ember-cli-terser": "^4.0.2",
"ember-click-outside": "^3.0.0",
"ember-composable-helpers": "^5.0.0",
"ember-concurrency": "^2.2.1",
"ember-copy": "^2.0.1",
"ember-data": "~3.24",
"ember-data-model-fragments": "5.0.0-beta.3",
"ember-decorators": "^6.1.1",
"ember-exam": "6.1.0",
"ember-export-application-global": "^2.0.1",
"ember-fetch": "^8.1.1",
"ember-inflector": "^4.0.2",
"ember-inline-svg": "^1.0.1",
"ember-load-initializers": "^2.1.2",
"ember-maybe-import-regenerator": "^1.0.0",
"ember-modifier": "3.2.7",
"ember-moment": "^9.0.1",
"ember-named-blocks-polyfill": "^0.2.4",
"ember-on-resize-modifier": "^1.0.0",
"ember-overridable-computed": "^1.0.0",
"ember-page-title": "^7.0.0",
"ember-power-select": "^4.1.7",
"ember-qunit": "^5.1.5",
"ember-render-helpers": "^0.2.0",
"ember-resolver": "^8.0.3",
"ember-responsive": "^4.0.2",
"ember-sinon": "^5.0.0",
"ember-source": "~3.28.10",
"ember-stargate": "^0.4.1",
"ember-statecharts": "^0.13.2",
"ember-template-lint": "^3.15.0",
"ember-test-selectors": "^6.0.0",
"ember-truth-helpers": "^3.0.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-ember": "^10.5.9",
"eslint-plugin-ember-a11y-testing": "a11y-tool-sandbox/eslint-plugin-ember-a11y-testing#ca31c9698c7cb105f1c9761d98fcaca7d6874459",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.4.1",
"eslint-plugin-qunit": "^6.2.0",
"faker": "^4.1.0",
"flat": "^5.0.2",
"fuse.js": "^3.4.4",
"glob": "^7.2.0",
"http-proxy": "^1.1.6",
"husky": "^4.2.5",
"is-ip": "^3.1.0",
"jsonlint": "^1.6.3",
"lint-staged": "^11.2.6",
"loader.js": "^4.7.0",
"lodash.intersection": "^4.4.0",
"lodash.isequal": "^4.5.0",
"morgan": "^1.3.2",
"npm-run-all": "^4.1.5",
"pretender": "^3.0.1",
"prettier": "^2.5.1",
"query-string": "^7.0.1",
"qunit": "^2.17.2",
"qunit-dom": "^2.0.0",
"sass": "^1.17.3",
"testem": "^3.0.3",
"testem-multi-reporter": "^1.2.0",
"text-encoder-lite": "^2.0.0",
"webpack": "^5.69.1",
"xterm": "^4.6.0",
"xterm-addon-fit": "0.5.0"
},
"optionalDependencies": {
"@babel/plugin-transform-member-expression-literals": "^7.16.7",
"@storybook/addon-knobs": "^6.3.1",
"@storybook/addon-storysource": "^6.3.10",
"@storybook/addon-viewport": "^6.3.10",
"@storybook/addons": "^6.3.10",
"@storybook/ember": "^6.3.10",
"babel-loader": "^8.0.6",
"ember-cli-get-component-path-option": "^1.0.0",
"ember-cli-string-utils": "^1.1.0"
},
"engines": {
"node": "12.* || 14.* || >= 16"
},
"ember": {
"edition": "octane"
},
"private": true,
"ember-addon": {
"paths": [
"lib/bulma"
]
},
"dependencies": {
"@hashicorp/design-system-components": "^1.5.0",
"@hashicorp/ember-flight-icons": "^2.0.12",
"@percy/cli": "^1.6.1",
"@percy/ember": "^3.0.0",
"curved-arrows": "^0.1.0",
"d3": "^7.3.0",
"lru_map": "^0.4.1",
"no-case": "^3.0.4",
"tether": "^2.0.0",
"title-case": "^3.0.3"
},
"resolutions": {
"ember-auto-import": "^2.4.0"
}
}