* Enable extension to specify storeName for persisting data
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
* Add unit tests and update injectables
Signed-off-by: Antti Lustila <antti.lustila@luotocompany.fi>
* Remove unnecessary mock
Signed-off-by: Antti Lustila <antti.lustila@luotocompany.fi>
---------
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
Signed-off-by: Antti Lustila <antti.lustila@luotocompany.fi>
Co-authored-by: Antti Lustila <antti.lustila@luotocompany.fi>
* Add a bit of spacing before Installed extensions title
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Update snapshot
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
---------
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix daily-cron failing to bump version
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix variable name
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Close dock tab only if submit() resolved
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Close dock tab only if all resources successfully created
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Simpler error throw
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
---------
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Initial tests for <NamespaceTreeView />
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Introduce <NamespaceTreeView/>
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Render namespace children
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Render a child subnamespace
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Remove unused lodash import
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Render subnamespace badge after name
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Testing rendering 2 levels deep
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Add tree view to namespace details
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Expand all nodes by default
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Add links to the tree items
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Initial label styling
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Label and group styling
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Remove fontSize attr from SvgIcon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Styling subnamespace badge
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Expand and collapse tree nodes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Testing clicking plus icon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Restyling subnamespace badge
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Adding tooltip for subnamespace badge
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Linter fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix linter harder
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Replace CloseIcon with semi-transparent MinusIcon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Styling TreeView inside scss module
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Move isSubnamespace method inside API
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Extract nodeId to avoid repeating
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Rename Icon components
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Clean up tests from boilderplate
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Subnamespace badge style fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Linter fix
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Use font-size: x-small instead of rem units
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Move subnamespace badge show check to parent
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Use prevDefault util
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Refactor: move tree build logic to store
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Linter fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Refactor hierarchicalNamespacesInjectable
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Add tests for getNamespaceTree() function
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Use Subnamespace badge in namespace list (#7132)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
---------
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Renderer file logging transport
Add file logging to renderer, writing separate log files for renderer main frame and each cluster frame.
Related to lensapp/support-lens-extension#118
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Switch renderer file log level to info
There is too much noise on debug level from api responses etc
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Unmount on pagehide instead of beforeunload
It seems cluster onbeforeunload is not triggered when iframe is removed from dom by the parent (when disconnecting a cluster).
While on root/main frame the beforeunload event does work, it seems to be adviced to use pagehide instead.
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Close log files on unmount
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Improve file handle closing in different situations
This should cover reloading main and cluster frames and closing cluster frame throught disconnecting cluster. No file handles should be left open now.
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Fix renderer log rotation
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Switch back to beforeunload in root frame
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Remove capturing phase event usage
Does not seem to be needed for log files to be successfully closed and caused integration tests to fail.
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
---------
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* fix invalid bin links causing errors on windows
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* add --include-dependencies
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
---------
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* core webpack dependencies as externals
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* use fork-ts-checker-webpack-plugin
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
---------
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* Export more things for the extension API
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Provide more insight into the dist-tag computation
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move @k8slens/generate-tray-icons to seperate package
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Rename very long folder name to fix issue on windows
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Make it possible to build on windows using powershell
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix integration tests on windows
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Don't error on close directly
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Switch to type: module for generate-tray-icons
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Make more packages type:module
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix scripts needing node
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* fix ensure-binaries bin
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix dist file extension
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* use type: module
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix lerna/yarn timeouts on windows
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* increase install dependency retry timeout
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
---------
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* allow to develop & build on windows powershell
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* remove hardcoded bash shell from test workflow
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* use rimraf
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
---------
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>