* Remove Singleton from BaseStore to remove global shared state
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove more usages of Singleton
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Replace use of legacy global execHelm with injectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove last use of legacy global execHelm
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Extract BaseStore deps into constructor argument
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Introduce method to make store migrations injectable
- Use it for ClusterStore
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Switch HotbarStore to injectable migrations
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Switch UserStore to injectable migrations
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move migration utils into common/utils/
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Switch WeblinkStore to injectable migrations
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove dead code
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix type error in base-store tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove tests that reference lastSeenVersion
- That value is not used anywhere in code
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove usage of legacy global .getInstance
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove usage of legacy global ClusterStore.getInstance
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add simple migrations dependency for stores without any preexisting migrations
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix messed up import
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add typing to transient injectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Cleanup formatting
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix typing in tests to satisfy requirement to have cacheFile
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* More consistent use of BaseStore.displayName
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add catching of error while starting main application
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move initializing sentry to runnable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove unneeded appPathsInjectionToken
- Only had once impl, which was in common anyway
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add support for multiple "runAfter" runnables
- Needed so that several dependencies can be declared
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Use multiple runAfter support to fix crash on renderer
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove traces
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add global override to fix tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix base store tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix runManyFor tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix hotbar store tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix user store tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add global override for getConfigurationFileModel to fix tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove overrides for configuration stores
- Now that there is an override for getConfiguration
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Overhaul FS fakes with full in-memory filesystem
- This increases our confidence in fs related logic
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove use of global shared Electron.App
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add fake access support
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Handle copy as part of fake FS
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add ensureDir/Sync support to fake FS
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix type error
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Use pathExistsSync instead of fsInjectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add createReadStream to fake FS
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add stat to fake FS
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove dead code
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix test failures due to incomplete overrides
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fully injectable-ize BaseStore so that ApplicationBuilder tests work
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Consolidate more bootstrapping into startFrame
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move initializing CatalogCategories to runnable in bootstrap
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Convert contextMenuOpen initializers into runnables
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Convert navigateForExtension init to runnable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Make cluster state sync fully injectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move init hotbar store into runnables
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Make LensTheme fully injectable and runnable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Cleanup old code from missed from previous commit
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Manually split out terminal color names and fully type LensTheme
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix old imports
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove unnecessart awaits
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove dead code
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fully cherry pick injectablizing custom monaco themes
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix duplicate mock warning
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix incorrectly fully cherry picking new runnable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Complete cherry-pick of current cluster injcetablization
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix override file name
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix injecting before app paths are set up
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix injecting before app paths are set up
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix ordering of runnable and order of injection
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Convert all renderer runnables to late-inject style
- To help fix issues around injection time
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix react-beautiful-dnd mocks
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Update and fix WriteJson(Sync) to fix error in tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix HotbarStore.load being called twice is being buggy
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Update listing-active-helm-repositories-in-preferences snapshots
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix sidebar-and-tab-navigation-tests
- Move enabling extensions in tests to a proper location
- Fix flushing promises
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove props from dnd mock to make snapshot diffs smaller
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix import
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Update snapshots
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix tests by overriding things that are no longer overriden by default
- NOTE: They are overridden when using ApplicationBuilder
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix hotbar store tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix cluster store tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix extension-loader tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix extension-discovery tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix cluster-role-dialog tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix user store tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix kubeconfig sync tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix sidebar and tab tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove unused code
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix pick paths import type error and simplify signature
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix type error in legacy ipc registration
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove another use of legacy requestOpenPathPicker
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Replace use of legacy global PathPicker.Pick
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix usage in light of changed prop names
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix catalog tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix more type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix test flakiness by removing side effects from userStore preferences
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Update snapshots
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix loading
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix type error
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix crash
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Cherry pick updated startFrameInjectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add tests to verify runMany behaviour in new possible incorrect configuration
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix init ordering during start frame
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix cluster state sync
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Update snapshots after removing side-effects
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add override for technical test
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Correctly mark currentlyInClusterFrame as causedSideEffects
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Better formatting
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix behaviour regression
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add better logging
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix BaseStore sync
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Update last snapshot
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add global override for randomBytes
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Make startMainApplication not an injection time side effect
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Choose better names for start-frame runnable tokens
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove duplication of code in RunManyFor
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add unit tests and fix handling empty runAfter array
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Replace use of mobx from runManyFor with custom barrier
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add missing test
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Using custom properties for z-index values
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Reorder values
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Remove unused styles
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Different set of z-index css vars
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Revert z-index to main layout
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Save only used selectors from flex.box library
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Remove flex.box dependency
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
Fixes#5132#5133
- bundled 7 new monospaced fonts for terminal
- fix: refresh terminal font after changing in the preferences / keep cluster iframe accessible in DOM while not active/focused
- display terminal's custom font preview with font-name in the select-box + live-preload for current `fontSize`, fix lint
* Fixes for <Input/>:
- remove duplicated error messages for sync validators
- don't propagate invalid values on change (uncontrolled components only)
- more informative error message for numeric input with min/max info
* always preload app fonts at earliest stages, fix#5019
Signed-off-by: Roman <ixrock@gmail.com>
* attempt to fix tests, clean up
Signed-off-by: Roman <ixrock@gmail.com>
* Add context menu in topbar
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Adding windows title buttons
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Adding win sandwitch icon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Hide windows controls behind the flags
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Adding tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix topbar layout
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Using topbar as draggable area
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix sandwich icon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Mark no-draggable areas
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Remove ipcMainOn window calls
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Explicitly hide main window menu
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix tests more
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Restore linux native view
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Not removing menu in linux
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Showing custom window buttons in Linux
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Remove frame on linux and windows
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Move open context menu event handler to initializers
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Set x, y context menu position explicitly
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Removing tailwind base and components styles
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix link coloring in few places
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Rendering close button in cluster view
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Changing Icon hover style
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Moving onClick handler away
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Removing sidebar compact view
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Removing 'compact' refs in SidebarItem
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Wrapping Catalog with MainLayout
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Making sidebar resizing indicator visible on hover
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Adding TopBar to catalog view
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Using TopBar in cluster views
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Cleaning up Sidebar styles
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Using getActiveClusterEntity() for searching
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix resizing anchor position
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Align cluster name on left
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Removing unused files
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Removing unused css var
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Showing Topbar in ClusterStatus page
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Removing TopBar from ClusterManager
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Setting up tailwind and css modules env
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Using tailwind with scss files also
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Introducing react-table
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Spread extensions to smaller components
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Add table sorting
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fixing inputs line-height
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fine-tuning page view
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Align table rows
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Adding extension notice
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fine-tuning overall styling
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Adding a extensions placeholder
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Updating MaterialIcons font
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Aligning not found state
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Making extension components observable
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fixing search input cross icon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix drag-n-drop indication
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fixing extension name sorting
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix linter
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fixing tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Ignoring ts files to tailwind purge
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Cleaning up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Renaming Table -> ReactTable
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fixing integration tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Moving tailwind imports into app.scss
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Moving userExtensionList() out from extension-loader
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Transform extension list to array
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Expand install input placeholder a bit
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* check source files for license header
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* tweak
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* add license header to all relevant source files
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* Setting global webkit-scrollbar styles
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Removing usage of custom-scrollbar mixin
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Set overflow:auto on .Table
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fixing .drawer-content paddings
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Cleaning up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Removing !important statements from theme vars
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Wait for user store to load
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix this reference
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Aligning test with resetTheme() fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* reduce height on draggable-top and only render it on macos
* move drag bar out of app and into bootstrap
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Adding cluster menu colors
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Adding theme class name flag into #app
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Cleaning up mixins
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Tuning up Wizard Layout styles
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Using theme-light global flag
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Minor style fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Using .theme-light flag across components
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Set theme as @computed value
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Preventing Drawer slide-in scroll flickering
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Setting background for settings views
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Minor layout fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Switching AceEditor theme reactively
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Cleaning up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
Signed-off-by: Roman <ixrock@gmail.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: Sebastian Malton <smalton@mirantis.com>
Co-authored-by: Lauri Nevala <lauri.nevala@gmail.com>
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>