Monday, November 29, 2021
1 change · master
Enhancements to existing features
The Social app experience has been cleaned up with clearer post previews, easier stream and comment flows, better demo content, and more useful YouTube previews. User permissions were also refined so social users and managers have more appropriate access while keeping business data visibility controlled.
Original PR description
PURPOSE Cleanup onboarding and usage of social app (and its sub apps) after a lot of new features done in 15.0. Provide some technical code cleaning to cleanup code and lessen technical debt.…
PURPOSE
Cleanup onboarding and usage of social app (and its sub apps) after a lot
of new features done in 15.0. Provide some technical code cleaning to cleanup
code and lessen technical debt.
SPECIFICATIONS
[IMP] social_*: add utility method to filter live post by media types.
This commit adds the same utility method that in social stream post model but in
social live_post to filter the live posts easily using their media type.
[IMP] social_*: revamp social post form view and preview
* add live_post_link to allow to go to the real post from preview
This commit adds a live_post_link computed field to live_post model.
this field is used in the live post preview and is used to allow the user
to navigate from the post preview to the real post on the target social
media. Note that Instagram live post link is never set for now as the
information we have do not allow us to compute the real link of the post
on Instagram;
* use user timezone to display publish date in post peview
* add cancel button to post view
* add info note about utmized link in the post content.
* add generic preview method for social.post.template to compute live_post_link
and published_date.
[IMP] social, social_*: revamp social stream post views and modal. This commit
applies multiple improvement to the stream post flow, notably on the stream
post modals (add stream and comments) and kanban.
* Add stream: swap order display of add stream modal, set stream_type_ids
by default if only one type for the media;
* Stream post comments modal: reposition of post comment input to make it
more obvious that this is post comment and not reply to other comments.
Display heart and thumbs up icons only if there are likes;
* Kanban view: review account stats: display up/down tendencies caret only
if != 0%
[IMP] social: move link account boutton to left on media kanban card
[IMP] social_*: revamp developper account setting display. This commit
simplifies the display of the developper account settings. From now on all
the developer account settings are regrouped under the same setting subsection
and duplicated informations are avoided.
[IMP] social_demo: complete social demo data and fake upload button
[IMP] social_*: review ACLS and information access
* apply groups on sales and lead counters for social posts. Compute the
counters in sudo in order to display the real aggregated number even
if the user does not have access to the records behind this number. Once
user clicks on the smart button, he can only view the records them has
access to;
* allow social user to read campaigns;
* allow social users to post their own social posts;
Note about ACLS. Distinction between the groups should be that
Social User:
* can read and edit all posts from other users
* create and edit posts + post his own post
* see all streams & accounts (with respect to multicompany rules)
* see and "use" Campaigns: if some models like SOs are unavaible, the stat
button should simply be hidden)
* read Social Post Templates
* delete posts only if there are their own
* For Demo module, give create access to social stream post to the users as
posting in demo mode automatically create stream posts.
Social Manager:
* access to everything (with respect to multico rules of course)
* delete streams
* access to the Configuration menu
* create, write & delete Social Post Templates
* full access on campaigns: if some models like SOs are unavaible,the stat
button should simply be hidden)
[IMP] social_youtube: display youtube thumbnails in (stream) post kanban views
This commits adds youtube thumbnails to social post kanban cards if the post
is linked to a youtube video. This thumbnails redirect on the related youtube
video. For stream posts that contain a youtube link in their message body a
thumbnail of the link youtube video is added to the kanban card.
To do both, new computed fields have been added:
* youtube_thumbnail_url
* youtube_video_url
Both field contains the url template for youtube video and thumbnail.
The advantage is that if the endpoint or part of the url changes, the update can
be done by code instead of having to update the templates.
[IMP] social_*: reorder smartbuttons on social post form view
Desired order:
1. Clicks
2. Opportunities
3. Quotations
4. Revenues
5. Engagment
6. Feed Posts
Task-2516278