Commit Graph
621 Commits
Author SHA1 Message Date
Grzegorz Zdunek 96e255d4e5 Ask user whether to reopen previous documents 2022-04-12 10:56:58 +02:00
Grzegorz Zdunek fe88eefab3 Support Electron's main process environment in theme/getPlatform() 2022-04-07 12:14:12 +02:00
Grzegorz Zdunek c83ea385c1 Move App initialization to the AppInitializer so it has access to all contexts 2022-04-07 12:14:12 +02:00
Grzegorz Zdunek b92448bf3d Use dark background for the window 2022-04-07 12:14:12 +02:00
Grzegorz Zdunek 46a12450b7 Resolve shell env (#718) 2022-04-07 12:04:00 +02:00
Rafał Cieślak dc4587bb02 Simplify the db connection tab (#720)
As described in gravitational/webapps.e#177, we want to replace the db
tab with just two sections:

* "Connect with CLI" which will show the command to use in terminal
* "Connect with GUI" which links to our documentation

After gravitational/teleport#11720 gets merged, the "Connect with CLI"
section will be massively simplified: it'll be basically just something like:

    psql postgres://localhost:12345

Moreover, @smallinsky suggested that tsh should be responsible for creating
those CLI connection commands. We should also do this in the future as
it'll let us support new protocols as soon as they land in tsh, without
us having to touch Teleterm codebase, for the most part.
2022-04-06 10:05:13 +00:00
Grzegorz Zdunek e2026be739 Prevent crash when network or cluster is offline (#712) 2022-04-06 11:49:10 +02:00
Matheus b0f0d88d3e Add Redis, MariaDB and Microsoft SQL Server to DB wizard (#709) 2022-04-05 10:31:36 -03:00
Rafał Cieślak 68e5d7b28f Improve Teleterm README (#719)
* Mention that `yarn build-term` needs to be run first before attempting
  to run the app in dev mode (already had a couple of people who had
  problems with setting up the app because they didn't run this first).
* Mention the assumption about both repos living in the same folder.
* Move the architecture diagram to the end of the file. Most people
  reading the README are not doing it for the diagram, but build
  instructions.
* Explain when gRPC files need to be recompiled.
2022-04-05 09:16:24 +00:00
Lisa Kim d343e5618c Remove u2f components and logic (#711)
* Also updates e-ref
2022-04-04 17:56:49 -07:00
Rafał Cieślak 1bf57f04c1 Use teleterm/logger in runtimeSettings (#716)
The one from shared/libs/logger calls `window`, which doesn't exist in
the context of Electron main process.
2022-04-01 14:04:13 +00:00
Grzegorz Zdunek 69cc067401 Remove global keyDown handler from KeyboardArrowsNavigation as it blocked submitting forms 2022-04-01 15:57:07 +02:00
Grzegorz Zdunek 9c7a77710e Submit modals' forms on Enter press 2022-04-01 15:57:07 +02:00
Rafał Cieślak 6deab67a06 Revert "Use x64 arch when building & packaging Teleterm"
This reverts commit 3956e71664.

Turns out that for development, we need to use arm64 version of native
deps. The build server is going to use x64 anyway, as per the reverted
commit, but when making manual demo builds, we'll have to remember to
use x64 for Teleterm and tsh.
2022-03-31 13:51:35 +02:00
Grzegorz Zdunek 22578de25e Fix accessing serversSyncStatus Map in clustersService 2022-03-31 12:07:20 +02:00
Grzegorz Zdunek 107fd2cd7a Do not block app rendering when initializing function fails 2022-03-31 12:07:20 +02:00
Grzegorz Zdunek 0324d86ec7 Use Notifications error in syncRootCluster() and removeGateway() 2022-03-31 12:07:20 +02:00
Grzegorz Zdunek 37fec7a7d7 Show errors in ClusterResources' tables using standard Danger labels 2022-03-31 12:07:20 +02:00
Grzegorz Zdunek f8ed50aa9f Add Notifications component and service 2022-03-31 12:07:20 +02:00
Rafał Cieślak 3956e71664 Use x64 arch when building & packaging Teleterm
Our build system doesn't support arm64 for Mac releases yet (see issue
gravitational/teleport#4226 for more information). Because of that, for
the preview release we're likely going to have only the x64 version of
Teleterm.

This means that the shipped version of tsh should also be the x64 version.

I tried to change electron-builder's config to use x64 for macOS, but the
config options don't seem to work. I tried `mac.defaultArch` as well as
changing `mac.target` in various ways but `electron-builder install-app-deps`
just doesn't pick up those options. Both were set through
`packages/teleterm/package.json`
2022-03-31 11:21:07 +02:00
Lisa Kim 156220c835 Update e-ref 2022-03-30 17:30:43 -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 30a4bb390c Update to [email protected] (#703) 2022-03-30 12:32:55 +02:00
Rafał Cieślak 7428a3045f Limit navigation capabilities to reduce attack surface
At the moment we don't create new windows nor navigate away from the rendered
app, so we can just block everything.
2022-03-29 11:15:32 +02:00
Jeff Pihach 3f2ee98f6a Merge pull request #686 from gravitational/hatched/empty-state
Update Empty state to new layout
2022-03-25 15:17:45 -06:00
Jeff Pihach 0451902552 Update node snapshot for new terminology. 2022-03-25 15:11:46 -06:00
Jeff Pihach 497499518b Modify wording of add node messaging. 2022-03-25 15:10:58 -06:00
Jeff Pihach eab0a1d166 Merge branch 'master' into hatched/empty-state 2022-03-25 13:30:33 -06:00
Jeff Pihach dddb2edf74 Add view documentation button to desktop view. 2022-03-25 13:30:11 -06:00
Yassine Bounekhla 5c3014d618 Fix Active Sessions Table Misalignment (#699) 2022-03-25 15:19:55 -04:00
Jeff Pihach 992fb76c30 Merge branch 'master' into hatched/empty-state 2022-03-25 11:56:47 -06:00
Jeff Pihach 3fccc619a6 use has* to determine when to render the Add resource buttons. 2022-03-25 11:56:33 -06:00
Grzegorz Zdunek 764a3346f6 Properly use css prop 2022-03-25 18:24:39 +01:00
Grzegorz Zdunek d23f38ab7b Make connections icon bigger 2022-03-25 18:24:39 +01:00
Grzegorz Zdunek b7563fd8ab Enable babel-plugin-styled-components in production and tests (#697) 2022-03-25 18:12:15 +01:00
Grzegorz Zdunek edaeebd579 Apply Identity design changes 2022-03-25 14:10:55 +01:00
Grzegorz Zdunek cae02df76f Change command cluster-remove to cluster-logout 2022-03-25 14:10:55 +01:00
Grzegorz Zdunek 0497922fab Adjust Identity layout, combine logout and clusterRemove into a single action 2022-03-25 14:10:55 +01:00
Jeff Pihach 864c8cce15 Merge branch 'master' into hatched/empty-state 2022-03-24 15:10:25 -06:00
Jeff Pihach 0fdc917c7c Update snapshots for new UI changes. 2022-03-24 15:09:34 -06:00
Jeff Pihach 36ef5b6e9f Cleanup issues with jumping elements and some button cleanup. 2022-03-24 15:08:13 -06:00
Grzegorz Zdunek 2d07c288a4 Use connection dropdown instead of modal for supplying SSH username 2022-03-24 17:16:34 +01:00
Grzegorz Zdunek 4f8704c083 Render ssh menu item as NavLink only when URL is provided 2022-03-24 17:16:34 +01:00
Rafał Cieślak e34c685d57 Update protobufs for Teleterm (LoginRequest params)
This commit removes a bunch of unused protobufs and also updates some of
those that got updated on the teleterm branch in the teleport repo.

The biggest change from all of them is that LoginRequest now has oneof
on Sso and Local. [1] This is because a login request should have either
Sso or Local params, but not both at the same time.

The previous implementation called both `setSso` and `setLogin` on the same
object. This no longer works with the use of `oneof`, because calling `setLogin`
after `setSso` would clear the `Sso` params. [2]

[1] https://github.com/gravitational/teleport/pull/10286#discussion_r821743202
[2] https://developers.google.com/protocol-buffers/docs/proto3#oneof_features
2022-03-24 16:40:13 +01:00
Rafał Cieślak bbfd573b28 Update command for updating proto files 2022-03-24 16:40:13 +01:00
Grzegorz Zdunek 7b1afdf49a Show username when possible in identity list (#687) 2022-03-22 16:04:13 +01:00
Grzegorz Zdunek e534d3c6d2 Prevent breaking layout on long cluster name (#688) 2022-03-22 15:47:11 +01:00
Grzegorz Zdunek 5cf7cb9b1f remove Navigator code (#685) 2022-03-22 15:37:32 +01:00
Rafał Cieślak 0680fa1db7 Update electron-builder to 23.0.3
Versions lower than 23.0.2 don't work on newest macOS, see:

* electron-userland/electron-builder#6732
* electron-userland/electron-builder#6606
2022-03-22 14:53:44 +01:00