-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Show a "progress" dialog while invites are being sent #30561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
a35bba8
to
dd46c92
Compare
dd46c92
to
10569bc
Compare
If we don't handle rejected promises, jest gets confused by them. Instead, let's create them on-demand.
10569bc
to
58f1893
Compare
… open ... otherwise the `RoomUpgradeWarning` dialog disappears during the invites, and the tests that assert that it is showing the correct thing fail. enter the commit message for your changes. Lines starting
55704e8
to
0541b7a
Compare
0ab7059
to
a646f35
Compare
This reverts commit b0a15d9.
@florianduros would you mind taking another look? |
import InviteProgressBody from "./InviteProgressBody.tsx"; | ||
|
||
interface Props { | ||
onFinished: () => void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to have a comment here explaining that this is only added because Modal.createDialog
expects this component to have this prop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually it's not needed at all. I'll get rid of it.
} | ||
|
||
/** A Modal dialog that pops up while room invites are being sent. */ | ||
const InviteProgressDialog: React.FC<Props> = (props) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const InviteProgressDialog: React.FC<Props> = (props) => { | |
const InviteProgressDialog: React.FC<Props> = (_) => { |
To make it clear that this is intentionally left unused.
@@ -0,0 +1,27 @@ | |||
/* | |||
Copyright 2025 The Matrix.org Foundation C.I.C. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong license I think, newer test files have:
/*
* Copyright 2025 New Vector Ltd.
*
* SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
* Please see LICENSE files in the repository root for full details.
*/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What actually changed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
58121a2
to
f72e3e6
Compare
Fixes the EW part of element-hq/element-meta#2874
There are two modes. First, when you are sending invites from the
InviteDialog
, the content of the dialog is replaced with a spinner. (Currently a small spinner appears at the top of the dialog but the contents are otherwise unchanged.) Screenshot:Second, for modes of sending invites that don't involve the
InviteDialog
, we open a separate modal.