Comments (9)
@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.
I want to work on this issue, can anyone refer to the relevant files?
from mattermost-plugin-custom-attributes.
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.
@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.
Yes, that would also work 👍
from mattermost-plugin-custom-attributes.
Opening back up for grabs. You can find a PR that started work on this ticket at #57
from mattermost-plugin-custom-attributes.
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.
@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.
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)
- Custom Attribute section is not visible HOT 12
- Allow a user to @mention all users with a particular custom attri HOT 1
- Unable to add attribute: users and team names are not recognized HOT 6
- Update customs attributes using a REST API HOT 2
- Blank GroupIDs cause a Go error when parsing the config.
- Increase Mattermost Redux package version
- while editing the Custom attribute the user is able to save it with the Empty/Without data.
- by Inserting only space in the "Attribute Lable" input box the user Should not able to save the setting. because after inserting space its look Weird.
- When there is 2 custom attribute and i delete 1st attribute then i delete the 2nd attribute then i'm not able to delete the 2nd attribute.
- Unable to add Team selection to a custom attribute HOT 3
- users should be able to edit their own attributes once the name exists.
- System Console --> PLUGINS --> Custom User Attributes -->Blank Screen HOT 1
- MM-47046 Use version of React DOM provided by web app HOT 1
- Release 1.3.1 HOT 1
- Notification settings
- [Request] Groups (of the non AD/LDAP variety) should be supported
- [Request] Badges on user icons
- reloading config.json HOT 2
- README says 1.2.0 is the latest version
- Unable to make dist
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mattermost-plugin-custom-attributes.