element-hq / element-meta

Shared/meta documentation and project artefacts for Element clients
67 stars 11 forks source link

custom widgets need to support custom names to differentiate them from each other #1270

Open ara4n opened 6 years ago

ara4n commented 6 years ago

especially on Android, where they all get labelled precisely the same thing, so you don't know which you're selecting

stephanerosa commented 3 years ago

Yes, that would be a very nice quick fix because it does really not make any sense from a UX prospective. Can I suggest the addition of a custom icon as well ?

image

t3chguy commented 3 years ago

This is a Scalar issue, the Widgets API lets them do that

stephanerosa commented 3 years ago

Actually I didn't think of changing that state myself manually. It works like a charm :-) (Ok DeepL does not load but it was just to test the naming)

image

t3chguy commented 3 years ago

For the icon you can specify avatar_url with an mxc resource in the same widget event content

stephanerosa commented 3 years ago

That perfectly worked. Thank you ! image

t3chguy commented 3 years ago

Hilariously I just realised I never tested avatar_url on Widgets when I added support for it, you appear to be its first tester :D

stephanerosa commented 3 years ago

I confirm it working on Element-web and Element-desktop. On Element-android the renaming works but there is no avatar in the first place so I cannot tell I do not have an iPhone to test Avatar-ios

t3chguy commented 3 years ago

The MSC which adds support for avatars on Widgets is new and only Web/Desktop support it yet