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

890 Commits

Author SHA1 Message Date
Alex Andreev
6fd20bd169 Convert ScrollSpy to observable component
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-12 12:51:08 +03:00
Alex Andreev
55ccfced93 Merge branch 'master' into preferences-scrollspy 2021-03-12 11:35:57 +03:00
Alex Andreev
7eefa6972f Adding vertical scrollbar to navigation
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-12 11:23:54 +03:00
Alex Andreev
f7c4d4cf64 Cleaning up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-12 09:58:14 +03:00
Jim Ehrismann
51715b6a8c
properly load workspace cluster store outside of render() (#2320)
also minor bulletproofing for cluster version string

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2021-03-11 16:01:50 -05:00
Lauri Nevala
5c6a6e14f5
Allow to define the path of the shell in app preferences (#2194)
Co-authored-by: Sebastian Malton <sebastian@malton.name>
2021-03-11 11:25:06 -05:00
Alex Andreev
7d9317bdae Merge branch 'master' into preferences-scrollspy 2021-03-11 15:34:00 +03:00
Jim Ehrismann
713ec8c69d
Basic workspace overview (#2047)
* basic workspace overview

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* css tweaks for landing page as a PageLayout

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* address review comments

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* more review comment addressing, added overview to workspace command palette

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* added back the landing page startup hint

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* refactoring as per review comments

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* added original landing page back only for default workspace with no clusters

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* Workspace overview layout tweaks (#2302)

* tweaks workspace overview layout

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* cluster settings on top

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* header logo for add cluster page

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* tweak landing page

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* combine left menu icons

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* always show bottom status bar

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* tweak

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* integration test fixes

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* change cluster menu

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* first attempt to fix integration test

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* lint

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* get selectors right for integration test

Signed-off-by: Jim Ehrismann <jehrismann@miranits.com>

Co-authored-by: Jim Ehrismann <jehrismann@mirantis.com>
Co-authored-by: Jim Ehrismann <jehrismann@miranits.com>

* address review comments, and rebased to master

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
Co-authored-by: Jim Ehrismann <jehrismann@miranits.com>
2021-03-11 09:56:12 +02:00
Alex Andreev
7a6d82fd05 Removing stale comment
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-11 10:50:21 +03:00
Alex Andreev
fb8f5cfc82 Removing focus state from links
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-11 10:47:31 +03:00
Alex Andreev
c11b272cba Fine-tuning rootMargin prop
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-11 10:43:12 +03:00
Alex Andreev
85bcdcc2c7 Fixing PageLayout child positioning
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-11 09:56:30 +03:00
Sebastian Malton
2e8f94b3eb
Fix update available notification able to show twice (#2295)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-03-10 09:30:48 -05:00
Sebastian Malton
b3ce845d62
Fix font-size on <code> (#2273)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-03-10 09:13:27 -05:00
pashevskii
805268a9d1
Apply custom filters after selecting source (#2241)
Signed-off-by: Pavel Ashevskiy <pavel.ashevskiy@ifellow.ru>

Co-authored-by: Pavel Ashevskiy <pavel.ashevskiy@ifellow.ru>
2021-03-10 11:47:26 +03:00
Violetta
20709d63e9
Add image sha256 in pod inspector (#2252)
Signed-off-by: vshakirova <vshakirova@mirantis.com>
2021-03-10 11:31:24 +03:00
Alex Andreev
edfae3212d Small cleaning
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-10 10:21:14 +03:00
Alex
1b0f56f417
VSCode launch configurations for debugging (#2281)
* Add configuration for debugging integration tests

Signed-off-by: Alex Culliere <alozhkin@mirantis.com>

* Add launch configuration for debugging main process

Signed-off-by: Alex Culliere <alozhkin@mirantis.com>

* Continue polishing debug configurations

Signed-off-by: Alex Culliere <alozhkin@mirantis.com>

* Remove unnecessary dependency

Signed-off-by: Alex Culliere <alozhkin@mirantis.com>

* Add debug configuration for unit tests + cleanup vscode tasks

Signed-off-by: Alex Culliere <alozhkin@mirantis.com>

* Update src/renderer/bootstrap.tsx

Add `await` keyword to debugger attachment

Co-authored-by: chh <1474479+chenhunghan@users.noreply.github.com>
Signed-off-by: Alex Culliere <alozhkin@mirantis.com>

* Update src/renderer/bootstrap.tsx

Co-authored-by: chh <1474479+chenhunghan@users.noreply.github.com>
Signed-off-by: Alex Culliere <alozhkin@mirantis.com>

* Use existing  variable to wait for chrome debugger attachment

Signed-off-by: Alex Culliere <alozhkin@mirantis.com>

* Update src/renderer/bootstrap.tsx

Use available helper function instead of raw promise

Co-authored-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Alex Culliere <alozhkin@mirantis.com>

* Import delay utility

Signed-off-by: Alex Culliere <alozhkin@mirantis.com>

* Move async function to async context (attaching debugger)

Signed-off-by: Alex Culliere <alozhkin@mirantis.com>

Co-authored-by: Alex Culliere <alozhkin@mirantis.com>
Co-authored-by: chh <1474479+chenhunghan@users.noreply.github.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
2021-03-09 17:57:55 +02:00
Alex Andreev
31fd3a351e Fixing root element for mutation observer
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-09 18:56:54 +03:00
Alex Andreev
7d1f356d88 Moving <ScrollSpy/> out from <PageLayout/>
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-09 15:06:03 +03:00
Alex Andreev
66994bdf4c Adding TreeView & ScrollSpy tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-09 14:50:38 +03:00
Alex Andreev
8339ecc5f1 Updating navigation on DOM mutations
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-09 12:06:39 +03:00
Alex Andreev
09a009049f Expanding parent nodes when scrolling along child ones
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-09 11:26:02 +03:00
Sebastian Malton
f287b8a3d0
Add workflow to notify on new PR conflicts (#2287)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-03-08 08:15:04 -05:00
Sebastian Malton
a5621b71af
Add more information to a helm chart's ID (#2288)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-03-08 08:12:27 -05:00
Sebastian Malton
e69d008d59
Update copyright year (#2286)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-03-05 12:26:58 -05:00
Sebastian Malton
d9daa94c61
Release 4.2.0-alpha.1 (#2285) 2021-03-05 12:26:36 -05:00
Alex Andreev
d0e25e90b0 Scrolling to item on TreeItem click
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-05 17:37:49 +03:00
Alex Andreev
662cb25787 Expand all links by default
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-05 17:30:34 +03:00
Alex Andreev
830eac3952 Fixing firing intersection on parent sections
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-05 15:34:33 +03:00
Alex Andreev
0ef16fef31 Remove default inner selected state
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-05 10:25:46 +03:00
Alex Andreev
f1a071d2a7 Fixing page layout --spacing
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-05 10:16:09 +03:00
Alex Andreev
fd1b82ed5e Making navigation fixed in one place
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-05 10:13:27 +03:00
Alex Andreev
3194fa9139 Highlight selected item
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-05 09:57:29 +03:00
Sebastian Malton
35e6065487
Broadcast update available only after downloading update (#2232)
* broadcast update available only after downloading update

* remove unnecessary downloads, force silent and restart modes if user chooses to install update immediately

* add app.exit() for installing (fixes bug on Windows)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-03-04 08:38:07 -05:00
Alex Andreev
852aa1147f
Fix: preventing <App/> to render on cluster refresh (#2253)
* Removing @observer decorator from <App/>

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

* Add observer wrapper to <MainLayoutHeader/>

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

* Fix eslint claim

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

* Moving extension route renderers to components

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

* Clean up

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

* Removing external observables out from App render()

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

* Fetching hosted cluster inside Command Palette

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

* Setting route lists explicitly
To avoid using observable data within tabRoutes arrays

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

* Review fixes

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-04 14:12:28 +02:00
Alex Andreev
06e747dfa8 Fine-tuning IntersectionObserver options
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-04 14:17:37 +03:00
Alex Andreev
a2bb733e48 Observing section by IntersectionObserver
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-04 09:29:13 +03:00
Sebastian Malton
bcaef79386
Cleanup add namespace dialog (#2261)
- Remove mixing of async and promises
- Remove unnecessary instance close method
- Use condition call syntax

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-03-03 14:34:35 -05:00
Lauri Nevala
25a7403f3c
Render only secret name on pod details without access to secrets (#2244)
* Render only secret name on pod details without access to secrets

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Preserving layout when amount of secrets passed

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

* Refactor secrets to observable map

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-03 15:40:19 +02:00
Alex Andreev
1e73769bc1 Styling tree view active element
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-03 14:53:49 +03:00
Alex Andreev
3870f07eca A bit of TreeView styling
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-03 14:50:18 +03:00
Alex Andreev
2c5ad51b47 Adding ids to all sections
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-03 14:39:26 +03:00
Alex Andreev
3744d4a3cd Using material-ui lab TreeView components
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-03 13:05:05 +03:00
Sebastian Malton
4931f681e4
log JSON api calls when in DEBUG mode (#2263)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-03-02 08:07:16 -05:00
Lauri Nevala
4f74b9aabe
Ignore clusters with invalid kubeconfig (#1956)
* Ignore clusters with invalid kubeconfig

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Improve error message

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Mark cluster as dead if kubeconfig loading fails

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Fix tests

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Validate cluster object in kubeconfig when constructing cluster

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Add unit tests for validateKubeConfig

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Refactor validateKubeconfig unit tests

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Extract ValidationOpts type

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Add default value to validationOpts param

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Change isDead to property

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Fix lint issues

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Add missing new line

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Update validateKubeConfig in-code documentation

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Remove isDead property

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Display warning notification if invalid kubeconfig detected (#2233)

* Display warning notification if invalid kubeconfig detected

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2021-03-01 17:30:22 +02:00
Alex Andreev
e837e6f1db
Removing unused chart files (#2238)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-03-01 11:35:00 +02:00
Sebastian Malton
b3176a6fc4
fix protocol log line grammer (#2234)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-26 09:33:47 -05:00
Lauri Nevala
a2ce429f22
Pass Lens wslenvs to terminal session on Windows (#2198)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2021-02-26 14:56:51 +02:00
Alex Andreev
69e7397e17 Using react-simple-tree-view lib for preferences links
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-02-26 12:56:45 +03:00