Commit Graph

70 Commits

Author SHA1 Message Date
Neil MacDougall 59a08dfa07
Add support for vue route and extension init (#14590)d
* Add support for vue route and extension init

* Fix lint

* Minor doc fix, fix issue with buttons when scrolled

* Ensure onReady is only called once

* Address PD feedback

* Address more PR feedback - simplify close on action

* Add support for vue route and extension init

* Fix lint

* Ensure onReady is only called once

* Address PD feedback

* Tidy ups

* Add one missing tidy up
2025-06-26 16:40:12 +01:00
Neil MacDougall a0d725938c
Add Notification Center (#14419)
* Initial version

* Improve growl integration

* Fix lint issues

* Tidy ups and lint fixes

* Add a maxiumum number of notifications

* Add some notes

* Localisations

* Avoid using general 'actions' class name

* Remove clear all button

* Further fixes

* Remove test code

* Always show a read notification indicator

* Address feedback from walk through

* Add test ids and updated e2e tests, fix lint

* Bump version number to match backend

* Work around version issues

* Fix lint issue

* Fix e2e test

* Fix release notes seen issue breading login landing page

* Update .gitignore

* Remove dev readme file

* Remove todo and tweak comments

* Add simple developer docs, update type comments, bump icon package version number

* Update lock file

* Address PR feedback

* Address PR feedback 2nd round

* Fix lint

* Fix broken import

* PR feedback

* Used partial

* PR review feedback

* Use user id hash in the local storage key

* Encrypt the notifications in local storage

* Remove persist stuff from store

* Fix bug with initialization of the store and release notes

* Bug fix - store encryption key

* Debounce setting of notifications to avoid loop
- tab 1 can fight tab 2 if tab 2 progresses whilst tab 1 processes stale content

---------

Co-authored-by: Richard Cox <ricox@suse.com>
2025-06-19 19:47:50 +01:00
Richard Cox c510161796 Tidy up docs related to build
- remove reference to Dockerfile.dev
- move unsupported build steps from public docs to repo docs
- add unsupported info to other files in repo docs
2024-02-06 08:59:32 +00:00
Neil MacDougall c5f5c9b0cf
Add support for replaying network requests from a captured HAR file (#10149)
* Add support for replaying from har file

* Fix merge

* Improvements

* Add export and folder support

* Minor tidy ups

* Fix lint

* Add doc

* Update doc with correct fallback HTTP status code

* Fix typo
2023-12-20 16:39:00 +00:00
Jordon Leach c526e46058
Move dashboard container build to internal documentation (#10113) 2023-12-05 12:32:42 -05:00
Richard Cox 7730c6f240 Move API docs out of docusaurus 2023-11-24 10:34:32 +00:00
bisht-richa 06fdaa7eab Added extra files in docs file added introduction page 2022-07-14 11:02:53 +02:00
bisht-richa 11cd95d5b3 Added files in docs folder 2022-07-14 10:10:55 +02:00
Sean ddab180ecc Adds in form validation mixin, error reporting on inputs, a few examples 2022-07-07 13:18:43 -04:00
Richard Cox 836aa90939 Fix 404/error page
- Currently the default layout does not expose an outlet if there is no ready cluster
- This means unknown routes like `/aaa` cannot show the error page
  - A header and blank page is shown instead
- Fix is to add the outlet when we don't have a cluster id
- The default layout shouldn't be used when there is no cluster (see `plain` layout), so this should be safe

Additionally remove some legacy references to `design-system` - fixes #5613
2022-06-13 17:43:33 +01:00
Giuseppe Leo b068e4e12c
e2e Tests: CI: Setup test to run for PR pointing to master (#5451)
* Configure E2E tests for CI

* Add Github CI configuration for E2E

* Write welcome and first login tests

* Add Docker initialization script

* Sort tests

* Allow to trigger input checkboxes from labels

* Run setup script in a single test to avoid server requirement restrictions with authentication in a single session

* Trigger E2E tests on PR to master only

* Correct password for E2E; extend documentation about authentication

* Allow E2E jobs to be excluded if present tag in the title

* Build and start project for E2E using SPA flag and prod env for CI

* Assure link presence while navigating in E2E tests; Improve readability

* Allow to skip setup E2E tests for remote initialized instances

* Update Cypress related libraries

* Replace class to id selections for E2E tests

* Create Page Actions PO; Move navigation related tests; Ensure Home page tests to be reliable

* Correct login redirection to include local

* Reset cards for E2E changelog

* E2E: Add manual waiting while opening the side navigation

* Change CI E2E skip exception from title to label

* E2E: Increase waiting time for side navigation racing condition issue

* Remove bootstrap setup assertion

* Allow to manually trigger E2E tests

* Disabling all flaky tests which cause race condition random failure

* Remove setup scripts and commands due opted out solution

* Rename files, tests and PO

* Remove libraries added while rebasing

* Replace ID with data-testid for E2E element selection

* Skip entirely E2E test Job on label in favor of single steps condition

* Use run ID and number for artifacts names

* Updated documentation related to E2E selectors and added best practice link

* Remove passed tests video after each test

* Add getId command to select elements by attribute

* Correct all the selections of all the existing tests; Add related data id for testing purpose

* Add terms and ignore log issue with TS

* Add missing ID to data conversion

* Replace password cases with new PO

* Restore locale login check in E2E

* Enable artifacts upload only on failure

* Disable video artifacts upload from E2E runs

* Correct linting issue with a TODO note

* Correct script naming and docker command to avoid killing other containers

* Remove unnecessary --spa flag from existing scripts

* Correct tests to do not rely spcifically to the version while testing changelog text

* Adjust documentation definitions

* Reference issue in the TODOs

* Allow failing if no container found while stopping docker

* Rephrase E2E commands reference in docs

* Correct Docker stop command typo with image name
2022-06-10 13:31:49 +02:00
Sorin C 662544ec8d
Merge pull request #6075 from scures/pkg_exclusion_from_env
Excludes `pkg` from .env file instead of hardcoded in `nuxt.config.js`
2022-06-08 09:28:56 +02:00
scures 4f8f7c38d4 string splitting & documentation instructions
Signed-off-by: scures <scurescu@suse.com>
2022-06-07 11:51:07 +02:00
Catherine Luse 6337269ff6 Fix link to icon demo page 2022-06-02 02:01:41 -07:00
Catherine Luse cfc3753c2c Add docs and comments on how Rancher handles Helm chart values 2022-05-31 17:08:41 -07:00
Richard Cox a0ee890542 Disable SSR in dev mode by default
- disable ssr in dev mode by adding `ssr: false` (`mode` is deprecated)
- also remove some (but not all) references to SSR / --spa
- Some SSR mechanism remains
  - `--spa` in build scripts
  - `spa` query param
  - the `__rehydrate` process for models that would convert json back to model objects
2022-05-10 10:04:04 +01:00
Richard Cox 50aed3eb9e New Epinio pkg, and updates to dashboard (core, pkg process) (#5637)
* Doc

* v0.7.0

* v0.7.1

* v0.7.2

* Add creators

* v0.1.14

* v0.1.17

* Add Yarn link

* Tidy ups and typos

* Allow models to be loaded from plugins

* v0.1.15

* v0.1.18

* v0.6.6

* Improve readme, fix cyperss log msg

* v0.1.17

* v0.1.19

* v0.6.7

* v0.6.8

* Fix logo ref when in shell

* Fix lint issues

* Fix error in example

* Fix script to work on linux

* Add ability to revert moves without losing changes

* Fix bug with custom models in a plugin

* Fix build of UI packages

* Add dist-pkg to .eslintignore

* Pull out util from extend-router to prevent router being pulled in UI packages

* Update PLUGINS.md

* Remove duplicate dependency

* Reduce size of built UI packages

* Share codemirror. Other tidy ups

* Further improvements

* Tidy ups to support i18n in plugins

* Clen up add comments

* More clean-ups and comments added

* Rename from extension to plugin

* Missed file in rename

* v0.6.9

* TIdy ups following rename

* v0.1.20

* v0.1.21

* More refactor and tidy up

* v0.1.22

* v0.1.18

* v0.1.19

* v0.1.23

* v0.6.10

* Version Packages. Improve naming. Unload.

* v0.6.11

* v0.1.20

* v0.1.21

* v0.1.24

* v0.6.12

* v0.1.25

* v0.1.22

* v0.6.13

* Fix issues when plugin is builtin

* Add missing files

* Fix lint issues and watcher ignores

* Fixes following review

* v0.1.28

* v0.1.31

* v0.6.20

* Fix coer.js version

* Fix bug where plugins included via npm don't work

* Changes post merge

* Move plugins doc to dev guide, add note at top of README

* Update cypress version

* Add note about the reset --hard in rejig -d

* Fixes post merge

* Rename @ranch to @rancher and ad plugins

* Improve routes support, add package assets support

* Add uninstall hooks and pass interal opts

* Fix rejig script

* Minor fixes

* disable consent banner text overflow wrap

* add additional metadata to workload detail view

* minor css tweak

* Routing tweaks
- attempted to improve `addRoutes` typing, failed a lot
- improved typings in plugins.ts
- added "@pkg/*" entry and vue-shim (for importing components) to the pkg creator
- fixed some linting
- safely fail when Verdaccio isn't running
- fixed some typos

* Remove frontmatter-markdown-loader reference from nuxt-config

* Add annotation to stop upgrades for managed charts

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Use correct name for Network Attachment Definition Resource (#5579)

* Fix heading levels in Account and API keys page (#5563)

* SortableTable Performance: Optimise row mouse over/leave handlers (#5550)

Co-authored-by: Richard Cox <richard.cox@suse.com>

* Keep the check for fleet bundle ID

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Revert "Remove frontmatter-markdown-loader reference from nuxt-config"

This reverts commit 29ef6f2f7b.

* Exclude creators from dashboard build

* Revert "Exclude creators from dashboard build"

This reverts commit 8ede93ee7c.

* Ingore creators via tsconfig
- We're still susceptible with vue shims in multiple packages
- Need to determine why packages can't use shim from route
- Probably need to move `./vue-shim.d.ts` in to `./shell`. Needs testing with a pkg that imports a component

* warn on adding windows node to cutom cluster

* Display custom error message when login fails. (#5582)

* change rke2 upgradeStrategy to 1 concurrent controlplane and worker (#5580)

Co-authored-by: Alexandre Alves <aalves@AlexandresMBP2.lan>

* update endpoint display, fix ready status for daemonset type

* Fix Sortable Tble SSR (#5599)

* Sortable Table: Fix broken props to slot (#5600)

* expanded error check to include simple type

* fixed error check logic

* Fix async buton wobble with spinner (#5586)

* Add Pod restart count to workload detail page

* Can scale workload from workload detail page

* Enable source map in Nuxt/Webpack configuration for debugging (#5590)

* Move hardcoded values for roles in his own config file

* Allow to set default values also for Clusters and Namespaces

* Allow local cluster to be hidden

* Initialize always auth errors as empty list

* Add translation for snapshot group

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Enable s3 storage in rke2 cluster config

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Group by snapshot location

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* After rejig

* Prevent injection of malformed errors in the generic resource form component

* New Epinio pkg, and updates to dashboard (core, pkg process)

* Remove epinio-select

* correct @shell// reference

* Fix filtering issue
- store/index suffered a bad merge

* Add hide-local-cluster to the settings page

* Fix node table column sorting (#5611)

* Fix issue where private registry auth can be changed in view mode (#5617)

* Change title of support block on home page when custom link set (#5547)

* Tidying up

* Add feedback to the copy kubeconfig header button (#5628)

* Add feedback to the copy kubeconfig header button

* Minor improvement

* Get rke3 and k3s latest versions from settings (#5608)

* Revert previous change and avoid watching spoofed types

* Move the group-by string to computed prop

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Use computed instead of method, use Array.isArray instead of lodash isArray

* Ensure auth provider note appears consistently within form instead of new floating button section
- some auth providers already had this
- possibly better ux to add to top, but that area is already busy

* Fix bug where delay loading only worked on scroll with live columns (#5635)

* Inconsistencies with Cluster metrics across the UI (#5542)

* fix num pods being displayed on the homepage cluster list + set mem to gib for ram on homepage cluster list

* show total number of nodes rather that useful nodes in cluster dashboard view + remove reserved info for CPU and MEM in cluster table in homepage + fix pods usage in nodes list view + clear console logs

* cleanup

* correctly wire PodsUsage as a formatter + display N/A when usage is zero in nodes list values for CPU, MEM, PODS

* add loader icon to PodsUsage formatter

* add string translation to n/a in percentageBar formatter

* add delayedLoading to PodsUsage formatter

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro-2.local>
Co-authored-by: Alexandre Alves <aalves@AlexandresMBP2.lan>

* Enable filtering by project name on project/namespaces paeg (#5636)

* Fixes post merge

* Rename core-store to dashboard-store
- contains TODO: RCs to resolve

* Tidy up/imporve nav hooks

* Fix some todo's, epinio routing product

* refactor detailtop

* Hide NeuVector product if `cattle-neuvector-system` does not exist
- As per request at https://github.com/rancher/dashboard/issues/5556#issuecomment-1098270110
- fixes #5556
- alternative to #5604

* Fix a number of areas where the sticky footer consumes large amounts of space
- Fixes #5643
- Mostly caused by non-standard ways the CruResource was being used

Effected Areas / Places to test
Note - Only need to visit pages, shouldn't need to make any changes to resources
- Cluster create/import screens (types, credentials (create new / existing), import, rke2)
- Auth providers (shortest form is keycloak saml)
- Create/Edit resource types - project, namespace, some random others
- Create/Edit resource types that have sub-types (secrets, workloads, OPA Gateway / Constraints)

Also Addressed
- Only show top border of the footer if CruResource is in edit view
- Fixed hide of errors

* Fix conditional showing of Group `Assign To` and `Refresh` buttons

Buttons should only show if
- There is a non-local auth provider enabled
- The user has the correct permissions for the relevent action

Fixes #4897

* Fix live expiry badge used on api keys table

* Hide local cluster in LandingPagePreference and api key (token) list

* HARVESTER: Fix Grafana metrics reload failure

* Address some TODOs

* minor fixes

* Rename i18n to l10n, make use of default folders

* Improve adding multiple routes

* Config map view inconsistent for binary data (#5602)

* Fix Config map view inconsistent for binary data

Co-authored-by: Alexandre Alves <aalves@AlexandresMBP2.lan>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro-2.local>

* check for existance of limit prop so that deleting a project doesnt silently fail (#5661)

Co-authored-by: Alexandre Alves <aalves@AlexandresMBP2.lan>

* Changes following review

* Fix CruResource `Edit as Yaml` feature
- ensure sticky buttons are stuck at bottom
- doesn't apply sticky buttons to direct `Edit as Yaml` feature outside of CruResource

* Fix navigation & ns filter bugs
- nav from explorer to epinio cluster (errors in console)
- nav from epinio cluster to explorer (ns filter broken)

* Remove epinio ns and config validation
- this was the process that will be replaced with Sean's work
- it's suffered bit rot and was broken after the merge
  - not running in places
  - it visually broke the labelled select (in multiple places)

* remaining todos

* fixes following validation change

* fix bad yarn lock file

Co-authored-by: Neil MacDougall <nmacdougall@suse.com>
Co-authored-by: Neil MacDougall <nwmac@users.noreply.github.com>
Co-authored-by: Neill Somerville <neill.somerville@gmail.com>
Co-authored-by: Phillip Rak <rak.phillip@gmail.com>
Co-authored-by: Nancy Butler <42977925+mantis-toboggan-md@users.noreply.github.com>
Co-authored-by: Shavin Fonseka <Shavindra@users.noreply.github.com>
Co-authored-by: Alexandre Alves <97888974+aalves08@users.noreply.github.com>
Co-authored-by: Alexandre Alves <aalves@AlexandresMBP2.lan>
Co-authored-by: Catherine Luse <catherine.luse@gmail.com>
Co-authored-by: Giuseppe Leo <giuseppe.leo@suse.com>
Co-authored-by: cnotv <giuseppe.leo@suse.de>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro-2.local>
Co-authored-by: n313893254 <n313893254@126.com>
# Conflicts:
#	shell/assets/translations/en-us.yaml
#	shell/components/CruResource.vue
#	shell/components/ResourceDetail/Masthead.vue
#	shell/components/ResourceList/Masthead.vue
#	shell/components/SortableTable/index.vue
#	shell/components/form/KeyValue.vue
#	shell/components/form/LabeledInput.vue
#	shell/components/form/NameNsDescription.vue
#	shell/components/form/NotificationSettings.vue
#	shell/components/formatter/PodsUsage.vue
#	shell/components/nav/Header.vue
#	shell/config/product/neuvector.js
#	shell/detail/workload/index.vue
#	shell/edit/provisioning.cattle.io.cluster/CustomCommand.vue
#	shell/models/cluster.x-k8s.io.machinedeployment.js
#	shell/models/harvester/kubevirt.io.virtualmachineinstance.js
#	shell/models/workload.js
#	shell/pages/c/_cluster/settings/banners.vue
#	shell/plugins/steve/actions.js
#	shell/store/type-map.js
2022-05-10 10:04:04 +01:00
Richard Cox 25acc1f8eb Plugins: Rejig files to new shell locations (#5623)
* Doc

* v0.7.0

* v0.7.1

* v0.7.2

* Add creators

* v0.1.14

* v0.1.17

* Add Yarn link

* Tidy ups and typos

* Allow models to be loaded from plugins

* v0.1.15

* v0.1.18

* v0.6.6

* Improve readme, fix cyperss log msg

* v0.1.17

* v0.1.19

* v0.6.7

* v0.6.8

* Fix logo ref when in shell

* Fix lint issues

* Fix error in example

* Fix script to work on linux

* Add ability to revert moves without losing changes

* Fix bug with custom models in a plugin

* Fix build of UI packages

* Add dist-pkg to .eslintignore

* Pull out util from extend-router to prevent router being pulled in UI packages

* Update PLUGINS.md

* Remove duplicate dependency

* Reduce size of built UI packages

* Share codemirror. Other tidy ups

* Further improvements

* Tidy ups to support i18n in plugins

* Clen up add comments

* More clean-ups and comments added

* Rename from extension to plugin

* Missed file in rename

* v0.6.9

* TIdy ups following rename

* v0.1.20

* v0.1.21

* More refactor and tidy up

* v0.1.22

* v0.1.18

* v0.1.19

* v0.1.23

* v0.6.10

* Version Packages. Improve naming. Unload.

* v0.6.11

* v0.1.20

* v0.1.21

* v0.1.24

* v0.6.12

* v0.1.25

* v0.1.22

* v0.6.13

* Fix issues when plugin is builtin

* Add missing files

* Fix lint issues and watcher ignores

* Fixes following review

* v0.1.28

* v0.1.31

* v0.6.20

* Fix coer.js version

* Fix bug where plugins included via npm don't work

* Changes post merge

* Move plugins doc to dev guide, add note at top of README

* Update cypress version

* Add note about the reset --hard in rejig -d

* Fixes post merge

* Rename @ranch to @rancher and ad plugins

* Improve routes support, add package assets support

* Add uninstall hooks and pass interal opts

* Fix rejig script

* Minor fixes

* Routing tweaks
- attempted to improve `addRoutes` typing, failed a lot
- improved typings in plugins.ts
- added "@pkg/*" entry and vue-shim (for importing components) to the pkg creator
- fixed some linting
- safely fail when Verdaccio isn't running
- fixed some typos

* Remove frontmatter-markdown-loader reference from nuxt-config

* Revert "Remove frontmatter-markdown-loader reference from nuxt-config"

This reverts commit 29ef6f2f7b.

* Exclude creators from dashboard build

* Revert "Exclude creators from dashboard build"

This reverts commit 8ede93ee7c.

* Ingore creators via tsconfig
- We're still susceptible with vue shims in multiple packages
- Need to determine why packages can't use shim from route
- Probably need to move `./vue-shim.d.ts` in to `./shell`. Needs testing with a pkg that imports a component

* After rejig

Co-authored-by: Neil MacDougall <nmacdougall@suse.com>
Co-authored-by: Neil MacDougall <nwmac@users.noreply.github.com>
2022-05-10 10:04:02 +01:00
Richard Cox 3a04cf7b1a Plugins: Initial codebase refactor and plugin support (#4779)
* Doc

* v0.7.0

* v0.7.1

* v0.7.2

* Add creators

* v0.1.14

* v0.1.17

* Add Yarn link

* Tidy ups and typos

* Allow models to be loaded from plugins

* v0.1.15

* v0.1.18

* v0.6.6

* Improve readme, fix cyperss log msg

* v0.1.17

* v0.1.19

* v0.6.7

* v0.6.8

* Fix logo ref when in shell

* Fix lint issues

* Fix error in example

* Fix script to work on linux

* Add ability to revert moves without losing changes

* Fix bug with custom models in a plugin

* Fix build of UI packages

* Add dist-pkg to .eslintignore

* Pull out util from extend-router to prevent router being pulled in UI packages

* Update PLUGINS.md

* Remove duplicate dependency

* Reduce size of built UI packages

* Share codemirror. Other tidy ups

* Further improvements

* Tidy ups to support i18n in plugins

* Clen up add comments

* More clean-ups and comments added

* Rename from extension to plugin

* Missed file in rename

* v0.6.9

* TIdy ups following rename

* v0.1.20

* v0.1.21

* More refactor and tidy up

* v0.1.22

* v0.1.18

* v0.1.19

* v0.1.23

* v0.6.10

* Version Packages. Improve naming. Unload.

* v0.6.11

* v0.1.20

* v0.1.21

* v0.1.24

* v0.6.12

* v0.1.25

* v0.1.22

* v0.6.13

* Fix issues when plugin is builtin

* Add missing files

* Fix lint issues and watcher ignores

* Fixes following review

* v0.1.28

* v0.1.31

* v0.6.20

* Fix coer.js version

* Fix bug where plugins included via npm don't work

* Changes post merge

* Move plugins doc to dev guide, add note at top of README

* Update cypress version

* Add note about the reset --hard in rejig -d

* Fixes post merge

* Rename @ranch to @rancher and ad plugins

* Improve routes support, add package assets support

* Add uninstall hooks and pass interal opts

* Fix rejig script

* Minor fixes

* Routing tweaks
- attempted to improve `addRoutes` typing, failed a lot
- improved typings in plugins.ts
- added "@pkg/*" entry and vue-shim (for importing components) to the pkg creator
- fixed some linting
- safely fail when Verdaccio isn't running
- fixed some typos

* Remove frontmatter-markdown-loader reference from nuxt-config

* Revert "Remove frontmatter-markdown-loader reference from nuxt-config"

This reverts commit 29ef6f2f7b.

* Exclude creators from dashboard build

* Revert "Exclude creators from dashboard build"

This reverts commit 8ede93ee7c.

* Ingore creators via tsconfig
- We're still susceptible with vue shims in multiple packages
- Need to determine why packages can't use shim from route
- Probably need to move `./vue-shim.d.ts` in to `./shell`. Needs testing with a pkg that imports a component

Co-authored-by: Richard Cox <richard.cox@suse.com>
# Conflicts:
#	components/nav/Header.vue
#	nuxt.config.js
#	package.json
#	yarn.lock
2022-05-10 10:00:39 +01:00
Neil MacDougall 7be8df0ddf
Sortable table performance fixes (#5435)
* SortableTable: Only use a single timer for live updates and pause on scroll

* Fix slow performance when creating a SortableTable

* Improve SortableTable performance

* Comment out perf simulation

* Comment out unused import

* Further refinement

* Minor tidy ups

* Simple doc on delayed columns

* Fix lint and rebase issues

* Address PR feedback

* Ensure key respects keyField

* Do not use query params for table state

* Fix livedate when no value and bug in pod container list

* Fix issue with badge state styling

Co-authored-by: Richard Cox <richard.cox@suse.com>
2022-04-05 13:29:00 +01:00
Lucas Ramage 53b491afd7
Implement drone-plugin-fossa (#5555)
Co-authored-by: Lucas Ramage <lucas.ramage@suse.com>
2022-04-01 22:35:27 +01:00
Richard Cox 8e75e57a53
Merge pull request #5396 from nwmac/perf-sim
Add simple mechanism to simulate large numbers of resources
2022-03-23 12:52:05 +00:00
Nancy 20976a70d4
Unit test jest (#3405)
* initial setup; unitinput simple example tests

* add coverage report

* testing info in docs

* rm unused babel config options

fix jest typescript

update unitinput unit tests

* Correct tsconfig Jest/Cypress conflicts; update libraries version; remove unnecessary Mocha/Chai

* Update unit input tests

* Ignore new rules from eslint

* Add local unit test script; Disable unit test coverage

* Add babel plugin definitions to avoid warning spam on build

* Pin @babel/preset-env to avoid issues with missing utils;  Merge yarn config from master; Moved packages to devDependencies as not required after build

* Remove file exclusion from editor settings

* Add Lodash types

* Add types to array utility

* Update ESlint rules to allow overload types declarations

* Create Jest tests from existing Ava ones

* Add Jest launcher for debugging

* Update Drone test script runner with CI version

* Remove Ava libraries, scripts and configuration

* Add Jest related linting rules

* Move tests within the related code path

Co-authored-by: cnotv <giuseppe.leo@suse.com>
2022-03-23 11:35:26 +01:00
Neil MacDougall 62dea3b042 Enable via environment variable when in dev 2022-03-22 21:14:27 +00:00
Jordon Leach 0004d97d76
Add container registry action documentation (#5201)
* Add container registry action documentation

* Dashboard index caveat

* Restructure

* Grammer fixes
2022-02-25 07:38:39 -05:00
Richard Cox 387f731ffd Add info on VS Code speller checker extensions to the dev docs 2022-02-22 19:22:35 +00:00
Catherine Luse 2c918ed888
Merge pull request #5097 from catherineluse/docs
Add info from knowledge transfers to developer docs
2022-02-22 12:00:27 -07:00
Catherine Luse 39d041d36f Fix links 2022-02-22 11:49:38 -07:00
Catherine Luse 084020d84f Fix typo and prevent merge conflict with master 2022-02-18 11:30:48 -07:00
Josh Soref 2256ee3acf
Spelling (#4994)
* spelling: accommodate

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: additional

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: address

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: array

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: async

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: attributes

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: automatically

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: available

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: awesomeness

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: because

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: behaviour

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: bootstrapping

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: calculated

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: callback

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: codemirror

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: config

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: configurable

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: constraints

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: default

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: deux

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: different

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: dissimilar

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: ensure

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: evaluate

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: example

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: existence

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: falsy

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: getter

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: global

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: grafana

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: image

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: integer

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: manifest

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: microservices

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: milli

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: mismatch

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: modifier

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: namespace

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: navigation

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: nullable

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: occurred

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: package

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: param

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: permissions

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: portion

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: potentially

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: powershell

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: recipient

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: records

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: representation

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: request

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: required

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: returns

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: separated

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: should

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: software

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: substitute

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: support

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: their

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: unknown

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: upfront

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: upgrade

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: useful

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: validator

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2022-02-11 10:09:54 +00:00
Catherine Luse 1a32b37cbe Add info from knowledge transfers to developer docs 2022-02-11 01:12:00 -07:00
Catherine Luse b1adb12383 Move information in README to developer docs 2022-02-10 19:21:24 -07:00
Catherine Luse 1d0a7c26c3 Reorganize developer docs 2022-02-10 18:52:43 -07:00
Jordon Leach 37e5d04f24 Fix typos 2022-01-18 15:15:56 -05:00
Vincent Fiduccia f9665aadc8
Base class for machine-templates, docs for creating drivers 2022-01-13 17:06:22 -07:00
Richard Cox aa446d72bb Update E2E tests with Page Objects, improve structuring
- Tests are now in their own folder and more suitably organised / named
- E2E Page Object components have been added and used everywhere applicable (not every test has been updated to have POs, though where they exist they're used). For more info on POs see the changes to the `development.md` doc
- Some examples of PO functionality
  ```
  HomePage.gotTo()
  new HomePagePo().checkIsCurrentPage()
  new BurgerMenuPo().clusters()
  new AsyncButtonPO('.my-button').isDisabled()
  new LoginPagePo().username().set('admin');)
  ```
TODO
- Majorly expand tests and POs
- Separate tests into short, smoke test style groups and longer more time consuming tests. The smoke tests could run on PRs and the full suite nightly.
- The existing tests could be sped up by avoiding a page navigation before each individual test, though this comes with a higher chance of bleeding state.
2021-12-23 10:08:43 +00:00
Richard Cox 4f2c43fdc7 Update developer docs
- Move `Testing` to the end
- Add info on package management
2021-12-21 10:13:32 +00:00
Catherine Luse 36ac91671b
Merge pull request #4490 from catherineluse/create-edit-docs
Document create/edit forms
2021-11-26 16:10:32 -07:00
Catherine Luse 08d665329f Say form validation section will be expanded 2021-11-26 16:00:41 -07:00
Catherine Luse 73b82acd24 Document which Rancher version to use in development 2021-11-23 20:06:47 -07:00
Catherine Luse 19ccb79130 Add learning path to onboarding docs 2021-11-19 17:22:55 -07:00
Catherine Luse 6efb356a96 Respond to Richard's feedback on create/edit developer doc 2021-11-13 17:33:58 -07:00
Nancy 55b5ac961e
Merge pull request #4487 from mantis-toboggan-md/test-e2e-upgrade
upgrade cypress and use login sessions
2021-11-03 13:02:21 -07:00
Nancy Butler 4c0b561d7e upgrade cypress and use login sessions
remove trailing slash from cypress conifg baseUrl
2021-11-03 09:08:11 -07:00
Catherine Luse 8aa7b3d159 Document create/edit forms 2021-11-02 18:52:16 -07:00
Catherine Luse c02e8eec92
Merge branch 'master' into catherineluse-patch-1 2021-11-02 14:51:57 -07:00
Catherine Luse 8cbd649921 Remove outdated info 2021-11-02 01:11:25 -07:00
Catherine Luse 3fc260c776
Remove outdated info 2021-10-29 00:58:25 -07:00
Jordon ce50fdbb8b Update developer docs 2021-10-14 13:52:01 -04:00
Catherine Luse a35dd606e3 Expand developer docs 2021-09-29 18:12:21 -07:00