Commit Graph

64 Commits

Author SHA1 Message Date
Nancy Butler f5b9fb4c13 yaml btn errors 2020-12-21 10:35:43 -07:00
Vincent Fiduccia 119687c842
Fix yaml edit from form 2020-12-10 00:16:39 -07:00
Vincent Fiduccia 604cfccfc1
Remove the rest of resourceDetail asyncData, fetch fixes
- parentOverrides now part of type-map/configureType to set and  type-map/optionsFor to get.
- Remove asyncData from resourceDetail flow
- Rehydrate fetch() data
2020-12-02 03:31:25 -07:00
Vincent Fiduccia 936f54da24
fetch vs asyncData, moreDetails, parentOverride, pod moredetails 2020-11-30 23:28:21 -07:00
Vincent Fiduccia e01e75bf2f
Detail/Config/YAML toggle 2020-11-30 23:16:38 -07:00
Cody Jackson 95976411ba Adding alertmanager Receiver type
To support receiver types I made it so that we can spoof types which
have any form we specify here in the UI. It will be useful for alertmanager
Routes and I think it could also be useful for things like OPA constraints
and workloads if we wish to update those.

rancher/dashboard#1238
2020-10-23 10:43:57 -07:00
Vincent Fiduccia e974816072
Show error if creating with YAML and no namespace on namespaced type 2020-09-28 03:41:25 -07:00
Vincent Fiduccia cde5635cd7
Form actions on the right 2020-09-25 02:33:06 -07:00
Vincent Fiduccia cce5a46c78
Use product.inStore instead of assuming cluster store 2020-09-11 03:08:25 -07:00
Vincent Fiduccia 565520c47a
Fleet clustergroup creaet 2020-09-04 03:46:01 -07:00
Westly Wright 1c11e628e0
Fix up apply hooks for resource yaml and workloads 2020-08-25 09:50:51 -07:00
Westly Wright 52112adae8
Fold comments in yaml regardless of create or edit 2020-08-25 09:50:50 -07:00
Cody Jackson fc0f099179 Switched existing code to use FileSelector 2020-08-10 15:08:53 -07:00
Nancy Butler fa7e1afa39 fix CruResource
put CruResource in Workload

show/hide tabs

tab scrolling behavior

masthead nameDisplay
2020-08-05 15:39:49 -07:00
Westly Wright eb4156e0bd
PR feedback items
Refactor `canCreate` to `validationPassed` to make variable intention clear.
Refactor markup so subtype selection is not limited to form only view.
Refactor to offer Yaml preview on edit.
2020-08-04 10:23:38 -07:00
Westly Wright 53a204e1b7
resource yaml changes 2020-08-03 08:42:38 -07:00
Westly Wright d43806e762
basic back modal 2020-08-03 08:42:38 -07:00
Vincent Fiduccia 471cd3ada3
Fold annotations in YAML if certain ones are found 2020-07-22 03:55:42 -07:00
Nancy Butler 6d352f9beb do not clean yamls for create 2020-06-09 13:27:45 -07:00
Vincent Fiduccia 3a6a56aeba
multiline-ternary: never 2020-06-04 16:22:48 -07:00
Vincent Fiduccia d6bc32ffd4
Fold managedFields and sometimes status 2020-05-30 03:14:00 -07:00
Nancy Butler 1bde772cf2 yaml in generic detail 2020-05-26 09:47:40 -07:00
Vincent Fiduccia 71f3b8cdec
store.getters gets reassigned as stores register, so proxy steve's context.rootGetters so that it's always the full list of them 2020-05-20 15:26:04 -07:00
Westly Wright a1a48aec28
translations 2020-05-18 13:54:35 -07:00
Nancy Butler 2ecc94b9e2 . 2020-05-14 12:51:28 -07:00
Nancy Butler 3c370f56fa remove upload toggle prop in favor of calling methods on refs 2020-05-04 17:32:32 -07:00
Nancy Butler fdbe07f527 use prop instead of ref to show yaml fil upload 2020-05-04 16:29:16 -07:00
Nancy Butler e13a597690 add file uploader to yamleditor; add button to resourcedetail 2020-05-04 14:29:34 -07:00
Westly Wright 702284ca11
remove unneeded style imports 2020-05-01 09:50:30 -07:00
Cody Jackson c5052b7cb7 Fixing warnings
This fixes runtime and lint warnings. It also makes the linter
treat warnings as errors now so we'll stop checking in code that has
warnings.

