-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
FTUE User lists: Accessibility and updated design behaviour #11771
Comments
Enter now behaves to select, not to submit. Highlight first suggestion to make it clear which one is about to be selected. Leftover input should be thrown away, though the improvements here will take care of trying to hint that this will happen. |
Another facet of this is that it's impossible to invite an unrecognised mxid currently, i think? E.g. if I try to invite |
the dialog does try to protect you from yourself by applying the "this user doesn't exist" logic to the dialog. I suppose it could probably show you an option to select it if all else fails, but the invite would almost certainly not work. |
I'm actually going to put this aside to think about it more. The dialog structure doesn't really lend itself to nice accessibility, and faking it feels like a maintenance burden we probably don't want. Going to read up on various ways to achieve this properly instead of bludgeoning some code through the review queue. |
Why doesn't it, now that we focus-lock properly? |
Because there's two expanding lists, a false editor, and an awkward DOM structure. |
i'm a bit worried that we've shipped this, and aside from accessibility it's (for instance) impossible to invite a user whose mxid isn't recognised. Is the idea that the mxid check always works, so there will always be a pill search result option to click on to confirm? What if the target mxid doesn't want to acknowledge whether it exists? |
The design called for unknown/invalid/unroutable (profile check fails) mxids to result in an error condition. With the current design at best we could give a red error saying "Failed to invite: User does not exist" - this is a lost feature from the previous dialog where we had a continue anyways option. From what I understand, you're supposed to filter and find the person through the amazing suggestions it gives, not dump a mxid in there and hope for the best (though obviously this use case isn't excluded). Part of the reason for the suggestions being terrible after filtering is Synapse's output is less than great, and the dialog tries to correct some of the data by balancing it with data it thinks is better and more useful to the use case above. |
or in a shorter reply: yes, it's always supposed to generate a clickable option if it can be reasonably sure the user exists, by design. |
ok, how is it not excluded?
my point is that we can’t be sure if a user exists (afaik?) - so shouldn’t it let us post a raw random mxid and invite it? |
You can paste user IDs and it checks them, so the use case of ignoring the suggestions and trying to find people yourself is still possible. We have always relied on the profile endpoints returning something if the user exists. MSC1797 never gained traction to better make this work. The new design calls for hard failure instead of a "continue anyways" button - though this could be fixed by sending it back through design. |
Then we're talking about different use cases. If I try to invite a random ID which I know exists, but whose server might be down right now (e.g.
This is nothing to do with accessibility - it's just a plain regression from the work which went into matrix-org/matrix-react-sdk#2317. This feels like a pretty big regression, and shouldn't be buried in an 'accessibility' bug - can we reopen #12186? |
also this issue here changes the Enter behaviour anyways.
This issue changes this behaviour.
This is by design: users must be converted to pills before it'll work.
This is technically by design too: it doesn't suggest anyone to you so you can't complete it. If you do manage to complete it, it'll tell you that the user could not be invited. Invites to problematic servers will fail anyways, which is part of the theory behind checking the ID up front. I don't think there's value in reopening #12186 because it doesn't sound like the dialog is being used as designed, which this issue should help course correct. I did separately find an issue regarding inviting exact matches: #12419 |
(also worth noting you can always |
I'm not sure this has enough useful information for the modern era. If the invite dialog (as it's now called) is still missing this functionality, someone please open a new issue with fresh information. |
Broken out from #11200
The text was updated successfully, but these errors were encountered: