1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/renderer
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
..
api Replace jest.mock's with overriding dependencies (#6014) 2022-08-23 13:04:00 +03:00
app-paths Introduce way to install update directly from tray. Make application updater unit testable... (#5433) 2022-06-03 11:21:36 +03:00
application-update/force-update-modal Add global override for component observing current time for causing … (#5814) 2022-07-08 12:54:23 -04:00
before-frame-starts Make starting of application modular and unit testable (#5324) 2022-05-18 16:18:02 +03:00
catalog Add ability to hide KubeObjectMenu Edit and Remove buttons in extensions (#5107) 2022-05-04 12:44:31 -04:00
cluster-frame-context Introduce kludge to make "isEnabledForCluster" work again for cluster pages PART 1 (#5800) 2022-07-13 08:36:51 +03:00
components Add option to download all logs from the container (#5970) 2022-08-30 16:00:11 +03:00
create-cluster Replace jest.mock's with overriding dependencies (#6014) 2022-08-23 13:04:00 +03:00
extension-loader Introduce kludge to make "isEnabledForCluster" work again for cluster pages PART 1 (#5800) 2022-07-13 08:36:51 +03:00
fonts Custom terminal fonts support (#5414) 2022-06-06 18:03:12 +03:00
frames Fix doughnut graphs on workload overview sometimes not showing (#5727) 2022-08-30 07:54:18 -04:00
hooks Turn on strict mode in tsconfig.json, some helpful lints, and required cleanup where strictness necessitates it (#5195) 2022-05-16 07:17:57 -04:00
initializers Introduce kludge to make "isEnabledForCluster" work again for cluster pages PART 1 (#5800) 2022-07-13 08:36:51 +03:00
ipc Replace jest.mock's with overriding dependencies (#6014) 2022-08-23 13:04:00 +03:00
k8s Turn on strict mode in tsconfig.json, some helpful lints, and required cleanup where strictness necessitates it (#5195) 2022-05-16 07:17:57 -04:00
kube-object Turn on strict mode in tsconfig.json, some helpful lints, and required cleanup where strictness necessitates it (#5195) 2022-05-16 07:17:57 -04:00
kube-watch-api Use default export to fix issue with package lying with types (#6081) 2022-08-22 16:42:06 -04:00
navigation Introduce way to install update directly from tray. Make application updater unit testable... (#5433) 2022-06-03 11:21:36 +03:00
port-forward Remove usage of deprecated xtermjs's registerLinkMatcher API (#5996) 2022-08-09 19:25:11 -07:00
protocol-handler Replace jest.mock's with overriding dependencies (#6014) 2022-08-23 13:04:00 +03:00
remote-helpers Change update warning level over time (#5445) 2022-06-28 16:27:19 +03:00
routes Expose reactive ways to hide items in cluster frame using Extension API - PART 7 (#5824) 2022-07-13 13:47:03 -04:00
search-store Make starting of application modular and unit testable (#5324) 2022-05-18 16:18:02 +03:00
start-frame Make starting of application modular and unit testable (#5324) 2022-05-18 16:18:02 +03:00
themes Fix doughnut graphs on workload overview sometimes not showing (#5727) 2022-08-30 07:54:18 -04:00
utils Replace jest.mock's with overriding dependencies (#6014) 2022-08-23 13:04:00 +03:00
window Fix open CommandDialog (#5818) 2022-07-15 08:17:44 +03:00
bootstrap.tsx Introduce kludge to make "isEnabledForCluster" work again for cluster pages PART 1 (#5800) 2022-07-13 08:36:51 +03:00
getDi.tsx Make injectables in new "features"-directory auto register to make ADR in #6015 possible (#6034) 2022-08-16 15:56:11 +03:00
getDiForUnitTesting.tsx Replace jest.mock's with overriding dependencies (#6014) 2022-08-23 13:04:00 +03:00
mui-base-theme.tsx Turn on strict mode in tsconfig.json, some helpful lints, and required cleanup where strictness necessitates it (#5195) 2022-05-16 07:17:57 -04:00
stores-apis-can-be-created.injectable.ts Replace static application window with ability to create many (#5979) 2022-08-16 15:55:42 +03:00
template.html Custom terminal fonts support (#5414) 2022-06-06 18:03:12 +03:00