Commit Graph
20 Commits
Author SHA1 Message Date
Ryan ClarkandRafał Cieślak d6fa030c0e Move import sorting over to prettier (#50618)
* Move import sorting over to prettier

* Update import order

* Re-run prettier

---------

Co-authored-by: Rafał Cieślak <rafal.cieslak@goteleport.com>
2025-01-02 13:36:46 +00:00
Grzegorz Zdunek 941a99301e Remove unused React imports from packages/shared (#50207) 2024-12-13 15:12:14 +00:00
Grzegorz Zdunek 28ceec2600 Enable strict TypeScript mode in web/design (#47850)
* Fix simple issues: missing types and null checks

* Unify `size` values between `Icon` and `Button`

`IconSize` allowed `extraLarge` and `ButtonSize` allowed `extra-large`. Now both use `extra-large`.

* Improve `DataTable` types

The most important change is that `onSort` callback now provides the entire `T` objects, instead of just the values for a given column. This has two advantages:
* it's easier to add proper types for it,
* allows the callsites to sort by a different field, so we will be able to remove `altSortKey` that was introduced just for this purpose.

* Rewrite `Indicator` to a functional component

* Make `Modal` and `Popover` strict

* Remove unneeded `PropTypes` from `LabelInput` and convert it to TS

* Make `StepSlider` strict

* Fix non-existing color

* Map `Event.time` to `Date` object to match its type

After adding `Cell` types, we are no longer able to render `time` directly since it has `Date` type. But how did it even work? It turned out that it was just a string, not a Date.
`toISOString` renders the cell in the same format as before.

* Enable `strict` for `web/design` 🎉

* Enable `noImplicitReturns`

* Make `dialogCss` non-optional

* Add `LabelStatePropsWithoutKind`

* Improve displaying `copyToClipboard` error

* Simplify `dateMatcher` and `dateTimeMatcher`

* `DataTable` related fixes

* Add a comment about non-null assertions

* Use `Theme` instead of `DefaultTheme`

* Return `null` instead of `undefined` from `dialogEl`

* Update `e`
2024-10-25 16:29:01 +00:00
Bartosz Leper 4543d0f8be Implement new inputs and select components (#46812)
* Implement the new inputs and fix all type issues

* Implement select controls and fix build problems

* Fix UI issues after updating inputs and selects
2024-10-03 12:38:45 +00:00
Bartosz Leper 965c98d29c Implement new typography (H3, H4 header levels; paragraphs, body styles) (#44502)
* Finalize switch to the new typography

Implements H3 and beyond, new subitiles, new text body styles, and paragraphs.

* Update snapshots

* Change the resource enrollment workflow headings to H1

* Minor tweaks

- Set body2 line height to 24px
- Set input font weight to 300
- Correct the typography of small text in a couple of places

* Update snapshots

* Fix ResourceIcon story
2024-07-29 15:53:45 +00:00
dependabot[bot]andBartosz Leper 4947c0d118 Bump styled-components from 5.3.11 to 6.1.11 (#43057)
* Bump styled-components from 5.3.11 to 6.1.11

Bumps [styled-components](https://github.com/styled-components/styled-components) from 5.3.11 to 6.1.11.
- [Release notes](https://github.com/styled-components/styled-components/releases)
- [Commits](https://github.com/styled-components/styled-components/compare/v5.3.11...v6.1.11)

---
updated-dependencies:
- dependency-name: styled-components
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Remove @types/styled-components

* Add babel-plugin-styled-components

* Fix issues after upgrading packages

* Update snapshots

* Post-merge fixes

* Declare @emotion/is-prop-valid as an explicit dependency

* Correct formatting

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bartosz Leper <bartosz.leper@goteleport.com>
2024-07-12 10:39:04 +00:00
Bartosz Leper 2dbc690617 Add types to some components in the design package (#41969)
* Add types to some components in the design package

* Review

* Post-merge fixes

* lint

* Review

* Revert @types/styled-system to 3.1.3

* Fix problems after downgrading types

* Post-merge fixes

* Reexport some types

* Fix the CliCommand loading indicator size

* post-merge fix
2024-06-17 10:43:32 +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 64c3e7b25c replace icon library (#29384) 2023-08-02 20:07:43 +00:00
Grzegorz Zdunek c0a8691cef Web terminal themes (#28022)
* Convert `Terminal` to a functional component

* Remove custom terminal theme values

* Add theme switching to the SSH terminal and player terminal

* Remove any custom styling

* Rename navigation item "Main" to "Home"

We don't have anything like "Main".

* Update snapshots
2023-06-22 14:35:09 +00:00
Grzegorz Zdunek ed2bb4b54b Connect: Adjust to the light theme (#27080)
* Adjust Connect to light theme

* Remove `clusters/*` element

* Add terminal colors

* Remove warning about using `false` as `color`

* Add custom styling for `Toggle`

* Fix light theme for file transfer, use the same border color for the drop area as for the input

* Do not hardcode color in `CliCommand`

* Use #000 as black

* Convert rgba colors to be non-opaque

* Fix two slightly incorrect colors
2023-06-05 13:01:35 +00:00
Michael f814b2d510 Add sshserver file transfer handlers (#24580)
Add web terminal handlers for file transfer requests (#24581)
2023-05-03 20:53:57 +00:00
Lisa Kim 7c117216e1 WebDiscover: Put back IamPolicy screen and some tweaks (#25438)
* Let count be 0 (it will be zero on error)

* Put back IamPolicy screen with updated links

* Fix typo

* Remove port for 443 from very beginning of AWS integration flow

in addition fix inconsistent animation JSON policy

* Remove hard coded colors and remove unnecessary border
2023-05-02 16:34:15 +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
Michael 3f0c74b845 Allow webauthn to be passed when issuing certs for web-based scp (#22864)
* Allow webauthn to be passed when issuing certs for web-based scp

* Remove extra line
2023-03-16 02:03:37 +00:00
Grzegorz Zdunek 0a27881238 File Transfer UI fixes (#1276) 2022-10-21 16:01:10 +02:00
Grzegorz Zdunek e16340c5fe Add file transfer to Connect (#1225) 2022-10-10 18:38:42 +02:00