-
-
Notifications
You must be signed in to change notification settings - Fork 827
Add UI in settings to change ID Server #3300
Conversation
Just changes the current ID server being used To come in subsequent PRs: * Store this in account data * Check for terms or support the proper UI for accepting terms when setting * Support disconnecting Part 1 of element-hq/element-web#10094 Requires matrix-org/matrix-js-sdk#1013
Tests do actually pass when rich isn't breaking the build agents |
oops, don't merge this yet. Keen observers can play Spot The Deliberate Mistake for a bit. |
Pretty important that we don't send that to the new IS...
ok, better |
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.
Thanks, this is coming together nicely!
Will there be a future part focused on suggesting 3PIDs should be unbound first: element-hq/element-web#10094 (comment)?
@@ -135,6 +138,7 @@ export default class Field extends React.PureComponent { | |||
|
|||
render() { | |||
const { element, prefix, onValidate, children, ...inputProps } = this.props; | |||
delete inputProps.tooltip; // needs to be removed from props but we don't need it 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.
delete
forces the JIT to deoptimise the object, but probably doesn't matter for this case...
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.
interesting - I started with a nop !tooltip
although it sort of seems awful.
*/ | ||
|
||
.mx_SetIdServer .mx_Field_input { | ||
width: 300px; |
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.
I'm not sure 300px is right... The input is supposed to be aligned with the other inputs on the page (except add email/phone, which are wrong).
The common CSS for this is (see .mx_GeneralUserSettingsTab_languageInput
):
margin-right: 100px; // Align with the other fields on the page
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.
mm - we may have to make all the other fields smaller then, otherwise I don't think we'll have room for the tooltip.
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.
done - does this look reasonable?
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.
The tooltip will overextend itself because it's the wrong shape anyways.
I'm not entirely sure the mixin is equivalent either. It looks like the math has gone a bit sideways.
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.
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.
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.
also the section texts, labelled toggles, and that random revoke button all need to line up...
edit: I guess it's largely out of scope for this PR at this point, and I can fight the layout if you'd prefer.
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.
mm - ok, that's not the design as it appears in the privacy bit though - there the all the fields in all the sections are the same length and are 31px from the profile picture.
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.
it looks like it's using an older version of the settings design. An even still, your screenshot is not 31px :(
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.
Oh I see :/ And no, I don't think the tooltip would have fitted with just 31px.
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com>
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com>
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com>
and make that width narrower so we can fit a tooltip in the left hand side (they were a little too wide anyway for the kind of data being entered, even on a narrow window).
as per bug in comment
sigh, more problems with this:
|
I spun this out to a separate issue a few days back: element-hq/element-web#10519 |
aha, in that case I fixed the other bug so just potential design issues now. |
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.
This seems reasonable to me, assuming some future PR will handle suggesting 3PIDs should be unbound first: element-hq/element-web#10094 (comment).
Just changes the current ID server being used
To come in subsequent PRs:
Part 1 of element-hq/element-web#10094
Requires matrix-org/matrix-js-sdk#1013