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

Improvements to alt aliases #4574

Closed
wants to merge 13 commits into from
Closed

Conversation

foldleft
Copy link
Contributor

@foldleft foldleft commented May 11, 2020

Fixes: element-hq/element-web#13501

Testing notes

  • Dial up the latency on your web browser to 4000ms or so to check it spinners properly
  • Check with normal latency, it should feel snappy
  • Add an alias on another server, get an error dialog
  • Add an invalid alias such as test. We don't locally validate (yet) but the feedback appears on the Field element as if we did
  • Add an alias that doesn't point to the room, such as #test:localhost etc. Feedback should appear on the Field element too
  • Add a bad alias on another server such as #test:example. Feedback should come as a dialog box for now.

Visual changes

  • Aliases dialog now also has a prefixed # and allows input of aliases either beginning or not beginning with #.
  • Failing to add an alias leaves the user's input in the input field, so they can correct small typos
  • Failing to add an alias does not add it to the list of aliases (this was a bug)

Inline feedback for room aliases which don't point to the room
This replaces a dialog reading "There was an error updating the room's alternative addresses. It may not be allowed by the server or a temporary failure occurred."
Screenshot 2020-05-12 at 15 10 27

Inline feedback for bad aliases
This replaces a dialog reading "There was an error updating the room's alternative addresses. It may not be allowed by the server or a temporary failure occurred."
Screenshot 2020-05-12 at 15 10 43

Overlay entire component while busy
This is because, for technical reasons, all of these controls back on to one network call.
Screenshot 2020-05-12 at 15 11 02

Video

Thread

Video

foldleft added 2 commits May 11, 2020 17:13
This should have some nicer behavior that will confused users less

See element-hq/element-web#13501
@foldleft foldleft requested a review from a team May 11, 2020 16:37
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

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

Mostly stylistic nits, when they are cleaned up I'll test it. Otherwise good.

@foldleft foldleft requested a review from t3chguy May 12, 2020 13:06
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

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

Hitting enter in the field triggers a page refresh.

@t3chguy
Copy link
Member

t3chguy commented May 12, 2020

Also doesn't look right in dark mode

image

@foldleft foldleft requested a review from t3chguy May 12, 2020 14:03
@t3chguy t3chguy requested a review from a team May 12, 2020 14:04
@t3chguy
Copy link
Member

t3chguy commented May 12, 2020

This needs design review, some screenshots/gifs might help them with that,

Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

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

Looks reasonable code-wise

Copy link
Contributor

@nadonomy nadonomy left a comment

Choose a reason for hiding this comment

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

Hey @foldleft I had in mind we'd look at this in more detail in future properly so we don't double handle it, but nice to see some progress here anyway. I'd expect us to look at this in way more detail later, but for now to get this merged would be great to:

  • Re-lay out the 'Are you sure?' state to (a) Left align are you sure (b) Right align [Yes] [No] & (c) Not cause the height to change. We might need to simplify the buttons to text links to do this.
  • Update the input label to not mix the address/alias nomenclature, so instead "New published address (#address:server)"
  • Ensure something sane happens if the user closes the settings modal while waiting on server response. What would happen now?

@foldleft
Copy link
Contributor Author

How's this, @nadonomy?
Screenshot 2020-05-28 at 13 30 03

@foldleft
Copy link
Contributor Author

oh hang on let me fix up that vertical

@foldleft
Copy link
Contributor Author

turns out those "x"'s were off-model

Screenshot 2020-05-28 at 13 36 23

@foldleft foldleft requested a review from nadonomy May 28, 2020 12:38
@nadonomy
Copy link
Contributor

nadonomy commented Jun 3, 2020

@foldleft can you ping me on Riot/Matrix when you're about? I have some small requests which will be easier to articulate there to get this over the line.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Small ux improvements to aliases
3 participants