Commit Graph

56 Commits

Author SHA1 Message Date
Richard Cox 1f47fab434 Fix `Labels &amp Annotations` tab label
- Use simpler :label-key instead of :label
- Actual issue was that
  - some cases used Vue.prototype.t ... which did the escaping
  - others used `...mapGetters({ t: 'i18n/t' })` ... which didn't do the escaping and looked fine
- Guessing this might have been caused by a change in CreateEditView
2021-05-18 15:38:41 +01:00
Cody Jackson a646f80d57 Adding tls and auth fields to the email and webhook receivers
- Also fixed some mode issues with ArrayListGrouped that showed up on the view of these pages. Still need more tweaking to make it look good though.

rancher/dashboard#1818
2021-02-23 13:24:45 -07:00
lvuch 97079977e0 redundant spacer 2020-12-18 15:48:41 -07:00
Cody Jackson 40cc853ad7 Ensuring all fields of ingress rules updates the model
- Also noticed height issues witht he unlabled inputs so I fixed those too

rancher/dashboard#2059
2020-12-16 16:14:22 -07:00
Cody Jackson eb1359341b Fixed an ingress performance issue and added focus UX
- showPathType/useNestedBackendField was getting called frequently so I cached/memoized the response since it's a somewhat expensive call.
- Made it so when adding a path or adding a rule it focuses the appropriate input.

rancher/dashboard#1980
2020-12-09 01:20:10 -07:00
Cody Jackson 24b0552a96 Enabling the selection of non existant certificates in Ingress
- Also switched to using ArrayList within Certificate
- Small tweaks to ensure the tls objest is observable

rancher/dashboard#1812
2020-11-30 14:52:09 -07:00
Cody Jackson 6e65615cb8 Switching Ingress over to using the ArrayListGroup component
Made a few changes to improve the performance of the page. I experienced noticeable lag while editing the paths.
Updated KeyValue to address spacing and protip change requests.
2020-11-30 14:04:05 -07:00
Cody Jackson dc81c2bdeb Make a few changes to rule paths to better integrate the Labeled/Select changes
rancher/dashboard#1706
2020-11-25 14:18:47 -07:00
Vincent Fiduccia 388206ecfa
Merge branch 'master' into lh-cleanup 2020-11-23 13:28:34 -07:00
Vincent Fiduccia 0aa439c808
Merge pull request #1876 from westlywright/bugs.dropdown.buttons
New Select Components
2020-11-23 13:14:13 -07:00
Westly Wright 09ea85c9f0
New Select Components
Coalesce all v-select usage into one of three new select, labeled select, and multi-select components.
Additionally this updates the dropdown button component to use the
v-select lib as well.
Formatting on files i've touched.
Add translations where I found them missing in components I touched.
Fixes a lot of bugs related to dropdowns.

refactor vue select

focusing labeled select

update namespace filter to form select

update product switcher to use select

update workspace filter to use select

select should have no default placement otherwise dd is attached to body

combining and cleaning up select styles

header filter styling issues

more style cleanup

no longer need weird z-indexing after fixing dd's

lighten up scrollbar for dropdowns & dark theme

padding cleanup for header dd's

fix workload ports

input with select should use labled select or select if no label

All labeled select components using labels, otherwise select

min width and hide broswer clear button

style cleanup

Default searchable to false unless >= 10 options

rebase fixes

wip new dd button

change button dd to click action instead of nested templates

rebasing issue

close on select

remove button dropdown from keyvalue

wip

remove old button dropdown

more cleanup

fix bug where inline options would recompute

Fix borders for new style

product menu

remove button dropdown from list masthead

new namespace design

fix padding on apps nav
2020-11-23 09:24:55 -07:00
lvuch e42a626357 1875 2020-11-20 14:19:02 -07:00
Cody Jackson 21338302b1 Hiding Annotations/Labels tab when in view.
rancher/dashboard#1862
2020-11-18 14:17:44 -07:00
Cody Jackson b22f3a6e30 Improving the edit and view pages of ingress
- Move the default backend tab to be after rule
- Validation of the "target service" should be a tool tip and color
- Putting a "/" de-focuses
- Combine the rule and certs into one table instead of multiple boxes, need a name

rancher/dashboard#1755
2020-11-03 12:37:05 -07:00
Cody Jackson cca7a7914d Adding more versioning support to ingress
- default backend was renamed from backend to defaultBackend
- backend schema was changed to have nested port and service name

rancher/dashboard#1634
2020-10-27 13:21:38 -07:00
Cody Jackson 0c04da8eec Adding pathType to ingress rules
Creating an ingress in k8s 1.19 was failing because we didn't
have pathType. This adds the new option as an InputWithSelect.
Because this field is present in 1.18 I'm showing this field for
all implementations.

I also fixed a small issue under DefaultBackend where
selecing a TargetService was removing the port label. The
label field was just missing from the LabeledSelect component.

rancher/dashboard#1634
https://github.com/rancher/dashboard/issues/1301#issuecomment-705052366
2020-10-20 14:44:02 -07:00
Cody Jackson 808f1915bf Reorder the ingress tabs 2020-10-05 12:17:20 -07:00
lvuch f638ee4a2c user menu 2020-10-01 15:48:08 -07:00
Vincent Fiduccia 378ea3413f
Flip weights 2020-09-26 02:39:11 -07:00
Cody Jackson 532183eec7 Resolved several ingress issues
- The namespace label was removed so it uses the default
- Added a 'None' option to the service target of the default backend
- Corrected the sizine of the certificate remove buttons so they don't iterfere with one another

