Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proper UI for creating custom room tags #1373

Closed
matrixbot opened this issue Apr 12, 2016 · 21 comments
Closed

Proper UI for creating custom room tags #1373

matrixbot opened this issue Apr 12, 2016 · 21 comments

Comments

@matrixbot
Copy link

Created by @ matthew:matrix.org.

@ara4n
Copy link
Member

ara4n commented Apr 16, 2016

Could do it from RoomSettings perhaps.

@ara4n ara4n added P2 design and removed P3 labels Jul 27, 2016
@ara4n ara4n added P4 [OBSOLETE LABEL] Interesting — Not yet scheduled, will accept patches and removed P2 labels Sep 8, 2016
@ara4n ara4n added P2 and removed P4 [OBSOLETE LABEL] Interesting — Not yet scheduled, will accept patches labels Nov 5, 2016
@madduck
Copy link

madduck commented Feb 6, 2017

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.

@AndrewJDR
Copy link
Contributor

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.

@abueide
Copy link

abueide commented Oct 8, 2017

any updates @Half-Shot ?

@MurzNN
Copy link
Contributor

MurzNN commented Dec 20, 2017

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)?

@MTRNord
Copy link
Contributor

MTRNord commented Dec 20, 2017

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

@MurzNN
Copy link
Contributor

MurzNN commented Dec 20, 2017

@MTRNord yes, sorry!

@BloodyIron
Copy link

How far are we from this being baked in?

@progserega
Copy link

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

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

@t3chguy
Copy link
Member

t3chguy commented Dec 29, 2018

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

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

@progserega
Copy link

Thank you very match! I will try create it.

@MurzNN
Copy link
Contributor

MurzNN commented Mar 5, 2019

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

@BloodyIron
Copy link

Can't see it, behind login ;P

@turt2live
Copy link
Member

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.

@MTRNord
Copy link
Contributor

MTRNord commented Mar 5, 2019

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)

@fti7
Copy link

fti7 commented Sep 10, 2020

Any News on this?

@MTRNord
Copy link
Contributor

MTRNord commented Sep 10, 2020

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

@fti7
Copy link

fti7 commented Sep 10, 2020

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 :-(

@dannycolin
Copy link
Contributor

dannycolin commented Sep 10, 2020

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 :)

@SimonBrandner
Copy link
Contributor

Tags are to be replaced by spaces, so this doesn't seem to be relevant anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests