Commit Graph
100 Commits
Author SHA1 Message Date
Sebastian Malton b8d5e419d6 Update last snapshot
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-10 09:06:08 -05:00
Sebastian Malton a6c3d81e03 Fix tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-09 17:39:32 -05:00
Sebastian Malton aec860af33 Fix BaseStore sync
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-09 15:10:54 -05:00
Sebastian Malton 33b95970df Add better logging
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-09 14:51:42 -05:00
Sebastian Malton c429509a5b Fix behaviour regression
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-09 14:51:35 -05:00
Sebastian Malton da7387aeae Better formatting
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-09 14:51:27 -05:00
Sebastian Malton 8acb4574db Correctly mark currentlyInClusterFrame as causedSideEffects
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-09 14:51:13 -05:00
Sebastian Malton afac253461 Add override for technical test
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-09 13:52:56 -05:00
Sebastian Malton cda5ada48c Update snapshots after removing side-effects
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-09 13:52:14 -05:00
Sebastian Malton ec42d10f7b Fix cluster state sync
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-09 11:48:40 -05:00
Sebastian Malton 731aec1bb8 Fix init ordering during start frame
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-09 11:33:58 -05:00
Sebastian Malton 29a35ab71c Add tests to verify runMany behaviour in new possible incorrect configuration
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-09 10:50:33 -05:00
Sebastian Malton 1a8040e88f Cherry pick updated startFrameInjectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 18:01:57 -05:00
Sebastian Malton dcd82ad53c Fix crash
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 18:01:39 -05:00
Sebastian Malton 2217b681e9 Fix type error
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 17:52:52 -05:00
Sebastian Malton 318d7fbe2b Fix loading
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 17:40:43 -05:00
Sebastian Malton 3eabad4362 Update snapshots
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 17:40:37 -05:00
Sebastian Malton f95ed19a7d Fix test flakiness by removing side effects from userStore preferences
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 17:14:30 -05:00
Sebastian Malton a6d1b7a3a4 Fix more type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:51:48 -05:00
Sebastian Malton 1a4c1d8a68 Fix catalog tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:23:33 -05:00
Sebastian Malton d724c4bf2a Fix usage in light of changed prop names
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:01 -05:00
Sebastian Malton b87960659b Replace use of legacy global PathPicker.Pick
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:01 -05:00
Sebastian Malton a33b3cde73 Remove another use of legacy requestOpenPathPicker
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:01 -05:00
Sebastian Malton 177d364d3f Fix type error in legacy ipc registration
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:01 -05:00
Sebastian Malton a81873fe52 Fix pick paths import type error and simplify signature
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:01 -05:00
Sebastian Malton bae2aa0884 Remove unused code
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:01 -05:00
Sebastian Malton 0578093d15 Fix sidebar and tab tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:01 -05:00
Sebastian Malton 8d88f4d3a0 Fix kubeconfig sync tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:01 -05:00
Sebastian Malton 62cc4efae0 Fix user store tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:01 -05:00
Sebastian Malton 808af583cd Fix cluster-role-dialog tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:01 -05:00
Sebastian Malton c2f6aed717 Fix extension-discovery tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:01 -05:00
Sebastian Malton 551172b1c2 Fix extension-loader tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:01 -05:00
Sebastian Malton c23d3e349b Fix cluster store tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:01 -05:00
Sebastian Malton e414fbace5 Fix hotbar store tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:01 -05:00
Sebastian Malton 6c061165de 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>
2022-12-06 09:19:01 -05:00
Sebastian Malton cecc8b951d Update snapshots
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:01 -05:00
Sebastian Malton 6e7655ba03 Fix import
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:01 -05:00
Sebastian Malton e4adc3f1e3 Remove props from dnd mock to make snapshot diffs smaller
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:01 -05:00
Sebastian Malton 8de3e75191 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>
2022-12-06 09:19:01 -05:00
Sebastian Malton ee33cc96d9 Update listing-active-helm-repositories-in-preferences snapshots
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:01 -05:00
Sebastian Malton ca49e585e7 Fix HotbarStore.load being called twice is being buggy
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:01 -05:00
Sebastian Malton 618d0d83b5 Update and fix WriteJson(Sync) to fix error in tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:01 -05:00
Sebastian Malton c6c2bb920a Fix react-beautiful-dnd mocks
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:01 -05:00
Sebastian Malton c68a1bfd04 Convert all renderer runnables to late-inject style
- To help fix issues around injection time

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton 83bb5c37d9 Fix ordering of runnable and order of injection
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton 7c221112a0 Fix injecting before app paths are set up
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton 8ad761b045 Fix injecting before app paths are set up
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton 26af59ad64 Fix override file name
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton ff54c042b6 Complete cherry-pick of current cluster injcetablization
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton 41a9957ede Fix incorrectly fully cherry picking new runnable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton 5d39fe5539 Fix duplicate mock warning
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton 9877f99c3a Fully cherry pick injectablizing custom monaco themes
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton 866a69ef67 Remove dead code
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton 6f4ddf72e8 Remove unnecessart awaits
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton 76931f8aa8 Fix old imports
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton 8b9a9ab25f Manually split out terminal color names and fully type LensTheme
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton 621ca72f13 Cleanup old code from missed from previous commit
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton 963651ef4b Make LensTheme fully injectable and runnable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton 56c78c8c8b Move init hotbar store into runnables
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton f7b5ae7b57 Make cluster state sync fully injectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton 659b63d0cf Convert navigateForExtension init to runnable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton d585b0957c Convert contextMenuOpen initializers into runnables
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton 0cad3e7bae Move initializing CatalogCategories to runnable in bootstrap
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton 9e1d182459 Consolidate more bootstrapping into startFrame
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton 01d3914b5a Fully injectable-ize BaseStore so that ApplicationBuilder tests work
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton cf0ca414ea Fix test failures due to incomplete overrides
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton 4875f24af3 Remove dead code
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton 36063d86af Add stat to fake FS
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton 69cfe9a25e Add createReadStream to fake FS
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton e10be8a4f0 Use pathExistsSync instead of fsInjectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:19:00 -05:00
Sebastian Malton 06f4802748 Fix type error
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton 8409d56fdf Add ensureDir/Sync support to fake FS
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton af48b7de5f Handle copy as part of fake FS
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton f7c3657e60 Add fake access support
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton 906172bc29 Remove use of global shared Electron.App
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton 8d55a3a08d Overhaul FS fakes with full in-memory filesystem
- This increases our confidence in fs related logic

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton 6cc89bf154 Remove overrides for configuration stores
- Now that there is an override for getConfiguration

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton bea52f9f80 Add global override for getConfigurationFileModel to fix tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton 59657fcea4 Fix user store tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton c4a8604b25 Fix hotbar store tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton bbf6ec38bf Fix runManyFor tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton 9dbc6bc293 Fix base store tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton 570d252950 Add global override to fix tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton 4feff54796 Remove traces
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton ed99f24420 Use multiple runAfter support to fix crash on renderer
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton 5b80dfc70a Add support for multiple "runAfter" runnables
- Needed so that several dependencies can be declared

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton f9084bc2b7 Remove unneeded appPathsInjectionToken
- Only had once impl, which was in common anyway

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton 0460db2e12 Move initializing sentry to runnable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton 8410a82596 Add catching of error while starting main application
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton 8217ad4ba8 More consistent use of BaseStore.displayName
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton 0cf9f9e536 Fix typing in tests to satisfy requirement to have cacheFile
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton 33e76313bd Cleanup formatting
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton ace5673a3d Add typing to transient injectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton 5a1fd72767 Fix messed up import
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton 39d38252cc Add simple migrations dependency for stores without any preexisting migrations
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton 21039e2387 Remove usage of legacy global ClusterStore.getInstance
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton bd47377dd1 Remove usage of legacy global .getInstance
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton 303a397209 Remove tests that reference lastSeenVersion
- That value is not used anywhere in code

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton a4ae7c0b41 Fix type error in base-store tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00
Sebastian Malton 846236452c Remove dead code
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-06 09:18:59 -05:00