- Remove all uses of React.ReactNode as it is unsafe, replace them with
usages of SafeReactNode which doesn't contain the '{}' type
Signed-off-by: Sebastian Malton <sebastian@malton.name>
- Allows for bundled kubectl config to be changed without code changes
- Introduce @k8slens/kubectl-versions
- Compile time fetching of versions
- Update @swc/* packages
Signed-off-by: Sebastian Malton <sebastian@malton.name>
- Has better typing
- Removes use of unnusual unique symbol
- Fix welcome banner tests
- Update associated snapshots
- Start converting custom column tests to use ApplicationBuilder
- Remove old and unnused RecursiveTreeView
- Introduce new TreeView for use in CatalogMenu to fix tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Persist apiVersion when editing resources in monaco
- Use a new custom k8slens prefixed label
- Means that users aren't surprised when they use lens to update a
resource to a new apiVersionWithGroup
- Doesn't touch the versions in the stores
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix lint
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* fix: Fix lint issues
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* chore: make lint not bail on failure
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* chore: Run lint:fix on all files
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
- Bundled extensions are always enabled, and are always compatible
- Have bundled extensions be loaded asyncronously to support
typescript dynamic import (which is typed) as opposed to require
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* feat: Allow built versions to specify an environment
- This should be hard coded at build time
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* chore: Add default value to open-lens
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* chore: Add --no-bail to test script invocations
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* chore: Add tests for coverage of new code
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Get dev mode fixed
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add empty scripts for windows to satisfy run-script-os
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix webpack config for react
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Introduce package for discovering html elements in unit tests
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Switch to using discovery of html elements from package
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Introduce competition for starting react application inside the Feature
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Move stuff in application start to earlier timeslot having no real need to be done so late
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Switch to using react application root feature being more friendly to extending
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Switch to using more familiar pattern of higher order components for wrapping react application
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Adapt to more familiar pattern for higher order components
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Rename feature for clarity
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
---------
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Remove requirement for JSON of messages
- Remove backhanded requirements of reactive contexts, overriding
application configurations.
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix type error
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Rename ExtensionStore -> BaseExtensionStore
- The name was too close to ExtensionsStore
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move ExtensionsStore to new format
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move ClusterStore to new format
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move UserStore to new format
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Cleanup types to remove multiple cast locations
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move HotbarStore to new format
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move WeblinkStore to new format
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move FileSystemProvisionerStore to new format
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Update snapshots
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Clean up impl and rename to better describe intent
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix remaining type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fully split apart the enabled extensions storage
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fully split apart the clusters storage
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fully split apart the hotbar storage
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fully split apart the weblinks storage
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fully split apart the user preferences storage
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix crashing
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix tests and snapshots
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix integration test failures
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Improve typing to prevent errors in the future.
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Cleanup @k8slens/messaging and friends
- To fix type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix lint issue
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix global override not being complete enough causing tests to fail
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Bump memory for unit tests on CI
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Attempt to fix memory issue on CI again
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fixup test because of new injectables
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Upgrade Jest
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix unit tests falling over
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Back out jest config change
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove console log
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Update snapshot
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix tests by matching equality instead of snapshots
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix tests by forcing specific snapshot style
- Ubuntu CI seems to format arrays in snapshots differently than macOS locally
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix type error in new @k8slens/messaging
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Better fix to conform to tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* electron 22.3.3.
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix typo
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix crash on quit
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix sessionData app path
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* Fix errors after merging new feature
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
* Add custom jest resolver to fix requiring "uuid" module
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Update dependencies
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Introduce test utils for rendering and running with thrown mobx reactions
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Extract startable-stoppable to NPM package
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Extract messaging to NPM package
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Switch to using startable-stoppable from NPM package
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Switch to using messaging from the Feature
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Remove old implementation of messaging
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Make setupping app paths happen earlier in renderer
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Fix typo
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Add kludge to make testing-library work properly from test-utils package
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Fix code style
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Add lint:fix -root script
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Fix unrelated failing unit tests
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Turn of no-floating-promises from typescript linting for being broken
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Make linting not happen for dist -directories
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Make linting failures appear as failure
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Stop running prettier twice
It already gets ran as eslint-plugin.
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Make CI run unit tests for all packages by consolidating name of NPM script
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Add missing unit tests for coverage
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Skip coverage for test utils
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Remove check for coverage in packages which are not ready for it
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Stop collecting coverage from index.ts files them being indirections to the implementation
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Implement sending message to channel in main
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Add missing feature dependencies
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Add dummy implementations for requesting in main from renderer
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Re-enable communicating from main to cluster frames
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Ignore trivial files from coverage
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Update package-lock
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Extract message-bridge to separate NPM package to prevent dev dependencies being in the production bundle
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Extract computed channel to own NPM package for clear dependencies
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Consolidate electron related stuff to a directory
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Add missing publish configurations
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Ignore test implementation from coverage being not interesting
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
---------
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Fix bundled extensions not being loaded
- Also show that this fixes it by added an example bundled
extension to 'open-lens'
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix build
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add explanatory comment for inline require
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Release 6.5.0-alpha.1
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Switch to having lerna in independent mode
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix package versions
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Update snapshot
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
- Now the callback is provided with an object containing either
`mainDi` or `windowDi` fields. This should help with confusion
over which environment the `di` is for
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Introduce package for sharing eslint and prettier configurations
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Start using eslint and prettier in packages
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
---------
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>