-
-
Notifications
You must be signed in to change notification settings - Fork 833
Conversation
Sorry wrong button |
Not sure of the process but the PR is in a relative good state and working well. Set it as WIP since:
But wanted some feedback before spending more time on it :). |
I've requested review from @matrix-org/product but they are quite busy so it may take some time, it is their decision what features land |
I'd like @americanrefugee 's input on the design of the button and it's layout. In terms of functionality I would accept this enhancement if/when implemented correctly Here's how I see it in the Netlify build. Let me know if I'm actually looking at the wrong thing. |
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 functionality of the Netlify screenshot if correct, but the design should look like this:
https://www.figma.com/design/qTWRfItpO3RdCjnTKPu4mL/Settings?node-id=97-15874&t=whVB5NajX00nqnN5-4
@americanrefugee I don't have access even with an account to the Figma file. |
Sorry @Timshel I didn't realize at first that you're not an Element employee - which is why I can't give you access to our design files. However, here are screenshots of how the feature should look like, as well as dropdown menu states: As for the functionality, I agree that it's useful to be able to type to filter dropdown menu results. However, the user shouldn't actually be typing anything into the field. |
Such a Dropdown component is being worked on in element-hq/compound-web#204 and should be reusable here once it lands |
Ok I'll switch to having the dropdown justified on the left with the label on top.
I'll mention first that it's reusing the same dropdown that the one used at the top of the page for But I'm not sure what you mean by not "typing anything into the field" do you mean not visible ? If you mean it to work like the classic list with keyboard navigation then I would mention that there is over 400 values so I believe filtering is quite important here. |
I suppose if the user starts typing then it can follow the regular form field component: And here is the Clear / X button:
Something like that? |
@americanrefugee adding the Clear/ X would make sense, but I believe there is some "conflict" with the down arrow which indicate that it's a dropdown (probably why it's not already present). As I mentioned I'm just reusing an existing component, so any change would impact multiple existing fields. |
Ok, reuse the existing component. Don't wanna block anything :) |
@americanrefugee do you have a recommendation for the dropdown width ? By default, it matches the width of the selected option (The container has the class Added the current Timezone in the
|
93b669d
to
ed26e22
Compare
f243c5e
to
c87a19c
Compare
Managed to update the playwright snapshot even if the other test is failing with a timeout (the test was not reported as failing on the ci ...). |
c87a19c
to
407f628
Compare
Hey sorry, with some jest test failing locally (on Hopefully this should be ok now, there is still the |
A js-sdk PR broke our CI, so don't worry about the current state of the ts errors. |
@florianduros Just seen your latest push, I was thinking of adding to the playwright test (seen those default in other tests):
This can be set globally too in the |
c4255fe
to
41f50ac
Compare
41f50ac
to
084a157
Compare
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.
Perfect it works!
Thanks for the contribution and not giving up! Well done!
Hey,
This adds the ability for a user to set a Timezone which will replace the default one from the browser.
Worked on it mainly because Firefox with resist fingerprinting (Cf element-hq/element-web#25006) set the timezone to UTC, and I'm not aware of an easy way to whitelist only specific domains.
Edit: probably should have searched more before coding but there is supposed to be a whitelist in Firefox RFP but for now I have issues with it 😅. And this might be useful in other cases.
Checklist
public
/exported
symbols have accurate TSDoc documentation.