If you want to avoid prs with warnings consider adding a
'yarn lint' or 'yarn build' to .git/hooks/pre-push.
2020-04-16 13:35:34 -07:00
Cody Jackson fea71ffae2 Refactored YAML editing to better support parameters
We needed a way to support arbitrarily complex parameters in both
type and nesting level. As a temporary solution I enabled the user
to toggle between a key value component and a yaml editor.

To enable this I refactored ResourceYaml into a composable YamlEditor
component that can be used elsewhere.

rancher/dashboard#388
rancher/dashboard#380
2020-04-15 09:53:24 -07:00
Vincent Fiduccia 09df5918db
Move the rest of workloads into standard _resource 2020-04-14 16:16:11 -07:00
Vincent Fiduccia 22f4ef977b
Unify Resource(Detail|Yaml) headers and behaviors 2020-04-14 16:16:10 -07:00
Nancy Butler 654aa72163 workload action menu 2020-04-09 11:27:18 -07:00
Vincent Fiduccia 4302339033
Merge pull request #443 from codyrancher/cloning
Improving the functionality of YAML clone
2020-03-27 16:18:35 -07:00
Cody Jackson e84446c012 Improving the functionality of YAML clone
Cloning didn't provide the create or preview buttons and when displayed attempted to update a resource instead of create a
new one.

This will add the buttons and will allow the new resource to be created.

rancher/dashboard#374
2020-03-27 14:40:49 -07:00
Cody Jackson 76114f5ccf Prevent the edit and diff buttons from overlapping
This is a temporary fix until we get new mocks from design for the
diff view.

rancher/dashboard#379
2020-03-27 13:27:35 -07:00
Cody Jackson 7d7e3b60b7 Updated the gatekeeper constraints and templates
this should better reflect the new Mocks.

rancher/dashboard#305
2020-03-15 01:34:30 -07:00
Cody Jackson 1265853652 Implement the view, create and edit pages for constraints
This implementst the view, create and edit pages for the
gatekeeper constraints. The constraint templates weren't
touched since we intend to only use the yaml editor.

rancher/dashboard#307
2020-03-02 12:43:39 -07:00
Vincent Fiduccia a3574d14fc
Header, start nav reorg 2020-02-20 11:11:22 -07:00
Westly Wright 50c3492b2d
revert css path change and correctly import scss files in storybook 2020-01-20 10:59:58 -07:00
Westly Wright da186d5759
Add Storybookjs (#285)
* update deps

* Add storybookjs and setup config

* Change scss import paths to absolute paths for Storybook to work

* Add storybookjs centered addon

* Add storybookjs backgrounds and tweak body styles

* Add storybookjs docs addon

* Enable better nesting config

* add design systems

* Change app css import location

* package update

* roll back to previous lint versions for upgrade error & fix lint err
2020-01-17 10:09:11 -07:00
Vincent Fiduccia b675d34318
Rioview support 2019-11-16 16:00:47 -07:00
Vincent Fiduccia 671e33bdc1
Commit to change 2019-11-16 01:31:48 -07:00
lvuch 7f91119889 101 split unified fix 2019-11-15 19:07:58 -07:00
lvuch bfda3ce1ad issue 107 and yaml 2019-11-14 09:20:57 -07:00
Vincent Fiduccia 2330f43b2c
Auto size FileDiff 2019-11-12 21:56:35 -07:00
Vincent Fiduccia 90d0822aa5
Start stack create 2019-11-07 01:41:16 -07:00
Vincent Fiduccia e9d058edbe
Tweaks 2019-11-05 01:49:58 -07:00
Vincent Fiduccia b530db815f
More crud 2019-10-09 10:47:55 -07:00