Commit Graph
14 Commits
Author SHA1 Message Date
Jeff Pihach 5eafe86fa4 Remove usage of lodash methods (#21567)
* Create new local util lib to replace lodash.

* Replace usage of isInteger and debounce from lodash with highbar.

* Create isObject and runOnce utility methods.

* remove use of at, isObject, and once lodash method usage.

* remove map and transform lodash calls.

* Add memoize function to highbar.

* remove memoize lodash usage.

* remove merge and isEqual lodash methods and update other missing refs to highbar.

* convert the throttle to debounce.

* add throttle method to highbar.

* use the new throttle method instead of debounce where necessary.

* Add mergeDeep function for init config merge.

* remove lodash from the build process.

* Fix introduced bug in workspacesService.

* Added tests for highbar mergeDeep and expanded its functionality to support arrays.

* review updates.

* Added types to mergeDeep function.

* Add missing MapCache prototype methods.

* Add license notices, types and missing hash code.

* First pass at compare an array objects function.

* use new compareArrayObjs fn

* Add missing not

* Added types to arrayObjectIsEqual

* Add tests for arrayObjectIsEqual and fix some edge case bugs.

* update util fn name
2023-02-21 17:25:36 +00:00
jkaczmarkiewiczandRyan Clark 09f08ab93e Enforce react-testing-library eslint rules (#1150)
* Add `eslint-plugin-{jest-dom,testing-library}`

* Enable `eslint-plugin-{jest-dom,testing-library}` rules

* Run `eslint --fix`

* refactor: apply eslint hints in FormPassword.test.tsx

* refactor: fix test in Table.test.tsx

* refactor: apply eslint hints in Table.test.tsx

* refactor: apply eslint hints in multiplefiles

* refactor: apply eslint hints in multiple files

* refactor: allow direct node access

* test: fix

* refactor: ButtonSso FileldInput

* refactor: FieldSelect

* refactor: FieldSelect

* refactor: MenuAction

* refactor: ShareFeedback

* refactor: FormLogin

* refactor: LabelSelector

* refactor: Welcome

* refactor: useUrlFiltering

* refactor: Login

* refactor: LoginTrait

* refactor: apply eslint hints in multiple files

* refactor: apply eslint hints in multiple files

* refactor: apply eslint hints in MenageDevices

* refactor: Indicator and FieldSelect tests

* refactor: Portal tests

* fix: use @testing-library/react instead of react-test-renderer

* refactor: use find without assertion

* fix: add webapps.e

* refactor: find by instead of get by+wait for

* fix: remove unused waitFor

* test: LoginTrait checkboxes count

* test: SlideTabs check tabs len

Co-authored-by: Ryan Clark <ryan@ryanclark.me>
2022-08-29 10:57:55 +02:00
Jeff Pihach 991856e137 Added eslint rule to enforce the order of file imports (#1030)
* add import order lint rule.
* auto fix import order and spacing.
* prettier fix.
* manual fix of import order.
* update failing snapshots.
* bump e submodule for import order fixes.
2022-07-25 16:21:23 -06:00
Grzegorz Zdunek 181fe61a20 Replace waitForElement and wait with waitFor in tests (#529) 2022-01-05 11:50:46 +01:00
Grzegorz Zdunek 64d31a291c Address eslint warnings (#522) 2021-12-23 09:05:25 +01:00
Alexey Kontsevoy 43d2a39a21 Teleport V5 (#185)
* New Top Nav (#136)
* Moves AuthConnectors/TrustedClusters/Roles to the Dashboard Top Nav
* Add feature to allow user in context to perform operations on other users (#137)
* Added List/Create/Update/Delete/Reset user functionality
* Added enterprise api endpoint to OSS config
Co-authored-by: Alexey Kontsevoy <biz.kovoy@gmail.com>

* Fix handling of feature flags (#138)
* Prevent closing when there is an error with deleting user (#142)
* Alexey/v5nav (#155)
* Touch Ups (#157)
* Create a story for Teleport App (#158)
* Add Application Launcher (AAP) (#162)
* use publicAddr and clusterName URL parameters to launch apps. (#169)
* Update sideNav styles and ssh input box (#170)
* [teleport] Implement add node dialog (#165)
* [teleport] Change NodeJoinToken prop expires to expiry (#176)
* Remove empty state from NodesList (#179)
* [teleport] Add -f flag to add node curl command (#180)
* [teleport] Add app session chunk and start events (#181)
* Add Application Dialog
* Delete Force
Co-authored-by: Lisa Kim <lisa@gravitational.com>
2020-11-09 17:02:33 -05:00
Lisa KimandAlexey Kontsevoy 9ea19761b3 Typescript conversion mostly in shared package (#120)
ButtonSso/*, services/enums.js, FieldInput/*, FieldSelect/*, FormInvite/*,
FormLogin/*, FormPassword/*, MenuAction/*, Select/*, design/utils/testing.js,
TwoFaInfo, enums to types

Co-authored-by: Alexey Kontsevoy <biz.kovoy@gmail.com>
2020-07-14 10:32:57 -07:00
Alexey Kontsevoy c74fcc6b9e Test useRule unsubscribe behavior and some cleanup (#33) 2020-02-24 15:27:52 -05:00
Lisa Kim c659e5b65e Unit test useRule custom hook from Validation (#31)
* Move useRule hook to its own file 
* Unit test useRule custom hook
* Update package.json so jest runs only on changed files on start
2020-02-21 17:04:48 -08:00
Lisa Kim 5aaf7b2d3a Unit test rules.js and Validation provider context (#30)
* Update broken snapshot for FormInvite
* Minor refactoring and unit testing rules.js
* Unit test Validation context component
2020-02-20 13:07:57 -08:00
Lisa Kim b5301e351a Prettify package shared (#27)
* Prettify *.js, *.jsx, *.json except bpf.*.json
* Remove unnecessary space in Expired.jsx
2020-02-19 09:07:57 -08:00
Lisa Kim a5d83a03a7 Unit Test ButtonSso and Validator Class (#24)
* Refactor and unit test ButtonSso
* Unit test Validator class inside Validation.jsx
* Update failing snapshot caused by reformatting
2020-02-18 14:28:27 -08:00
Alexey Kontsevoy e69d4e2042 Add initial BPF viewer implementation 2019-11-21 13:07:16 -05:00
Alexey Kontsevoy 5e0a948f19 Move code to this repo 2019-09-12 19:37:15 -04:00