Commit Graph
18 Commits
Author SHA1 Message Date
Yassine Bounekhla f8c5cd0441 fix select box sizing (#21212) 2023-03-06 22:59:54 +00:00
Ryan ClarkandLisa Kim 9a605331f3 Remove timeouts from discover flows, fix desktop discovery (#20829)
* Allow for inputs to be disabled

* Remove timeouts from the discover workflows

* Correct the resource type to be cleared on unmount

* Update test snapshots

* Rename useJoinToken to useJoinTokenSuspender

* Remove TODO

* Simplify usePoll

* Simplify the hint box code, add a shared hook

* Add the generte command button back to db flow

* Store the joinToken in PingTeleportContext state instead of using the hook

* Fix rebase diff mistake

* Fix bug with polling for result

- once we get the result, we set the result
  back to null, so we can't proceed to next step

---------

Co-authored-by: Lisa Kim <lisa@goteleport.com>
2023-02-06 17:52:30 +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
Lisa Kim 631aa2f6e2 [1/3] Prettify Design Package (#953)
* Update snapshots
* Add prettier ignore file
* Update e-ref
2022-07-06 14:35:42 +00:00
Grzegorz Zdunek f2c8477a89 Add TextArea and FieldTextArea components (#870) 2022-06-14 11:07:27 +02:00
Lisa Kim d343e5618c Remove u2f components and logic (#711)
* Also updates e-ref
2022-04-04 17:56:49 -07:00
Lisa Kim f916657669 Update getMfaOptions to createMfaOptions 2022-03-30 17:30:43 -07:00
Lisa Kim 28dabc20ba Fix half auto-filling OTP's for input boxes meant for it (#706)
* Update's e-ref
2022-03-30 10:59:21 -07: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
Lisa Kim 3364c973c1 Add webauthn options to forms (#423)
* Add webauthn to mfa options
* Add webauthn to Invite, Login, Account components
* Update e-ref
2021-10-20 12:47:05 -07:00
Lisa Kim d1480ab658 Language/wording fixes with our editor (#313) 2021-05-18 10:43:49 -07:00
Lisa Kim c748d1b6dd mfa related fixes (#251)
- FormPassword now checks for auth2faTypes on and optional
- Write a prompt for user to tap their u2f key when connecting to a node
  with require_session_mfa turned on
- useOnExitConfrimation checks if there is any participants before
  accessing length
- Update e-ref
2021-03-26 15:20:54 -07: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
Lisa Kim d7cef21cd6 Unit test FormPassword (#36) 2020-02-27 13:00:25 -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
Alexey Kontsevoy 5e0a948f19 Move code to this repo 2019-09-12 19:37:15 -04:00