1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Commit Graph

2668 Commits

Author SHA1 Message Date
Janne Savolainen
c76f785d07
Remove duplication from getting preference navigation items for different groups
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-06-21 15:59:17 +03:00
Alex Andreev
b86db072c6 Remove unused di statements
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-21 13:53:29 +03:00
Alex Andreev
42112a1c03 Show 'No extension found' visual error
instead of throwing an error in injectable

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-21 13:51:36 +03:00
Alex Andreev
ac926ce75b Linter fix
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-21 11:43:39 +03:00
Alex Andreev
788d4c61de Refactor preference-navigation.test
To align with behavioural style

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-21 11:42:44 +03:00
Alex Andreev
10c9581f1b Remove test file with duplicated test cases
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-21 11:05:02 +03:00
Alex Andreev
babca98347 Add test cases from the extensions.test.tsx file
Which will be removed next

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-21 11:04:13 +03:00
Alex Andreev
5a822bf6c0 Fix linter errors
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-21 10:13:09 +03:00
Alex Andreev
48ddfbc749 Refactor <PreferencesNavigation>
- Moving logic out of react component
- Remove 'fromExtension' prop from navigaion items

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-21 10:04:16 +03:00
Alex Andreev
2a5c7317bf Merge branch 'master' into show-extension-preferences-in-separate-page 2022-06-21 09:14:32 +03:00
Sebastian Malton
de43df1cca
Fix cluster frame display issue (#5518)
* Fix cluster frame display issue

- Add some defensive code to prevent this sort of infinite loop

- Add some unit tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* fix unit tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix build

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix lint

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Factor out injectable for getting of cluster config data

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-06-20 22:23:15 -04:00
Sebastian Malton
8c31e56462
release 5.6.0-alpha.3 (#5668) 2022-06-20 14:45:33 -04:00
dependabot[bot]
9adf0a6448
Bump tailwindcss from 3.0.24 to 3.1.3 (#5650)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-20 13:55:11 -04:00
dependabot[bot]
1030d20ff8
Bump @typescript-eslint/parser from 5.27.0 to 5.28.0 (#5648)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-20 13:54:43 -04:00
dependabot[bot]
0a95eda658
Bump mini-css-extract-plugin from 2.6.0 to 2.6.1 (#5649)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-20 13:54:31 -04:00
dependabot[bot]
dce7e89878
Bump @types/node-fetch from 2.6.1 to 2.6.2 (#5647)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-20 11:51:52 -04:00
Janne Savolainen
f8b008612f
Trivial tweaks accidentally left from other PR (#5679)
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
2022-06-20 11:49:59 -04:00
DingRui Yang
78d985024d
Update README.md (#5675)
Fix getting started link
2022-06-20 09:34:00 -04:00
Alex Andreev
92c6025cca Remove unused files
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-20 13:56:52 +03:00
Alex Andreev
67680cc889 Use only 1 expect statement for each test
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-20 12:47:43 +03:00
Alex Andreev
47cbb248bb Adjust to latest master changes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-20 12:38:07 +03:00
Alex Andreev
8c2591ed86 Merge branch 'master' into show-extension-preferences-in-separate-page 2022-06-20 11:34:23 +03:00
Janne Savolainen
f87f5f245c
Simplify logic for injecting many instances which can reactively change e.g. based on extension being enabled or disabled (#5662)
* Reorganize stuff to prevent circular dependencies

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Install injectable extension to allow injecting reactively many implementations

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Switch to using computedInjectMany over filtering injectMany based on enabled extensions for simplicity

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Remove await for not being needed

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Sort dependencies alphabetically

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-06-20 10:19:20 +03:00
Janne Savolainen
d0ed4e46b1
Fix tray bugs (#5666)
* Make unit tests for tray behave correctly when item is disabled

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Make multiple separators in tray originating from same extension not throw up

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-06-17 16:21:18 +03:00
Alex Andreev
b0ab6059a2 Fixing tests due to changed ids of the entities
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-17 15:47:29 +03:00
Alex Andreev
c43bc4dad2 Merge branch 'master' into show-extension-preferences-in-separate-page 2022-06-17 15:25:26 +03:00
Alex Andreev
ae0dd24aa1 An addition fix for previous commit
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-17 15:21:37 +03:00
Alex Andreev
a42d0bd990 Use default export in injectable
To prevent .aliases errors

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-17 15:20:56 +03:00
Janne Savolainen
10ba9ef853
Add behaviour for tray menu items originating from extensions (#5609) 2022-06-17 08:07:26 -04:00
Alex Andreev
83de4fc7f8 Merge branch 'master' into show-extension-preferences-in-separate-page 2022-06-17 14:51:39 +03:00
Alex Andreev
51aab02251 Fix linter more
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-17 14:13:10 +03:00
Alex Andreev
76ab4576e9 Restore extensionPreferenceItemInjectionToken file
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-17 14:11:52 +03:00
Alex Andreev
f860dd4301 Fix linter
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-17 14:10:43 +03:00
Alex Andreev
5bd6e11360 Add extensionInstallationCount params to the ids of some entities
To keep track of enabling, disabling extension.

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-17 11:55:08 +03:00
Alex Andreev
fba1435732 Remove unused extensionsPreferenceItemsInjectable
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-17 11:37:23 +03:00
Alex Andreev
4bb6ef1539 Dereference Extensions getProps() inner contents
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-17 11:35:21 +03:00
Janne Savolainen
2a5b4af344
Fix issue where releases are not reloaded when new release is added externally (e.g. from terminal) (#5603)
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-06-17 10:26:07 +03:00
Janne Savolainen
d1f5f1cdef
Fix flaky unit test (#5661)
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-06-17 10:25:01 +03:00
Alex Andreev
1ffb97587a Remove unnecessary string type
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-17 10:09:09 +03:00
Alex Andreev
f76fe10711 Rename file to contain 'registrator' in its name
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-17 10:04:19 +03:00
Alex Andreev
af5e326cbd Fix lifecycle type in extensionsPreferenceItemsInjectable
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-17 10:00:28 +03:00
Alex Andreev
e3153d1eba Merge branch 'master' into show-extension-preferences-in-separate-page 2022-06-17 09:56:10 +03:00
Alex Andreev
96ed99a06b
Fix table row heights (#5652) 2022-06-16 10:01:27 -04:00
Janne Savolainen
9c420d6f1e
Try solving flaky unit test by switch to use different implementation of setImmediate (#5655)
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-06-16 09:57:32 -04:00
Janne Savolainen
5c049ecca0
Improved metrics for updating application (#5607) 2022-06-16 09:05:00 -04:00
Janne Savolainen
7b0521f3b2 Rename injection token for clarity (#5636)
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-06-16 08:44:38 -04:00
Janne Savolainen
287c814565 Move phenomenon of renderer out from common by introducing different implementations for environments
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-06-16 08:44:38 -04:00
Alex Andreev
8349d6aa4a
Fix html font size and adjust usage of rem units (#5641)
* Leave default browser font-size for the html

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fix preferences helm repos layout

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Adjust usage of rem units

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Adjust namespace select filter option sizes

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fixing ToBottom btn sizing

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fixing Remove Cluster dialog sizing

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fixing catalog sidebar title font-size

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fix Notice sizing

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Update snapshots

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Update more snapshots

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-06-15 19:38:10 -04:00
Janne Savolainen
fa32aa1b8e
Make jest not crash totally when encountering non handled exception (#5634)
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-06-15 19:37:22 -04:00
Janne Savolainen
6451df1f17
Prevent duplicate app windows (#5533)
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Co-authored-by: Iku-turso <mikko.aspiala@gmail.com>
2022-06-15 16:40:34 -04:00