Giter Site home page Giter Site logo

Comments (9)

hanzei avatar hanzei commented on August 14, 2024 1

@nathanaelhoun The webapp uses the check for additional data like attaching the text This post was created by an integration from . This should only be shown (AFAIK) when the user name actually gets overwritten. Let's keep the scope of this ticket to only fixing the issue that custom attributes if facing and don't change the behavior on the webapp.

from mattermost-plugin-custom-attributes.

sudiptog81 avatar sudiptog81 commented on August 14, 2024

I want to work on this issue, can anyone refer to the relevant files?

from mattermost-plugin-custom-attributes.

hanzei avatar hanzei commented on August 14, 2024

Thanks @sudiptog81 👍 https://github.com/mattermost/mattermost-plugin-custom-attributes/tree/master/webapp/src/components/user_attribute does contain the files for the profile popover.

from mattermost-plugin-custom-attributes.

sudiptog81 avatar sudiptog81 commented on August 14, 2024

@hanzei I think we can reuse https://github.com/mattermost/mattermost-redux/blob/2b68c18adcccfe58ad8b58d682b341b97929d058/src/utils/post_utils.ts#L32 and return null here https://github.com/mattermost/mattermost-plugin-custom-attributes/blob/master/webapp/src/components/user_attribute/user_attribute.jsx#L28. However, we would need to access the Post Object.

from mattermost-plugin-custom-attributes.

hanzei avatar hanzei commented on August 14, 2024

Yes, that would also work 👍

from mattermost-plugin-custom-attributes.

jasonblais avatar jasonblais commented on August 14, 2024

Opening back up for grabs. You can find a PR that started work on this ticket at #57

from mattermost-plugin-custom-attributes.

nathanaelhoun avatar nathanaelhoun commented on August 14, 2024

Hi! I'm interested to take this one. If I understood well the discussion in #57, the problem is that we don't have access to the fromWebhook property in the plugin. I have tested some changes in the webapp making the fromWebhook accessible in the plugin.

Is this a correct way to proceed? If so, I will submit PRs in webapp and plugin :-)

from mattermost-plugin-custom-attributes.

hanzei avatar hanzei commented on August 14, 2024

@larkox Thanks for taking a look @nathanaelhoun 👍 Adding fromWebhook to the ProfilePopoverProps seems reasonable to me. Why did you also touch the code in render()?

from mattermost-plugin-custom-attributes.

nathanaelhoun avatar nathanaelhoun commented on August 14, 2024

Why did you also touch the code in render()?

@hanzei The webapp used the trick of const haveOverrideProp = this.props.overwriteIcon || this.props.overwriteName; to know if the popover was from a webhook. It's why I proposed to change the webapp as well, but I can revert these changes 😄

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.