Giter Site home page Giter Site logo

Comments (5)

marquiswang avatar marquiswang commented on August 14, 2024

In terms of spec, I propose the following change to the settings:

    "com.mattermost.custom-attributes": {
        "CustomAttributes": [
            {
                "Name": ":mattermost: [Core Committer](https://developers.mattermost.com/contribute/getting-started/core-committers/)",
                "UserIDs": ["someuserID1", "someuserID2"],
                "GroupIDs":["somegroupID1","somegroupID2"],
                "ShowBadge": true
            },
            {
                "Name": ":mattermost: Staff",
                "UserIDs": ["someuserID3", "someuserID4"],
                "GroupIDs":["somegroupID3","somegroupID4"]
            }
        ]
    }

where an attribute with ShowBadge = true is visible in all channels.

from mattermost-plugin-custom-attributes.

marquiswang avatar marquiswang commented on August 14, 2024

I can help with a PR for this, but would need some pointers about the best way to implement this. I don't see an obvious option for setting post flair in the plugin registry (https://developers.mattermost.com/extend/plugins/webapp/reference/#registry)

Presumably it would make a lot of sense to hook into the code that generates the [BOT] badge for posts from the API.

from mattermost-plugin-custom-attributes.

unode avatar unode commented on August 14, 2024

Instead of a boolean for ShowBadge, would it make more sense to have the variable hold the actual badge (e.g. "ShowBadge": ":star:") ?
This would allow customizing the icon or text to be shown.

Perhaps unnecessary but I would also consider "BadgeLocation" : "left|middle|right", to have the badge positioned in one of three locations: (left) FirstName (middle) LastName (right).

from mattermost-plugin-custom-attributes.

moschlar avatar moschlar commented on August 14, 2024

We're also interested in this!

from mattermost-plugin-custom-attributes.

unode avatar unode commented on August 14, 2024

Since opening this issue mattermost implemented user roles. That covers most of our needs.

I would then close this. If anyone else is still waiting for this feature, feel free to reopen.

from mattermost-plugin-custom-attributes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.