rancher/dashboard#1299
rancher/dashboard#1300
2020-09-22 12:59:39 -07:00
Cody Jackson 825fec9267 Adding a SecretSelector 2020-09-14 17:26:47 -07:00
Vincent Fiduccia 9683712293
Use default slot for CruResource form content instead of "define" 2020-09-10 03:00:18 -07:00
Cody Jackson 1c232cc0c2 Updating Ingress to make use of CruResource
rancher/dashboard#839
2020-08-24 15:22:43 -07:00
Cody Jackson 501a2bf8d8 Adding a tooltip to target service
- Added a tooltip to LabeledInput and LabeledSelect
- We now show the warning border and tooltip when a target service doesn't exist

https://github.com/rancher/dashboard/pull/816#issuecomment-655670728
2020-08-21 16:26:11 -07:00
Cody Jackson 94ebf0783e Updating ingress page to include new requests
- Enable freeform target service
- Add status support to LabeledSelect
- Indicate that the target service isn't one of the existing options with LabeledSelect warning status
- Update text

https://github.com/rancher/dashboard/issues/272#issuecomment-642436439
2020-08-20 15:12:01 -07:00
lvuch 33984ca71e workload tab cleanup 2020-08-18 12:09:12 -07:00
lvuch d9df3a1ac0 lint fix 2020-07-29 10:33:13 -07:00
lvuch 8681d7d24e 667 one more fix 2020-07-29 10:26:41 -07:00
lvuch 73d72e2ed9 667 fixes 2020-07-29 10:26:41 -07:00
Cody Jackson a20acbed5f Making ingress path editable
Path could be created but not edited. update() wasn't being called from the path input field.

There was also an issue with calling Object.keys on a potentially undefined object that was resolved.

rancher/dashboard#756
2020-07-22 12:31:58 -07:00
Vincent Fiduccia 49447e96ff
Merge pull request #828 from codyrancher/masthead-update
Masthead update
2020-07-16 18:19:45 -07:00
Cody Jackson ece87754c5 Masthead update
rancher/dashboard#817
2020-07-15 14:24:29 -07:00
lvuch c739a51c81 ingress span 2020-07-15 13:20:07 -07:00
lvuch dccd3b6701 667 2020-07-15 12:35:29 -07:00
lvuch 7b21c44fa9 785 spacing issues 2020-07-15 10:56:28 -07:00
Cody Jackson 71ba6f5cfe Updating the way we display rules on the ingress list and detail pages
- Accounts for undefined hosts and paths
- Accounts for wildcards in hosts
- Accounts for protocol+host+paths not being a url
- Removes links from paths on the detail page

rancher/dashboard#762
2020-07-09 09:14:39 -07:00
Cody Jackson 290dc0005f Appropriately filter serviceTargets for ingress page
We should only show the service targets that are in the current
resource's namespace.

rancher/dashboard#757
2020-06-30 12:24:19 -07:00
Vincent Fiduccia 1e90379ea0
Merge pull request #752 from lvuch/lh-0709
cluster switcher dropdown fix
2020-06-12 17:27:32 -07:00
Cody Jackson 73bb1c2132 Fix tls cert options on the ingress pages
It looks like a failed merge removed the TLS_CERT. This resulted
in all of the certs getting filtered out and not displayed as options.

rancher/dashboard#753
2020-06-12 12:50:50 -07:00
lvuch f85a9fde08 create resource page tune up 2020-06-11 15:47:05 -07:00
lvuch 324c350e3e lint fix 2020-06-11 15:01:16 -07:00
lvuch b0319e31f7 resource detail page clean up. spacing and headers 2020-06-11 14:19:48 -07:00
Cody Jackson 827f4b5a3f Implementing the new Ingress requirements and bugfixes
rancher#272
2020-06-08 09:55:45 -07:00
Vincent Fiduccia 2265c3f34d
LoadDeps -> fetch 2020-05-30 03:14:00 -07:00
lvuch bc31166d8c ingress edit 2020-05-29 14:16:25 -07:00
Vincent Fiduccia 31ea3b138e
Eslint changes new nuxt defaults want 2020-05-28 14:22:52 -07:00
Cody Jackson dfb3ed18bd Updating Ingress to implement new requirements
rancher/dashboard#272
2020-05-12 16:38:13 -07:00
Vincent Fiduccia 8bf1f45bca
Merge pull request #536 from codyrancher/template-switcher
Disable editing a constraint's constraint template
2020-04-26 14:46:41 -05:00
Cody Jackson ab70740ff9 Disable editing a constraint's constraint template
Editing a constraint's constraint template would require us to delete
the existing constraint and create a new one transactionally. Since
the backend doesn't support this transaction of we're disabling the ability
to edit which template is being used.

I also noticed a number of inconcictencies and poor behaviors
with the LabeledSelect component so I went ahead and made
it consistent with LabeledInput.
- The search field switched to a color distinct from the rest of the container
  when disabled and hovered.
- There wasn't a focus outline.
- The size was slightly different because it was in a container
- There was a distinct background color around the arrow indicator

rancher/dashboard#433
2020-04-24 16:25:01 -07:00
Nancy Butler b8a996c43f revert NameNsDescription and filter annotations, labels in create-edit-view 2020-04-24 12:04:15 -07:00