Commit Graph
31 Commits
Author SHA1 Message Date
Grzegorz Zdunek 6e7811a7a2 Improve styling of the login form in Connect and Web UI (#36915)
* Disable login form fields when request is processing

* Do not show a duplicate border when the select field is disabled

* Remove custom `DarkStyledSelect` and refactor the story

`DarkStyledSelect` is no longer needed since we have themes.

* Regenerate snapshots

* Disable OTP field in Web UI when request is processing
2024-01-19 17:06:46 +00:00
Bartosz Leper da1a97c8bf Rename "Hardware Key" to "Passkey or Security Key" (#36562)
* Rename "Hardware Key" to "Passkey or Hardware Key"

* Update snapshots

* On the second thought, rename these to "Passkey or Security Key"
2024-01-12 09:19:32 +00:00
Reed Loden 95aa537f68 Increase minimum password length and account lock interval (#36389)
* Increase `MinPasswordLength` from 6 to 12 characters
  - PCI DSS v4.0 control 8.3.6 requires a minimum password length of 12 characters.
  - NIST SP 800-63B section 5.1.1.1 requires a minimum password length of 8 characters.

* Increase `AccountLockInterval` from 20 to 30 minutes
  - PCI DSS v4.0 control 8.3.4 requires a minimum lockout duration of 30 minutes.

This will contribute to better supporting customers to meet certain compliance requirements.

Ref #1936.
Ref #7687.
2024-01-10 04:11:28 +00:00
Bartosz Leper 77d95253b2 Add a new Account Settings screen (#36353)
* Add a new Account Settings screen

Remaining items:
- Add support for enterprise account settings screen.
- Add the recovery codes section.
- Enforce passkey/MFA mode when adding a device.

* Review

* Review
2024-01-09 15:32:26 +00:00
f36e07530e Upgrade React to v18.2.0 (#35248)
* Upgrade React to v18.2.0

* Remove console.log

* Apply suggestions from code review

Co-authored-by: Grzegorz Zdunek <gzdunek@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Rafał Cieślak <rafal.cieslak@goteleport.com>

* Update dependencies

* Update boot to use react-dom@18 createRoot(..).render()

* Fix test

* Dedupe babel

* Update teleterm boot to use react-dom@18 createRoot(..).render()

* Run prettier

* Refactor enroll RDS db test by @ravicious

* Refactor enroll EC2 instance test

* yarn.lock updates

---------

Co-authored-by: Grzegorz Zdunek <gzdunek@users.noreply.github.com>
Co-authored-by: Rafał Cieślak <rafal.cieslak@goteleport.com>
2023-12-06 13:24:55 +00:00
fheinecke b178b8b732 Updated Teleport codebase to AGPL3 license (#35259)
Signed-off-by: Fred Heinecke <fred.heinecke@goteleport.com>
2023-12-01 17:48:14 +00:00
Lisa Kim 02630a6494 Web: Remove all cap and bolding for LabelInput used with inputs (#30779)
* Remove all cap and bolding for label input

* Fix proper capitalization and update snapshots
2023-08-22 14:28:20 +00:00
Yassine Bounekhla 049036fb20 fix (#29416) 2023-07-24 18:33:57 +00:00
Michelle Bergquist b283530b16 design updates for team gated features (#27756)
* update designs for gated features

* remove Card bg where set to default

* update snapshots
2023-06-15 16:14:25 +00:00
Grzegorz Zdunek 1870c80cdb Theme fixes (#24883)
* Make pagination icons a little more visible

* Use different color for `tr` border

* Use `opacity: 1` for placeholders

* Include `borderRadius` in `StyledPanel` to fix rounded corners in Connect custom tables

* Use `colors.text.primary` for items in `MenuLogin`

* Adjust Connect theme to the updated dark theme

* Remove unused component

* Update snapshots

* Remove `surfaceSecondary` and `sunkenSecondary` colors

* Remove unneeded `inherit`

* Do not hardcode bg color in `TextArea`

* Expand comment

* Simplify the look of top bar elements

* Remove unused component

* Remove `text.contrast`

* Use the same dark theme for WebUI and Connect

* Revert "Make pagination icons a little more visible"

This reverts commit 1fe1d7baec.

* Add shadow for the tabs

* Post-merge fixes

* Do not use Arial on custom buttons

* Revert snapshot changes

* Fix colors in `ActionPicker`

* Apply hover styles directly on `SearchBar` input

* Use white color for "Database Connection" header

* Add shadow directly to `StyledTabs`

* Run prettier

* Update e

* Add some top padding to the terminal

* Review fixes

* Move SearchBar hover to the Flex element

* Table-related improvements  (#25333)

* Use a better icon for the reverse tunnel cell

* Use `ButtonIcon` for pagination icons

* Fix rendering table border on Safari

* Manually add a visual separator between the table and the element below it

* Add bottom padding to resource tables in Connect

* Update snapshots

* Update snapshots

* Revert e
2023-05-04 14:52:17 +00:00
Yassine Bounekhla 1d7785971e theme-related fixes (#25119) 2023-04-26 17:55:46 +00:00
Yassine Bounekhla 5a46f044b5 add themes to webui (#24507) 2023-04-14 21:45:23 +00:00
Yassine Bounekhla faecdcf3b7 Refactor theme (#23539) 2023-03-29 18:25:14 +00:00
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