Element-web: Proper UI for creating custom room tags

Created on 12 Apr 2016  Â·  20Comments  Â·  Source: vector-im/element-web

Created by @ matthew:matrix.org.

design feature p2 tags

Most helpful comment

FYI, I've been working on and off on this one for weeks on a local branch. Currently have a management system for creating tags in UserSettings that lets you order them in the list, and define how you want the rooms to be ordered inside it. Still trying to figure out a nice UI for room settings.

And now available at https://github.com/matrix-org/matrix-react-sdk/pull/891!

screenshot from 2017-05-14 16-04-14
screenshot from 2017-05-14 16-03-56
screenshot from 2017-05-14 16-03-45

All 20 comments

Could do it from RoomSettings perhaps.

Here are the curl commands one can use to add/remove/view tags:

First, obtain an access token:

curl -XPOST -d '{"type":"m.login.password", "user":"madduck", "password":"verysecret"}' https://matrix.org/_matrix/client/r0/login

which will return JSON, such as:

{
  "access_token": "MDAxOWxvY2F0aW9xxxxxxxxxxxxxxxxxxxxxxtnPzgvUDgLMAwVyIGtleQowMDEwY…cmUgQnfg-dryxxxxxxxxxxxx1JUY-8cANOxxxxxxxxxxxxQK",
  "device_id": "XDGSPYFZAN",
  "home_server": "matrix.org",
  "user_id": "@madduck:matrix.org"
}

Now you can talk to the API according to the spec:

Add a tag:

curl -XPUT -d '{"order":"1"}' https://matrix.org/_matrix/client/r0/user/%40madduck%3amatrix.org/rooms/%21cuGUKxLssVxZNOSxHV%3amatrix.org/tags/bar?access_token=…
→ {}

View tags:

curl -XGET https://matrix.org/_matrix/client/r0/user/%40madduck%3amatrix.org/rooms/%21cuGUKxLssVxZNOSxHV%3amatrix.org/tags?access_token=…
→ {
  "tags": {
    "bar": {
      "order": "1"
    }
  }
}

Remove a tag:

curl -XDELETE https://matrix.org/_matrix/client/r0/user/%40madduck%3amatrix.org/rooms/%21cuGUKxLssVxZNOSxHV%3amatrix.org/tags/bar?access_token=…
→ {}

Note that all the rooms need to be specified with their internal IDs (e.g. the
name starting with !, like !cuGUKxLssVxZNOSxHV:amatrix.org. Using aliases
does not (yet) work.

Another important note here - while you can set these room tags via the api, they still won't actually be categorized properly in riot-ios and riot-android as they simply have hardcoded favourite, direct, rooms, and low priority categories.

riot-web is the only one that actually works with custom room tags, as far as I know.

FYI, I've been working on and off on this one for weeks on a local branch. Currently have a management system for creating tags in UserSettings that lets you order them in the list, and define how you want the rooms to be ordered inside it. Still trying to figure out a nice UI for room settings.

And now available at https://github.com/matrix-org/matrix-react-sdk/pull/891!

screenshot from 2017-05-14 16-04-14
screenshot from 2017-05-14 16-03-56
screenshot from 2017-05-14 16-03-45

any updates @Half-Shot ?

As described in Riot room, at now there are exists way to add custom tags manually via API, and Riot will show them normally already now in current version. Before interface for custom tags is not released, maybe developers can describe some examples or short instructions here (or in wiki) - how to add custom tags directly via API (curl, browser console, js, or something else)?

@MurzNN scroll up. in this issue it is already mentioned how to add Tags.

@MTRNord yes, sorry!

How far are we from this being baked in?

As I understand - today API support tags names only in english language?

Do you can add support for tags on other custom user language?

As I understand - today API support tags names only in english language?

@progserega this is incorrect, you must just urlencode things.
image

Thank you very match! I will try create it.

Here https://tags.t2bot.io/ is web interface for manage room tags

Can't see it, behind login ;P

Author here: It's also open source ( https://github.com/turt2live/matrix-tag-manager )

Riot should absolutely get a dedicated UI for this though. The tag manager project is not intended to be a permanent replacement.

Here tags.t2bot.io is web interface for manage room tags

If @turt2live reads this (well I pinged him now): Its a great UI. 2 Issues/Suggestions:

  1. Dragging doesn't scroll the UI
    2. It refuses to have one room in multiple tags which makes it kind of weird :) (I would like to have for example some rooms under my favs and unter a custom tag) (nvm saw the open issue now)

Any News on this?

tags seem to be more or less in maintenance-only mode. More or less abandoned.

Why? If you have a lot of channels, you need something like this. We have a lot of Discord Users which want something like this for their Teams/Communities :-(

Friendly reminder that this is a bug tracker and not a forum or chat. Everytime you post here, everyone in the CC list get a notification and that kind of question only add noise to our emails. If you want to ask questions or have news about a feature please consider asking on the #element-web room.

Thanks :)

Was this page helpful?
0 / 5 - 0 ratings