Merged
Conversation
This field is set in `DocumentGatewayKube.tsx` when creating a gateway, but it wasn't explicitly defined on the type (it works because of loose types of `documentsService.update`).
gzdunek
commented
Jan 5, 2024
gzdunek
commented
Jan 5, 2024
a682d46 to
576da3b
Compare
Contributor
|
I really like the bold name on its own above the rest of the text instead of inline. This looks great |
avatus
approved these changes
Jan 8, 2024
ravicious
approved these changes
Jan 10, 2024
Member
ravicious
left a comment
There was a problem hiding this comment.
Looks good! Though I think we shouldn't center the loading state.
| The database connection is {statusDescription} | ||
| {/* TODO(ravicious): Use doc.status instead of LinearProgress. */} | ||
| {props.connectAttempt.status === 'processing' && <LinearProgress />} | ||
| <Flex flexDirection="column" m="auto" alignItems="center" maxWidth="500px"> |
Member
There was a problem hiding this comment.
I'm not sure if we should center it. We don't really have any other documents that do this, do we? When the app is almost fullscreen, especially on bigger screens, the transition from a centered loading state to a success state that's aligned to the top is going to look a bit weird.
Contributor
Author
# Conflicts: # web/packages/teleterm/src/services/tshd/types.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Currently, we have different loading and error screens for db and kube gateways. For example, the kube gateway uses document progress bar, while the db gateway uses inline progress. Also, kube gateway doesn't show any text when it is setting up.
Soon we will have another gateway type, so I wanted to have a single component that we could use there. I took an inspiration from the updated
DocumentClusterlook, which I think is quite nice.Before
Database gateway:

Kube gateway:

After
Database gateway:

Kube gateway:
