Commit Graph

349 Commits

Author SHA1 Message Date
Francesco Torchia 8bc1a8534a
GitPicker, load source refactoring
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-05-22 12:47:49 +02:00
Francesco Torchia 995eccca18
GitPicker, remove initial ghType from persistent data; code refactoring 2023-05-22 12:42:40 +02:00
Francesco Torchia 9517887a87
GitPicker, reset OR restore source data in when editing Application source
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-05-22 12:39:23 +02:00
Francesco Torchia fcd632cca3
Manage new origin.git.provider type from Applications API response
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-05-22 10:10:24 +02:00
Francesco Torchia b805508ee2
Remove repo.id from persisted gitLab data; use a new API to fetch repo details
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-05-11 20:37:58 +02:00
Richard Cox d0cad43b3b fix linting 2023-04-11 20:03:08 +01:00
Richard Cox 5c6c7500ef Fixes post merge
includes
- lots of fixes given changes to app env var and new gitlab feature
- beefing up / tidying up interfaces
2023-04-11 19:59:57 +01:00
Francesco Torchia 5c9a38bd63
GitPicker, code refacoring and fix errors handling in API calls
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-03-19 18:58:07 +01:00
Francesco Torchia 038d7996cb
Address Request changes:
- #199 clear username when source type change
- safe git model normalization, resolve crash of no-authors commits
- TODO in AppSource, remove unSafeType
- TODO in GitPicker, remove any types
- TODO in GitPicker, reset() function refactoring
- application-action.js, switch sourceType refactoring
- replace lodash/startCase with ucFirst

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-03-19 18:57:17 +01:00
Francesco Torchia 8f44375d14
gitlab integration, fix avatars
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-03-19 16:33:13 +01:00
Francesco Torchia 11b5c2cfae
gitLab integration
- add gitLab APIs
- convert UI components to support generic Git repos
- code refactoring

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-03-19 16:33:06 +01:00
Sorin c7594ba65c
UI/batch deleter (#8111)
* Handles parallel remove when resources bulkRemove is not implemented

* bulkRemove Improvements
- Move bulkRemove into models that are compatible
- Use `model.linkFor('self')`
- Fold in and simplify buildBulkLink
- Ensure opt.url isn't mutated given remove of resources across namespaces
- Ensure all removed resources run through `$dispatch('remove'`

* unbind resources before remove

---------

Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-02-13 10:33:29 +01:00
Sorin 00e389d6da
Persistent deployment data (#6852)
* Persists Github deployment data
* Moves GitHub Deployment card to own component
* Fixes/Tweaks
- Add indicator to app detail commits list to show deployed commit
- Add l10n
- hide github description field if there's no description (phantom icon)
- add typing for app env var
- Fix application of app env var (add/remove as appropriate)

---------

Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-02-10 15:14:20 +01:00
Sorin 93381d9cf3
Initial dashboard view (#7519)
* Dashboard view with quick access and details about resources.

---------

Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-02-10 14:23:35 +01:00
Sorin 638eaa10ba
UI/pasting content (#7888)
* Pasting into the input will not replace the initial text but append it

---------

Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-02-10 11:06:23 +01:00
Richard Cox 220cc89bdd Lint fixes 2022-11-29 12:34:57 +00:00
Richard Cox 33561db8e0 Merge remote-tracking branch 'upstream/master' into epinio-dev 2022-11-29 12:32:10 +00:00
Shavindra 0fc0de8386
Remove last item from navigation filter onMouseDown (#7310)
* Remove last item from navigation filter onMouseDown
2022-11-28 10:07:53 +00:00
Neil MacDougall f0df19764f
Add node inactive warning indicator (#7548) 2022-11-28 09:15:15 +00:00
Alexandre Alves b63c360069
Unit testing components (#7420)
* unit testing asyncbutton and backlink components

* add several unit tests

* minor update to component due to unit tests + add unit test for GrowlManager

* update unit tests

* update unit tests

* update unit tests

* update unit tests

* update unit tests

* add missing test to growlmanager

* update unit tests

* fix growl tests

* fix linting issues on yarn build

* address PR comments

* fix lint issues

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2022-11-25 09:48:17 +00:00
Nancy 2d6b221c1e
Unit test some table formatters (#7460)
* test live date formatter

* unit test link detail

* date formatter test; si formatter test

* live date test fix

* fix ts lint error in livedate test
2022-11-23 11:59:14 -07:00
Alexandre Alves cc70669671
fix issue where ldap active directory errors arent being displayed (#7497)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2022-11-23 11:11:34 +00:00
Ilya Artamonov 4af80a442f
fix: Fixed typo in class name (#7449) 2022-11-22 12:12:09 -05:00
Giuseppe Leo eb5e00a84f
Fix linting issue after rule changes due merge overlapping (#7521) 2022-11-22 17:42:19 +01:00
Nancy 8a0f8211bd
allow cloning roles; fix unlabeled multi-select style (#7258)
* allow cloning roles; fix unlabaled taggable select style

* fix role edit/view config style inconsistency
2022-11-22 08:29:47 -07:00
Sorin e204ce2b3e
Application card test (#7402)
* Application card unit-test
2022-11-22 15:22:05 +01:00
Sorin 1ff87c740f
Removes the extra style from nav/Header component (#7483)
Removes extra style from the navHeader component.
2022-11-21 15:40:33 +01:00
Richard Cox ab2ea9bc9f
Merge pull request #7422 from richard-cox/fix-multi-bulk-actions
Fix initial display of table bulk actions
2022-11-21 13:56:45 +00:00
Catherine Luse 519d2dce9b
Merge pull request #7498 from catherineluse/namespacefilter
Cluster explorer no longer crashes
2022-11-18 09:58:01 -07:00
Catherine Luse e0a44da2fb Cluster explorer no longer crashes 2022-11-18 08:30:39 -07:00
Francesco Torchia 551ecc3afa
Merge pull request #7147 from torchiaf/fix/4733
Configure Shell/Terminal location
2022-11-18 15:39:22 +01:00
Francesco Torchia bf0645fcb2
Merge pull request #7047 from torchiaf/fix/5798
NamespaceFilter: add Enter shortcut
2022-11-18 15:39:01 +01:00
Francesco Torchia 6125371a43
Configure Shell/Terminal location
- add ability to pin the WindowManager component to Left/Right/Bottom
- add new component DraggableZone
- update yarn.lock, rancher/icons#v2.0.6
- adapt to light/dark theme

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2022-11-18 15:18:48 +01:00
Francesco Torchia 2b1efa3583
Merge pull request #7267 from torchiaf/fix/7112
component: CruResource
2022-11-18 15:09:24 +01:00
Francesco Torchia 45a68c783f
NamespaceFilter: add Enter shortcut
- add Enter key shortcut in case of searching word returns exactly one result.
- fix css

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2022-11-18 15:02:44 +01:00
Francesco Torchia f192b9db78
Merge pull request #7456 from torchiaf/fix/7455
unit tests: Collapse, SimpleBox
2022-11-18 13:16:29 +01:00
Giuseppe Leo 8bb5896292
Fix format linting issues (#7494) 2022-11-18 12:05:36 +01:00
Francesco Torchia 397069c6b3
Merge pull request #7297 from torchiaf/fix/7264
Sortable Table: prevent sort icons wrap
2022-11-18 10:54:47 +01:00
Francesco Torchia 9a98a8ddad
Merge pull request #7262 from torchiaf/fix/6925
component: SelectPrincipal
2022-11-18 10:36:09 +01:00
Giuseppe Leo cd947db43b
Add unit tests for Namespace filtering in resources (#7465)
* Prevent errors if no resource is retrieved for NamespaceFilter; Add data-testid attributes for testing purposes and ocmments for readability

* Add NamespaceFilter component tests

* Add Workload loading unit tests

* Restore mokcs globally after each test

* Add issue number to TODO comment
2022-11-18 00:05:42 +01:00
Catherine Luse 52bcdfe88c
Merge pull request #7351 from catherineluse/logs-container
Minor log styling fix
2022-11-17 16:03:16 -07:00
Phillip Rak a54c91d73d
Merge pull request #7475 from rak-phillip/chore/eslint-key-spacing
Update key-spacing eslint rule
2022-11-17 13:39:05 -07:00
Alexandre Alves 54032dd8d1
fix advanced filtering issue (#7453)
* fix adv filtering issue + bump rancher icons version

* update fix for advanced filtering

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2022-11-17 11:36:42 +00:00
Phillip Rak 3d410d0974 Apply linter auto-fixes
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2022-11-16 18:38:20 -07:00
Sorin b3ff2179d5
Scopes the SCSS where we globally style the header, main, footer and … (#7409)
* Moves the global style to its own SCSS file & adds an `element-layout` class.
2022-11-16 13:10:58 +01:00
Francesco Torchia 211d7e37b9
unit tests: Collapse, SimpleBox
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2022-11-16 10:12:36 +01:00
Shavindra 91d1e64a39
Fix project name editable. (#7223)
* Fix project name editable.
* Added component name.
2022-11-15 17:26:07 +00:00
Shavindra b8d83d5d3e
Fix UI not refreshing when cluster members are added or removed. (#7245)
* Fix UI not refreshing when cluster members are added or removed.
* Fix the undefined issue.
2022-11-15 17:25:19 +00:00
richa f2e1ae8ac8
Added blue color only to creation action (#7118)
* Added blue color only to creation action

* Removed test code

* Revert some changes without dummy text

* Fixed names for attribute, color variables for dark and light theme, removed a tag

* Allow /rancherversion endpoint override (#7088)

* Fix KeyValue Component. (#7093)

* Fix KeyValue Component.

* Refactor solution.

* Fix PR comment.

* Adds new logos without Manager to bettr represent all sub-brands and improve readability

* Updates error of HSB colour to HSL

* Remove uneeded check - add custom check for old endpoints (#7058) (#7074)

* Allow to reset ui-brand global setting (#7110)

* Remove negative margin for Tabbed component, causing issues in Network policies (#7108)

* Update script to use newer version of Rancher Docker (#7114)

* Removed files from featured-carousel PR that should not be there at top-level (#7092)

* Allow wildcards in ingress hostnames (#7025)

Wildcards are allowed in ingress hostnames since Kubernetes 1.18: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#support-for-hostname-wildcards

Fixes https://github.com/rancher/dashboard/issues/6957

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>

* Improve PSP deprecated banner
Fixes #7096

Previously...
- a new request for PSPs was made on each page visit
- the request would fail for users without access to the PSP
- failed requests equated to white page dev error (fine in prod)

Now...
- use the `counts` resource to determine if the user can see any PSPs
- move logic to a computed property

* Hide experimental charts from Cluster Tools

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
Co-authored-by: Neil MacDougall <nwmac@users.noreply.github.com>
Co-authored-by: Shavindra <Shavindra@users.noreply.github.com>
Co-authored-by: Kenneth Wimer <wimer@suse.com>
Co-authored-by: Jordon Leach <40806497+jordojordo@users.noreply.github.com>
Co-authored-by: Giuseppe Leo <giuseppe.leo@suse.com>
Co-authored-by: Bastian Hofmann <bashofmann@gmail.com>
Co-authored-by: Richard Cox <richard.cox@suse.com>
2022-11-15 14:31:08 +01:00
richa b39bb589a8
Bug fix namespace value (#7170)
* Fixed namespance clear value bug

* Removed if condition

* Removed extra code

* Corrected the label for create namespace option
2022-11-15 14:17:10 +01:00