Skip to content

Convert desktop session dialogs to inline messages#54127

Merged
gzdunek merged 9 commits intomasterfrom
gzdunek/inline-alerts
Apr 22, 2025
Merged

Convert desktop session dialogs to inline messages#54127
gzdunek merged 9 commits intomasterfrom
gzdunek/inline-alerts

Conversation

@gzdunek
Copy link
Copy Markdown
Contributor

@gzdunek gzdunek commented Apr 18, 2025

Contribues to #20802

This PR aligns the desktop session component to Teleport Connect environment:

  1. "Refresh" button was replaced with "Reconnect" that reinitializes the connection instead of refreshing the entire page.
  2. The dialog alerts were replaced with inline messages. Connect has its own dialog system, displaying both of them at the same time wouldn't look good.

Note that TDP errors are shown as informational alerts. This is because the backend sends "graceful disconnection" events as TDP error alerts. On the frontend side I don't know if the particular error was a "graceful disconnection", so it's better to just show all TDP errors as informational (as before).

Before After
image image
image image
image image
image image
image image

@gzdunek gzdunek added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v17 labels Apr 18, 2025
@gzdunek gzdunek requested review from avatus and zmb3 April 18, 2025 14:37
@gzdunek gzdunek force-pushed the gzdunek/inline-alerts branch from 3e40b19 to 8b751da Compare April 18, 2025 14:38
@github-actions github-actions Bot requested review from kimlisa and kiosion April 18, 2025 14:38
@gzdunek gzdunek removed request for kimlisa and kiosion April 18, 2025 14:38
Copy link
Copy Markdown
Contributor

@avatus avatus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these look VERY clean

@gzdunek gzdunek added this pull request to the merge queue Apr 22, 2025
Merged via the queue into master with commit 921eeca Apr 22, 2025
40 checks passed
@gzdunek gzdunek deleted the gzdunek/inline-alerts branch April 22, 2025 10:14
@backport-bot-workflows
Copy link
Copy Markdown
Contributor

@gzdunek See the table below for backport results.

Branch Result
branch/v17 Failed

gzdunek added a commit that referenced this pull request May 7, 2025
* Allow clearing the MFA attempt state

* Shutdown the websocket connection if the user cancels an MFA prompt

* Properly handle situations when abort signal is aborted before we open the websocket

* Reconnect the client instead of refreshing the page

* Replace "error" status with "disconnected", make it more capable

* Propagate errors from the `TdpClient`

* Convert dialogs to inline messages

* Increase the gap slightly

* Revert `.off()` to `.removeListener()` change

(cherry picked from commit 921eeca)
github-merge-queue Bot pushed a commit that referenced this pull request May 7, 2025
* Convert desktop session dialogs to inline messages (#54127)

* Allow clearing the MFA attempt state

* Shutdown the websocket connection if the user cancels an MFA prompt

* Properly handle situations when abort signal is aborted before we open the websocket

* Reconnect the client instead of refreshing the page

* Replace "error" status with "disconnected", make it more capable

* Propagate errors from the `TdpClient`

* Convert dialogs to inline messages

* Increase the gap slightly

* Revert `.off()` to `.removeListener()` change

(cherry picked from commit 921eeca)

* Make `jest-canvas-mock` available in all packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/branch/v17 no-changelog Indicates that a PR does not require a changelog entry size/md ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants