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

2867 Commits

Author SHA1 Message Date
alexfront
d37ae1bffe Fixing ts compilation errors
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
2022-09-07 15:24:47 +03:00
alexfront
1898a4d68e Remove unused code
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
2022-09-07 15:21:23 +03:00
alexfront
dadd69ef03 Add useIntersectionObserver() hook
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
2022-09-07 15:10:32 +03:00
Alex Andreev
05a3ed0e57 Fix scrolling to items on search
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-06 19:28:01 +03:00
Alex Andreev
7b53650628 Hook function renaming
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-06 19:05:10 +03:00
Alex Andreev
51c059f1ba Give more room to the LogRows content
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-06 18:54:26 +03:00
Alex Andreev
6ec761868b Restyling Jump to bottom button
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-06 18:49:50 +03:00
Alex Andreev
b8f4fa14bf Show Jump to bottom button
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-06 18:35:02 +03:00
Alex Andreev
4c74d5a780 Add useInitialScrollToBottom() hook
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-06 18:26:16 +03:00
Alex Andreev
8ed40ffb8f Create useScrollToBottomButton hook
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-06 17:40:05 +03:00
Alex Andreev
b989340f84 Refresh rows measurement by refreshing their keys
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-06 16:56:06 +03:00
Alex Andreev
5443f40259 Highlight log row on hover
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-06 16:44:52 +03:00
Alex Andreev
c4ae074abd Add wrapper switch
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-05 15:26:24 +03:00
Alex Andreev
f90ede1026 Scroll to overlay from the search
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-05 13:54:57 +03:00
Alex Andreev
f09974fd1f Move LogRow to its own file
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-05 13:36:49 +03:00
Alex Andreev
da8570d974 Add more styles
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-05 13:27:32 +03:00
Alex Andreev
2e0b4d15b3 Add LogList external styles
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-05 13:21:23 +03:00
Alex Andreev
1679ba14e1 Scroll to bottom on tab change
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-05 13:15:13 +03:00
Alex Andreev
c4538e928b Scroll to bottom on pod id change
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-02 14:33:00 +03:00
Alex Andreev
968621f7c6 Fix scroll position when more logs loaded
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-02 13:46:44 +03:00
Alex Andreev
6d0d524f4f Merge branch 'master' into wrap-pod-logs 2022-09-02 12:49:48 +03:00
Alex Andreev
62cc0d7689 Keep scrolling position when loaded more logs
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-02 10:28:37 +03:00
dependabot[bot]
4ad47f93bc
Bump typedoc from 0.23.11 to 0.23.13 (#6153)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-01 14:48:55 -04:00
Sebastian Malton
0d28af3fe5
Update snapshots from other work (#6160) 2022-09-01 11:26:10 -04:00
dependabot[bot]
58da542179
Bump sass from 1.54.7 to 1.54.8 (#6154)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-01 10:25:07 -04:00
Sebastian Malton
b0d72b78d0
Bump typescript, @typescript-eslint/eslint-plugin, and @typescript-eslint/parser (#6143) 2022-09-01 10:05:32 -04:00
Jim Ehrismann
27871f57b6
reinstate integration tests on windows (#6152) 2022-09-01 09:27:31 -04:00
Alex Andreev
37318cab4e
Fix: align sidebar menu items (#6138)
* Introduce sitebar-items.module.scss

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

* Adjust sidebar item styles

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

* Use classnames from a scss module

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

* Set sidebar min width to 150px to keep readability

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

* Break words in long links

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

* Adjust navigation paddings

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

* Remove unused scss file

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

* Updating bunch of snapshots

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

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-01 12:52:55 +03:00
Alex Andreev
af8f39f83a Show logs regarding to showTimestamps flag
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-01 11:28:09 +03:00
Alex Andreev
e16fcf23a7 Remove overflow from the LogControls
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-01 09:51:06 +03:00
Alex Andreev
e02278d515 Merge branch 'master' into wrap-pod-logs 2022-09-01 09:49:29 +03:00
Alex Andreev
88678f63a2 Load more logs when scrolled to top
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-01 09:44:19 +03:00
Alex Andreev
85fadc74e0 Set some list onScroll events
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-01 09:28:31 +03:00
Alex Andreev
843c0f76f6 Remove overflow from the LogControls
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-01 09:27:55 +03:00
Alex Andreev
2fe7668edc
Remove requests/limits text data for workload metrics (#6128) 2022-08-31 14:20:35 -04:00
Lauri Nevala
cacc92d37a
Fix Promethes operator metrics provider detection (#6150) 2022-08-31 11:22:17 -04:00
dependabot[bot]
0a14151e03
Bump sass from 1.54.6 to 1.54.7 (#6147)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-31 08:13:00 -04:00
dependabot[bot]
0c142cf339
Bump react-beautiful-dnd from 13.1.0 to 13.1.1 (#6145)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-31 08:12:41 -04:00
dependabot[bot]
0f515239c8
Bump marked from 4.0.19 to 4.1.0 (#6144)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-31 08:12:19 -04:00
Alex Andreev
6f91071af4 Using new <LogList/>
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-31 14:34:54 +03:00
Sebastian Malton
7ad7c89061
Remove release building pipelines (#6117) 2022-08-30 14:45:31 -04:00
dependabot[bot]
e89841c51e
Bump sass from 1.54.5 to 1.54.6 (#6136)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-30 14:36:04 -04:00
dependabot[bot]
03dc97fefd
Bump esbuild from 0.15.5 to 0.15.6 (#6134)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-30 14:35:47 -04:00
dependabot[bot]
76c7d7e52b
Bump webpack-dev-server from 4.10.0 to 4.10.1 (#6135)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-30 14:35:30 -04:00
Sebastian Malton
c8fe453948
Update failing tests after merge (#6140) 2022-08-30 11:19:14 -04:00
Lauri Nevala
da6b7a5b4b
Update metric queries used for Helm installed Prometheus (#6139) 2022-08-30 09:18:38 -04:00
Alex Andreev
5795452cc3
Add option to download all logs from the container (#5970)
* Creating callForAllLogsInjectable

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

* Add sketch of Download all logs button

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

* Use randomId while creating pod logs tab

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

* Initial draft of download all logs tests

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

* Introduce download logs dropdown

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

* Cleaning up Controls component

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

* Coloring and styling Download logs button

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

* Drop waiting state on network or other error

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

* After clicking on button test cases

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

* Linter fixes

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

* Removing previous Download icon

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

* Respect timestamps and previous props

in callForAllLogsInjectable

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

* Update snapshots

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

* Update snapshots

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

* Remove unused .mockReturnValueOnce

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

* Remove one more unused line

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

* Cleanin up by overriding internals of logsViewModel

injectable

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

* Replace usage of callForAllLogs with

simple callForLogs

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

* Use css modules for the Controls component

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

* Move downloadAllLogs logic to injectable

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

* Move downloadLogs logic to the model

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

* Remove withInjectables wrapper from LogControls

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

* Move downloadAllLogs to model

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

* Testing resolve/reject options for callForLogsInjectable

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

* Catching call for logs errors

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

* Doesn't show save dialog if no logs received

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

* More descriptive describe statement

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

* Introduce Dropdown component with Menu

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

* Use <Dropdown/> in Download All Logs dropdown

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

* Fix line-break symbol

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

* Update snapshots

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

* Return a Promise from downloadAllLogs()

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

* Extend LogTabViewModel mocks in other tests

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

* Fix downloadAllLogs prop typings

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

* Fixing linter

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

* Fix linter harder

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

* Fix selectors in integration test

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

* Move tests into /behaviours

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

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-30 16:00:11 +03:00
Sebastian Malton
106c3d246a
Add data-warning prop on button for better snapshot testing (#6040) 2022-08-30 08:28:20 -04:00
Dominic1DL
ac6a5f9b83
Fix IPv6 missing brackets in httpProxy.ServerOptions (#5914) 2022-08-30 08:17:51 -04:00
Sebastian Malton
4b1c9fb5fd
Fix doughnut graphs on workload overview sometimes not showing (#5727) 2022-08-30 07:54:18 -04:00