@rancher/shell 3.0.12-rc.6 → 3.0.12-rc.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/apis/intf/shell-api/slide-in.ts +46 -17
  2. package/apis/shell/__tests__/slide-in.test.ts +83 -2
  3. package/apis/shell/slide-in.ts +20 -0
  4. package/components/ExplorerProjectsNamespaces.vue +2 -2
  5. package/components/Resource/Detail/Metadata/IdentifyingInformation/__tests__/identifying-fields.test.ts +9 -0
  6. package/components/Resource/Detail/Metadata/IdentifyingInformation/identifying-fields.ts +5 -1
  7. package/components/SlideInPanelManager.vue +103 -25
  8. package/components/__tests__/SlideInPanelManager.spec.ts +153 -10
  9. package/components/auth/AuthBanner.vue +1 -1
  10. package/core/plugins-loader.js +2 -0
  11. package/models/__tests__/namespace.test.ts +133 -8
  12. package/models/__tests__/provisioning.cattle.io.cluster.test.ts +57 -1
  13. package/models/namespace.js +34 -2
  14. package/models/provisioning.cattle.io.cluster.js +20 -13
  15. package/package.json +1 -1
  16. package/pages/c/_cluster/explorer/workload-dashboard/__tests__/composable.test.ts +136 -1
  17. package/pages/c/_cluster/explorer/workload-dashboard/composable.ts +69 -1
  18. package/pages/c/_cluster/fleet/index.vue +5 -9
  19. package/pkg/vue.config.js +4 -3
  20. package/plugins/codemirror.js +2 -0
  21. package/plugins/dashboard-store/resource-class.js +3 -6
  22. package/store/__tests__/action-menu.test.ts +622 -0
  23. package/store/__tests__/slideInPanel.test.ts +143 -43
  24. package/store/__tests__/wm.test.ts +503 -0
  25. package/store/aws.js +19 -4
  26. package/store/slideInPanel.ts +15 -3
  27. package/types/shell/index.d.ts +26 -2
  28. package/utils/__tests__/fleet-appco.test.ts +23 -0
  29. package/utils/fleet-appco.ts +6 -1
  30. package/utils/sort.js +1 -1
@@ -198,7 +198,12 @@ export async function ensureAppCoResources(
198
198
  return true;
199
199
  }
200
200
 
201
- const REPO_WAIT_TIMEOUT_MS = 90000;
201
+ // Cold/first OCI pulls of the AppCo catalog can take several minutes to download,
202
+ // so we allow a generous window before giving up. Genuine repo/OCI errors still
203
+ // short-circuit early via the `hasError` path below, so this only bounds how long
204
+ // we tolerate a repo that is still downloading. Added as 10 minutes to consider
205
+ // future increases on the size of the AppCo catalog.
206
+ const REPO_WAIT_TIMEOUT_MS = 600000; // 10 minutes
202
207
  const REPO_WAIT_INTERVAL_MS = 3000;
203
208
 
204
209
  function getRepoState(repo: any, repoName: string): { state: RepoState; isReady: boolean; hasError: boolean } {
package/utils/sort.js CHANGED
@@ -184,7 +184,7 @@ export function parseField(str) {
184
184
  }
185
185
  }
186
186
 
187
- export function sortBy(ary, keys, desc) {
187
+ export function sortBy(ary, keys, desc = false) {
188
188
  if ( !Array.isArray(keys) ) {
189
189
  keys = [keys];
190
190
  }