Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Linkify User Interactive Authentication errors #12271

Merged
merged 5 commits into from
Apr 16, 2024

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Feb 21, 2024

No description provided.

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@t3chguy t3chguy added the T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements label Feb 21, 2024
@t3chguy t3chguy self-assigned this Feb 21, 2024
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@t3chguy t3chguy closed this Feb 21, 2024
@t3chguy t3chguy reopened this Feb 21, 2024
@t3chguy t3chguy added Z-Experiment Experimental PR, primarily up for its Netlify build, high likelihood of never making it beyond here. and removed Z-Experiment Experimental PR, primarily up for its Netlify build, high likelihood of never making it beyond here. labels Feb 21, 2024
@t3chguy t3chguy marked this pull request as ready for review April 5, 2024 09:26
@t3chguy t3chguy requested a review from a team as a code owner April 5, 2024 09:26
@t3chguy t3chguy requested review from richvdh and MidhunSureshR April 5, 2024 09:26
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

Can you explain a bit more about what this actually does? Maybe a screenshot? I feel I'm lacking context here.

@t3chguy
Copy link
Member Author

t3chguy commented Apr 8, 2024

Maybe a screenshot?

Synapse does not yet return links in UIA responses but will as part of the work for https://github.com/element-hq/element-internal/issues/583 / element-hq/element-web#27045

@t3chguy t3chguy requested a review from richvdh April 8, 2024 10:43
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

lgtm otherwise

src/components/views/dialogs/InteractiveAuthDialog.tsx Outdated Show resolved Hide resolved
@@ -168,7 +170,9 @@ export default class InteractiveAuthDialog<T> extends React.Component<Interactiv
if (this.state.authError) {
content = (
<div id="mx_Dialog_content">
<div role="alert">{this.state.authError.message || this.state.authError.toString()}</div>
<Linkify options={linkifyMatrixOptions}>
Copy link
Member

Choose a reason for hiding this comment

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

For the record: I asked @t3chguy whether the fact that UIA error messages should be linkified was mentioned in an MSC anywhere. The answer is that it is not. But also, since this work is basically being done as a way of getting rid of UIA, MSCing it is probably not worthwhile.

(There is also precedent for EW linkifying things that are returned from the server, such as m.room.topics and timeline event bodies in general.)

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@t3chguy
Copy link
Member Author

t3chguy commented Apr 16, 2024

Skipping code coverage due to splitting file to get around import cycle

@t3chguy t3chguy merged commit 2760f9d into develop Apr 16, 2024
21 of 22 checks passed
@t3chguy t3chguy deleted the t3chguy/linkify-uia-error branch April 16, 2024 10:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants