1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/renderer/api
chh 484de2ec21
Add +/- buttons in scale deployment popup screen (#1191)
* Add @testing-library/jest-dom and @testing-library/react for writing test cases

* Make eslint check __mocks__/*.ts files

* Mock electron.ipcRenderer.on to prevent errors in React compoment test cases

* Mock <Trans /> from @lingui/macro as a component simplely returns children components

* Use optional chaining operator (?.) to avoid TypeError: Cannot read property 'replicas' of undefined

* Add jest-fetch-mock for mocking global.fetch, activate for all test cases in jest.setup.ts

* Add basic tests for <DeploymentScaleDialog /> to ensure it initialises/renders without errors

* Add +/- button for changing desired replicas, and its test cases

* Adjust the styles of +/- buttons container to make sure it aligns with the slider

* Refactor after rebase from master

* Use var defined in vars.scss

* Add flex align-center to slider-container and remove margin-top: -4px

* Use <Icon /> to replace <i/>

* Add flex gaps to plus-minus-container

Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com>
2020-11-03 20:30:36 +08:00
..
__tests__ Refactor testing harness to use defaults (#808) 2020-10-02 10:05:59 -04:00
endpoints Add +/- buttons in scale deployment popup screen (#1191) 2020-11-03 20:30:36 +08:00
api-manager.ts Allow extensions to register kube-object menus + details (#1108) 2020-10-22 21:41:20 +03:00
index.ts Migrating Vue components to React and stores refactoring (#585) 2020-08-20 08:53:07 +03:00
json-api.ts Move tracker to telemetry extension (#1092) 2020-10-19 11:56:08 +03:00
kube-api-parse.ts Fixing app crash when iterating Events without 'kind' prop defined (#743) 2020-09-01 10:36:44 +03:00
kube-api-versioned.ts Update CRD api to use preferred version and implement v1 differences (#718) 2020-09-04 09:39:31 +03:00
kube-api.ts Allow extensions to define cluster features (#1125) 2020-10-26 08:21:22 +02:00
kube-json-api.ts Migrating Vue components to React and stores refactoring (#585) 2020-08-20 08:53:07 +03:00
kube-object-detail-registry.ts Expose kubeObjectDetailRegistry via extension-api (#1185) 2020-10-30 15:57:32 +02:00
kube-object.ts Allow extensions to define cluster features (#1125) 2020-10-26 08:21:22 +02:00
kube-watch-api.ts Fix UI staleness after network issues (#1192) 2020-11-02 14:51:04 +02:00
terminal-api.ts Migrating Vue components to React and stores refactoring (#585) 2020-08-20 08:53:07 +03:00
websocket-api.ts Move tracker to telemetry extension (#1092) 2020-10-19 11:56:08 +03:00
workload-kube-object.ts Migrating Vue components to React and stores refactoring (#585) 2020-08-20 08:53:07 +03:00