matrix-spec-proposals icon indicating copy to clipboard operation
matrix-spec-proposals copied to clipboard

MSC2192: Inline widgets

Open turt2live opened this issue 6 years ago • 5 comments

Rendered

Disclaimer: This is currently a set of ideas and may not be complete or ideal.

Early implementation: https://github.com/matrix-org/matrix-react-sdk/pull/3252 For https://github.com/vector-im/riot-web/issues/10060 and related issues.

turt2live avatar Jul 28 '19 19:07 turt2live

It could interesting to allow to set links in options value for m.buttons (for simple webhooks). In this case when the button is tapped, client should 'submit' the url Like:

        "options": [
            {
                "label": "Do that",
                "value": "https://example.org/api/do?param=xxx"
            }

In this case the compatibilty body would construct links: [Do that](https://example.org/api/do?param=xxx) -> Do that

(Clients SHOULD probably ask users permissions (once) to share data with this domain)

This can be extended to more 'uri' than https://, for example it could be messageto (act like a mailto) "value": "messateto:@user:example.org?content={ ... }"

BillCarsonFr avatar Jan 06 '20 08:01 BillCarsonFr

Any recommandation for edits / redacts of m.response or m.options ?

BillCarsonFr avatar Jan 06 '20 08:01 BillCarsonFr

Any recommandation for poll result display by client?

  • See results before voting?
  • Display results as percent? abs value?
  • Display current total number of votes
  • Show a visual indicator of current user vote

Early implementation in riotX https://github.com/vector-im/riotX-android/pull/810

image

BillCarsonFr avatar Jan 06 '20 08:01 BillCarsonFr

@BillCarsonFr please always use threads so things can be replied to. I've moved your comments.

turt2live avatar Jan 06 '20 16:01 turt2live

Allowed HTML tags can be extended instead.

erkinalp avatar Apr 28 '21 16:04 erkinalp