Sebastian Malton
afb7af7db4
Improve documentation of Singleton functions, change to createInstance
...
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-04-21 10:10:49 -04:00
Sebastian Malton
9563ead2e6
Fixing Singleton typing to correctly return child class ( #1914 )
...
- Add distinction between `getInstance` and `getInstanceOrCreate` since
it is not always possible to create an instance (since you might not
know the correct arguments)
- Remove all the `export const *Store = *Store.getInstance<*Store>();`
calls as it defeats the purpose of `Singleton`. Plus with the typing
changes the appropriate `*Store.getInstance()` is "short enough".
- Special case the two extension export facades to not need to use
`getInstanceOrCreate`. Plus since they are just facades it is always
possible to create them.
- Move some other types to be also `Singleton`'s: ExtensionLoader,
ExtensionDiscovery, ThemeStore, LocalizationStore, ...
- Fixed dev-run always using the same port with electron inspect
- Update Store documentation with new recommendations about creating
instances of singletons
- Fix all unit tests to create their dependent singletons
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-04-21 09:59:59 -04:00
Sebastian Malton
9ed395ea80
Display a pod as terminating even if it isn't running ( #2575 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-04-21 08:26:42 +03:00
osddeitf
04d3cd5b14
Add support for viewing 'User-supplied values' of helm release ( #1862 )
...
Co-authored-by: Sebastian Malton <sebastian@malton.name>
2021-04-20 11:47:38 -04:00
Sebastian Malton
a2be178191
Refactor helm-release.api to use free functions instead of an object ( #2264 )
...
- Rename functions to be more descriptive
- Change all functions to be Promise based
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-04-20 10:51:45 -04:00
Arthur Knoepflin
52ebcc4fdb
Add ability to configure the locale timezone ( #2523 )
2021-04-20 09:26:52 -04:00
Jari Kolehmainen
8d42d40433
fix initial hotbar not showing ( #2551 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-04-20 09:09:13 +03:00
Jari Kolehmainen
8dde4a1ecb
Refactor cluster settings to catalog entity settings ( #2525 )
...
* fix cluster settings page layout
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* refactor cluster settings to pluggable entity settings
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix gh actions network timeout on yarn install
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* review changes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-04-20 07:05:44 +03:00
steve richards
e560baa2d0
Pre-Validate kubeconfig before making available in Lens ( #1078 )
2021-04-19 11:46:07 -04:00
Sebastian Malton
23c9255b9a
Refactor StorageHelper to be clearer in its constructor ( #2417 )
2021-04-19 11:46:07 -04:00
Sebastian Malton
c79b6c0015
Fix releases not reloading when selecting namespaces ( #2515 )
2021-04-19 11:46:07 -04:00
MinJeong Kim
92139d26ed
fix: proper sorting resources by age column ( #2182 followup) ( #2414 )
...
Co-authored-by: Jim Ehrismann <40840436+jim-docker@users.noreply.github.com>
2021-04-19 11:46:07 -04:00
Sebastian Malton
5a72f7a022
Fix CRD versions not being provided ( #2500 )
2021-04-19 11:46:07 -04:00
Alex Andreev
d5bc7425f5
Polishing settings styles ( #2534 )
...
* Polishing settings css
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fixing inputs border-radius
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Removing Box component
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Removing unused import
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Remove content region style fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Revert theme colors
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Set new colors in theme files
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Change Cluster extectedText
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-04-19 15:19:09 +03:00
Sebastian Malton
61b00b4c12
display close button on deleted kube details page ( #2428 )
2021-04-16 17:37:02 -04:00
pashevskii
ec9c47752f
YAML Templates in Create Resource dock tab ( #2327 )
...
Co-authored-by: Pavel Ashevskiy <pavel.ashevskiy@ifellow.ru>
2021-04-15 08:19:54 -04:00
Jari Kolehmainen
1ac5588fab
Allow to control catalog entity menu item visibility based on source ( #2499 )
...
* allow to control catalog entity menu item visibility based on source
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-04-15 15:16:56 +03:00
Alex Andreev
126d542335
Dropping catalog sidebar paddings ( #2526 )
...
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-04-14 15:00:50 +03:00
Jari Kolehmainen
e948fc047c
Allow register actions to "add to catalog" button ( #2497 )
...
* registrable add-to-catalog button
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix integration tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix integration tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-04-13 14:51:43 +03:00
Alex Andreev
ec28d884ae
Styling catalog sidebar ( #2496 )
...
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-04-12 09:32:07 +03:00
Jari Kolehmainen
99a464c61d
Catalog & Hotbar - initial groundwork ( #2418 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-04-09 09:11:58 +03:00
Alex Andreev
84cc0cdf55
Preferences page redesign ( #2446 )
...
* Removing header part
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Restyling PageLayout
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Restyling .round-black Input
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Adding Tab navigation to Preferences
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Styling Application tab
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Add esc button
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Add media queries
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Introducting Switcher component
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Styling Proxy tab
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Moving start-up switcher to Other tab
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Styling Kubernetes tab
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Styling Extensions tab
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Styling inputs and selects
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Styling helm chart section
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Create a telemetry tab with extensions
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Adding lens Select theme
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Remove Other tab
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix mainBackground color
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Simplifying Tabs boilerplate
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Replacing button font
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fixing one-column settings layout
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fixing integration tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fixin tests harder
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Showing bottom bar in workspaces
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-04-06 15:45:23 +03:00
Violetta
33c405bdcf
Save sorting order when changing view ( #2353 )
...
Signed-off-by: vshakirova <vshakirova@mirantis.com>
2021-04-01 10:29:17 -04:00
Sebastian Malton
04e5180511
Fix StorageHelper.get() returning null after clearing ( #2421 )
2021-04-01 10:27:27 -04:00
Alex Andreev
da196387b8
Revert "Wrapping ReactSelect styles into CacheProvider ( #2365 )" ( #2419 )
...
This reverts commit 69200b50c7 .
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-31 10:23:43 -04:00
Sebastian Malton
c7e1ab27fd
Improve correctness and efficiency in some of pods api helper functions ( #2067 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-03-30 10:53:18 -04:00
Sebastian Malton
eec0644667
Notify user if Helm list fails ( #2262 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-03-30 10:14:34 -04:00
Sebastian Malton
503a49261e
Fix unit tests and make tests fail if a promise rejects after the test harness is finishes ( #2034 )
2021-03-30 10:14:05 -04:00
Jim Ehrismann
4529b1ec33
workspace overview is now reactive to cluster changes ( #2356 )
...
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2021-03-30 10:12:57 -04:00
Alex Andreev
69200b50c7
Wrapping ReactSelect styles into CacheProvider ( #2365 )
...
* Wrap app into emotion CacheProvider to isolate styles
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix CacheProvider key
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Moving CacheProvider into more specific components
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Align @emotion/react & @emotion/cache version with ones inside react-select
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Covering more components with CacheProvider
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Changing emotion versions a bit more
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Moving CacheProvider into bootstrap
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Updating react-select types
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* A bit of cleaning up types
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Specifying types a bit more
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix gradients in namespace selector
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Importing types separately
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Using generic NonceProvider in bootstrap
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-30 12:05:41 +03:00
Roman
2c50e7aa1c
refactoring: get rid of SidebarItem.props.subMenus in favour of props.children only ( #2384 )
...
Signed-off-by: Roman <ixrock@gmail.com>
2021-03-25 13:19:58 +02:00
Roman
6789815217
Set initial cursor position for the editor to beginning ( #2385 )
...
Signed-off-by: Roman <ixrock@gmail.com>
2021-03-24 13:22:17 -04:00
Roman
4303700bb2
Fix: highlight sidebar's active section ( #2366 )
...
* - fix: highlight active sidebar section / link
- fix: caching crd definitions to prevent sidebar's scroll jumps
- refactored & simplified `Sidebar` and `SidebarItem`
Signed-off-by: Roman <ixrock@gmail.com>
* responding to comments
Signed-off-by: Roman <ixrock@gmail.com>
* adding @jsdoc comments to SidebarItem
Signed-off-by: Roman <ixrock@gmail.com>
2021-03-24 15:17:56 +02:00
Sebastian Malton
ee4d434d35
Add notification to user to add accessible namespaces ( #2173 )
2021-03-23 13:21:47 -04:00
Roman
62c3501011
Fix: incorrect subscribing event name to navigate in cluster view ( #2363 )
...
Co-authored-by: Sebastian Malton <sebastian@malton.name>
2021-03-23 11:04:31 -04:00
Alex
e718b250cc
Change Cluster Settings button to be consistent with cluster icon menu ( #2065 )
...
Co-authored-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: Alex Culliere <alozhkin@mirantis.com>
2021-03-23 08:41:58 -04:00
Roman
e70ac87c52
Fix: editing resource is broken when another resource is being editing ( #2364 )
...
Signed-off-by: Roman <ixrock@gmail.com>
2021-03-23 08:11:11 -04:00
Roman
aedcc6d70e
Persist local-storage in external json-file ( #2279 )
2021-03-18 08:36:34 -04:00
Alex Andreev
da5a4bbdf4
Removing explicit z-index in lens-views ( #2358 )
...
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-18 08:35:08 -04:00
Sebastian Malton
0561f6bfd0
Add common app routes to the protocol renderer router ( #2272 )
2021-03-17 13:57:49 -04:00
Alex Andreev
ca39379b3a
Fix: closing workspace menu after clicking on iframe ( #2349 )
2021-03-17 11:31:34 -04:00
Sebastian Malton
1aff341f0e
Fix workspace overview switching and enabled state storage ( #2342 )
2021-03-16 13:48:07 -04:00
Violetta
a9a5766920
Add the ability to hide metrics from the UI ( #2036 )
2021-03-16 09:22:08 -04:00
Alex Andreev
5c373a886c
Navigation menu in Preferences ( #2304 )
2021-03-15 08:57:19 -04:00
Violetta
8e1583a59c
Add terminal shortcut for mac os ( #2316 )
...
Signed-off-by: vshakirova <vshakirova@mirantis.com>
2021-03-15 08:22:30 -04:00
Sebastian Malton
c0d18ff19e
Cleanup SearchStore ( #2299 )
2021-03-12 16:26:02 -05:00
Sebastian Malton
373d2d2a47
add debug prints for actions against the navigation object ( #2321 )
2021-03-12 16:03:34 -05:00
Roman
c815396622
Fix: cluster-settings page back-button navigation is broken ( #2330 )
...
Signed-off-by: Roman <ixrock@gmail.com>
2021-03-12 12:48:09 -05:00
Alex Andreev
7ce7722db4
Fixing workspace menu icon color ( #2325 )
...
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-12 09:22:37 -05:00
Sebastian Malton
6508871209
Add horizontal scrolling to NamespaceSelect ( #2276 )
2021-03-12 08:45:32 -05:00