Skip to content

Commit 5566fd4

Browse files
authored
Merge pull request element-hq#9154 from vector-im/benp/labs-docs
"Render simple counters in room header" details
2 parents 8e51479 + d098857 commit 5566fd4

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,12 @@ To change the config.json for the desktop app, create a config file which will b
256256

257257
In the paths above, `$NAME` is typically `Riot`, unless you use `--profile $PROFILE` in which case it becomes `Riot-$PROFILE`.
258258

259+
Labs Features
260+
=============
261+
262+
Some features of Riot may be enabled by flags in the `Labs` section of the settings.
263+
Some of these features are described in [labs.md](https://github.com/vector-im/riot-web/blob/develop/docs/labs.md).
264+
259265
Development
260266
===========
261267

‎docs/labs.md‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# riot-web Labs features
2+
3+
Some notes on the features you can enable by going to `Settings->Labs`. Not exhaustive, chat in
4+
[#riot-web:matrix.org] for more information.
5+
6+
**Be warned! Labs features are not finalised, they may be fragile, they may change, they may be
7+
dropped. Ask in the room if you are unclear about any details here.**
8+
9+
## Render simple counters in room header
10+
11+
Allows rendering of labelled counters above the message list.
12+
13+
Once enabled, send a custom state event to a room to set values:
14+
15+
1. In a room, type `/devtools` to bring up the devtools interface
16+
2. Click "Send Custom Event"
17+
3. Toggle from "Event" to "State Event"
18+
4. Set the event type to: `re.jki.counter` and give it a unique key
19+
5. Specify the content in the following format:
20+
21+
```
22+
{
23+
"link": "",
24+
"severity": "normal",
25+
"title": "my counter",
26+
"value": 0
27+
}
28+
```
29+
30+
That's it. Now should see your new counter under the header.
31+
32+
[#riot-web:matrix.org]: https://matrix.to/#/#riot-web:matrix.org

0 commit comments

Comments
 (0)