Commit Graph

33 Commits

Author SHA1 Message Date
Cody Jackson 5052c2a8e8 Enabling `vue/require-explicit-emits` linting rule
https://github.com/rancher/dashboard/issues/11961
2024-09-19 09:58:53 -07:00
Cody Jackson d5ce4fff2e Run the vue3 migration script
Commands run:

➤ yarn migrate
➤ git clean -fdx
➤ nvm use 20
➤ yarn
2024-08-22 16:05:36 -07:00
Alexandre Alves 3df4e9dd53 Reintroduce "Replace `Vue.extend` with `defineComponent` in shell"
This reverts commit 1eacbdea40.
2024-03-13 10:10:26 -07:00
Alexandre Alves 64e20bb50f
Revert "Replace `Vue.extend` with `defineComponent` in shell" (#10344) 2024-01-29 17:22:06 +00:00
Phillip Rak 610b826319 Replace `Vue.extend` with `defineComponent` in shell
Replace the usage of `Vue.extend` with `defineComponent` throughout multiple components located under `shell/components/`. `defineComponent` provides better type inference, improved TypeScript support, and will be the recommended way to define components when Dashboard migrates to Vue 3.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-01-10 09:06:46 -07: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 acb4e9e42e
Rename GitPicker data-testid
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-27 17:42:31 +02:00
Richard Cox f98df23e7c fix linting 2023-06-26 11:25:54 +01:00
Richard Cox 487ffad91c Fix build of epinio as an extension 2023-06-21 15:02:10 +01:00
Francesco Torchia 2c06f537e3
Merge pull request #9102 from torchiaf/fix/245
Handle applications created by revision from CLI
2023-06-21 15:58:37 +02:00
Richard Cox 0f0a6a9f24 Bring back validation of selected commit
- this may have been deleted since the app was previously deployed
2023-06-21 12:10:50 +01:00
Francesco Torchia 7d119e9a47
Clean up code
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-20 18:43:06 +02:00
Francesco Torchia 61e92b6c4b
Handle Applications created by revision from CLI
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-20 18:40:43 +02:00
Francesco Torchia 05ff7bd57e
Add configurable debounce time in Git Picker form inputs
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-20 13:39:19 +02:00
Richard Cox 1094f51b22
Merge pull request #9035 from richard-cox/master-epinio-dev
Merge `master` into `epinio-dev`
2023-06-12 10:58:37 +01:00
Richard Cox 566a96d413 Fix for table overflow 2023-06-08 14:54:17 +01:00
Francesco Torchia 4874349e71
Fix application form behavior when the git account/organization is deleted
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-07 16:11:27 +02:00
Francesco Torchia 0f0b8ca8d3
Fix flickering when selecting commit in Application edit/create form
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-05-23 12:56:54 +02:00
Richard Cox d12ecba8f3 Fix switching between github/gitlab manifests
- Make switching between github/gitlab in all scenarios simpler
- in git picker whenever the value changes ... we reset and reload
- in app source ensure the value only changes when there's been a required reload
  - this includes forcing one when type changes from any type to any type
- this does mean there will be more http requests to gitX when switching between types
2023-05-22 20:28:58 +01:00
Richard Cox 8c711b2750 Fix edit of gitlab sourced applications 2023-05-22 16:04:13 +01:00
Francesco Torchia 50bae1009b
Fix wrong commit selected in application edit
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-05-22 16:16:37 +02:00
Francesco Torchia ef8186f7ab
Fix GitPicker type value
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-05-22 13:07:17 +02:00
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