Commit Graph

725 Commits

Author SHA1 Message Date
Richard Cox df9c4be595
Merge pull request #9714 from torchiaf/9665-provissioning-actions-error
Fix 'Scale Down' crash in cluster provisioning details page
2023-09-28 16:06:56 +01:00
Sean-McQ 80b0e11f59
Now uses the same data as the cluster homepage, delayed load not needed. (#9555)
* Now uses the same data as the cluster homepage, delayed load not needed.

* Auto stash before rebase of "master"

* Fix ready state
- the loading indiciator was only shown when the http request to fetch required data was happening
- in our world there's no http request, so no loading indicator
- this means for clusters that are `pending` there's no a forever loading indicicator

---------

Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-09-28 09:06:55 -04:00
Francesco Torchia 022cfe2c5a
Fix Ui crash in case of missing principal (#9762)
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-09-28 09:16:57 +01:00
Sorin 0e4e93a36b
fix: Adds margins to the app-bar when the global banner is enabled (#9768)
* fix: Adds margins to the app-bar when the global banner is enabled

* chore: reuses functionality

* chore: renames fn

* fix: initial feedback

* fix: dynamic height refactor

* chore: removes unused var

* chore: removes unused code
2023-09-28 09:08:07 +01:00
Neil MacDougall c9341a9b8d
Kubectl explain (#9713)
* Initial Example

* Add toggle expand all

* Add panel resize

* Fix close and open after resize

* Fix expand all

* POC: Kubectl explain interface

* Fix some lint issues

* First version of the kubectl explain UI

* Improvements

* Fix lint

* Tidy up Open API data fetch

* Tidy up code for parsing OpenAPI

* Many tidy ups and simplifications

* Add error message if we can't load Open API Data

* Ensure action appears only when there is a resource

* Fix lint issue

* Test e2e

* e2e

* e2e

* USe canary browser

* Use firefox

* Try chrome version

* Auto accept prompt

* Accept

* Last try

* Install Chrome

* Run as root

* Fix paths

* Add quiet flag, fix paths

* Use browser path

* Try debugging port

* Further attempts

* Set path

* Add debug env var

* Try edge

* Use specific version

* Add allow downgrades

* Use Chrome

* Remove WIP

* Adderss PR feedback

* Fix for no cluster

* Address PR feedback

* Fix lint issue

* Fix position with banners enabled. Restrict products for which this is shown

* Fix lint issue

---------

Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-09-27 22:01:24 +01:00
Jordon Leach d3e7e64744
Projects ns extension point (#9789)
* Add ExtensionPanel to Projects/Namespaces resource list

* Bump shell 0.3.25
2023-09-27 16:01:09 -04:00
Jordon Leach 8874a42305
Update bulk action condition to check for empty resource actions (#9784) 2023-09-27 13:43:41 -04:00
Sean-McQ 6f0a3d436a
save method in model fixes payload, validator catches the rest (#9758) 2023-09-27 13:40:36 -04:00
Sean-McQ 718ffd6201
checks to see if membership editor is project and adds a project filter (#9761) 2023-09-27 13:37:54 -04:00
Francesco Torchia 79ac6ad67e
Merge pull request #9693 from torchiaf/9608-CLI-saml-login
Add missing parameters to SAML auth request
2023-09-27 16:11:54 +02:00
Alexandre Alves 9d8b957c95
fixes issue with Group Roles disappear in users & auth -> groups screen (#9783)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2023-09-27 09:20:04 +01:00
Mo Mesgin 4b77f42f44 refactor accessing color property from cluster's badge 2023-09-26 08:41:59 -07:00
Mo Mesgin 11246d94d4 Merge branch 'master' of github.com:momesgin/dashboard into 8907-fix-unit-tests-warnings 2023-09-26 08:37:32 -07:00
richa 4a2f55c664
Fixed navigation state (#9716) 2023-09-25 09:58:23 +02:00
Mo Mesgin 4a75717d91 fixed unit tests coverage error because of using optional chaining in template 2023-09-22 11:29:08 -07:00
Mo Mesgin c453356ea1 fixed unit tests warnings 2023-09-20 15:49:53 -07:00
Phillip Rak 497d1e7b22
Merge pull request #9678 from rak-phillip/bugfix/9559-edit-yaml
Allow hooks to be omitted from application
2023-09-18 08:22:04 -07:00
Phillip Rak 83e68f0fd1 Allow hooks to be omitted from application
There are certain scenarios where we want to apply hooks, but it might not make sense to apply all of them. For instance, we have `_beforeSaveHooks` hooks that we want to apply when the "Edit as YAML" button is clicked on a form, but it doesn't make sense to apply the `save-machine-pools` hook at this point; we are only changing the mode of editing so we should not be saving changes at this point. However, we still would want to apply the `set-registry-config` hook.

Co-authored-by: Richard Cox <richard-cox@users.noreply.github.com>
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2023-09-15 08:02:55 -07:00
richa b25c24baeb
Fixed header highlight issue when not expanded (#9710) 2023-09-15 13:39:57 +02:00
Sorin 67e6691934
fix: some scenarios with the smallIdentifier() (#9706)
* fix: some scenarios with the smallIdentifier()
* Minor refactor, add unit test
- Move bulk of smallIdentifier out to custom abbreviateClusterName
- Made `case 1` easier to read
- Added a bunch of unit tests
  - need to discuss some results

---------

Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-09-15 11:06:44 +02:00
richa 1aa51c717d
No matching clusters msg fix (#9705)
* Fixed No matching clusters message condition

* Fix category line condition
2023-09-15 09:15:32 +02:00
Francesco Torchia 09168d3683
Add empty availableActions to fake rows in cluster provisioning details page
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-09-14 17:38:41 +02:00
Richard Cox 810369e741
Merge pull request #9681 from richard-cox/fix-preventOverflow-warn-spam
Fix issue where popperjs spammed console warnings
2023-09-14 11:14:57 +01:00
Richard Cox 6dbee8dab4 Fix the header icon alignment in Standalone mode 2023-09-13 15:44:25 +01:00
richa d1e8740548
Fix app bar overlaps issue (#9685)
* Fixed app bar overlaps issue and active group highlight bug in firefox

* Fix group highlight for Cluster Management and other section

* Fixed overlap issues in home and other pages

* Fixed lint and revert test changes

* Added getter for showTopLevelMenu

* Added a showTopLevelMenu getter

* Fixed lint
2023-09-13 15:46:33 +02:00
richa 2ffe8d3170
App bar pin cluster (#9674)
* feat: app-bar init implementation

* fix: users e2e test

* chore: removes extra code

* fix: adds the correct width for the app-bar

* fix: addressing feedback

* fix: cleans up max-items preference, layout improvements

* chore: removes extra file

* feedback

* fixes issue with extra padding in standalone

* fix: loading overlay

* fix: spaces

* fix: missing content

* Added pin clusetr list

* Removed commented code

* Fixed sorted list order

* fix: fedback

* removes the 2px top

* fix: brings back the local cluster icon

* fix: adds cluster filter badge & cluster count

* Fix pin cluster test

* Rename pinned-clusters in pref

* Added pin methoded in cluster model

* Added test for unpinning cluster

* Fixed test

* Fixed lint

* Clean up css

* Resolved feedback

* Fixed lint

* Removed local cluster badge test

* Removed model

---------

Co-authored-by: scures <scurescu@suse.com>
2023-09-13 15:45:39 +02:00
Francesco Torchia d8308795ef
Add missing parameters to SAML auth request
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-09-13 14:45:58 +02:00
Nancy 371524f732
Reduce performance impact of LabeledSelect getOptionLabel (#9689)
* imrpove labeledSelect getOptionLabel performance when options are strings

* refactor labeledselect getOptionLabel and write test

* remove redundant if block in ls getOPtionLabel

* refactor getUpdatedOption
2023-09-12 12:58:02 -07:00
Richard Cox f729e001c7 Fix issue where popperjs spammed console warnings
```
`preventOverflow` modifier is required by `hide` modifier in order to work, be sure to include it before `hide`!
```

- Needed `hide` - https://popper.js.org/docs/v2/modifiers/hide/
2023-09-12 11:10:42 +01:00
richa 7e540bac0c
Side nav visual bugs (#9671)
* Fixed spcaing, margin and bg color issue

* Fixed font size of navlinks resource

* Fixed nav left alignments
2023-09-11 15:23:00 +02:00
Sorin bfe8d995c4
Feat/app bar init (#9560)
* feat: app-bar initial implementation (without pinning functionality)
2023-09-08 18:52:47 +02:00
richa b9180782e2
Highlight navigation groups (#9582)
* Added group highlight

* Made active group header bold

* Added active color variable

* Added namespace icon

* Added new spacing, style

* Fixed lint and cluster group highlight issue

* Fixed sub accordion style

* Change icon style

* Fixed icon alignment

* Fixed spacing issue

* Fixed spacing and lint

* Highlight active header when it is close
2023-09-06 13:24:20 +02:00
Shavindra b22e4d8315
Add Fleet gitrepo helmRepoUrlRegex support (#9622)
* Add Fleet gitrepo helmRepoUrlRegex support.
2023-09-06 10:57:22 +02:00
Francesco Torchia 14d4077a5d
Fix lint
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-09-04 10:49:11 +02:00
Francesco Torchia e458858c8e
Show page where commit it is in GitPicker commits table
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-09-04 10:49:10 +02:00
Francesco Torchia fa4d3dd1ca
Implement the page number getter of a row
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-09-04 10:49:10 +02:00
Shavindra d5c32a6621
Handle missing secret name. (#9624)
* Handle missing secret name.
2023-09-02 16:02:28 +02:00
Shavindra 51b47c2af1
Disable local cluster workspace change (#9552)
* Disable fleet workspace change for local cluster.
* Add LOCAL_CLUSTER constant.
2023-08-31 10:58:46 +02:00
Richard Cox 2808ffd061
Merge pull request #9570 from jonatan5524/fix-project-edit-ui-crash
Fix project edit UI crash
2023-08-30 15:18:03 +01:00
momesgin 14befb59fc
fixed 'imported' label not showing up for imported AKS/EKS clusters (#9527)
Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2023-08-29 16:54:37 -07:00
Richard Cox 5242a2a2b3 Improvement & bug fix
- Bring computed properties inline with where they're used
- Fix issue where limit object is deleted and cannot be set following save
  - on save the object used to store limit is removed if it's empty
  - this meant user could not enter new values within that limit
  - so split up input and output to `UnitInput` component
2023-08-29 17:33:20 +01:00
Alexandre Alves 9d27823a4a
add growl message to display warning messages from response headers (#9581)
* add growl message to display warning messages from response headers

* update growl styling based on feedback from Eden

* Many updates
- Move functionality into it's own file
- Add unit tests
- Fix issue where YAML PUTs weren't included in check (bug in master)
- Fix issue with separating warnings (bug in master)
  - previously this was done via `,`, however that appears in the messages themselves
  - add configuration which allows this to be customised
- Add configuration which would allow us to disable or expand how growls are shown

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-08-29 09:54:25 +01:00
Richard Cox 54f605b7b7
Merge pull request #9488 from bashofmann/extended-questions-support
Additional features for helm chart question forms
2023-08-25 16:23:46 +01:00
Alexandre Alves c136e0f81f
locationConfig hash param (#9514)
* add hash param to locationConfig object in extensions to allow fine-tune of application of an extension + change logic around extension table cols to better reflect col location based on page user is browsing

* remove commented line

* update docs

* improve docs with breaking changes warning

* address pr comments

* bump shell version

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-08-25 14:41:38 +01:00
jonatan cb092fef80 refactor(ProjectRow): v-model to computed 2023-08-24 21:40:38 +03:00
Richard Cox 4d0dc2aa88 Fix one bug in master
- arrays and objects values were not shown
  - the value parsed in is the actual value, rather than the values object
2023-08-24 14:56:30 +01:00
Richard Cox d99544a9bc Two PR based updates
- Use mode const in template
- use computed & Object.entries for more complex `options`
2023-08-24 14:54:47 +01:00
Bastian Hofmann b6429cfd5c Fix lint
Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
2023-08-24 13:58:29 +01:00
Bastian Hofmann dcb8b2542b Fix tests
Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
2023-08-24 13:58:29 +01:00
Bastian Hofmann 1ff5df01fd Add tests 2023-08-24 13:58:29 +01:00