Skip to content

Add Content Interactions (rating, discussion, sharing) - #185

Merged
davisagli merged 65 commits into
mainfrom
add-likes
Oct 30, 2025
Merged

Add Content Interactions (rating, discussion, sharing)#185
davisagli merged 65 commits into
mainfrom
add-likes

Conversation

@Tishasoumya-02

@Tishasoumya-02 Tishasoumya-02 commented Aug 25, 2025

Copy link
Copy Markdown
Contributor
image

@Tishasoumya-02
Tishasoumya-02 requested a review from a team as a code owner August 25, 2025 14:15
@Tishasoumya-02
Tishasoumya-02 marked this pull request as draft August 25, 2025 14:17
@Tishasoumya-02 Tishasoumya-02 changed the title Add frontend for rating content Add UI for rating content Aug 25, 2025
@iFlameing

Copy link
Copy Markdown
Member

@davisagli @sneridagh Ready for review and merge. I’ve also added the settings in the control panel. By default, it’s set to false, so it won’t be shown. I encountered one issue: when updating the control panel settings, the site endpoint data isn’t updating immediately — we’re getting stale data and need to reload the page to see the changes.

@davisagli davisagli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this looks good. But I have one doubt about the global setting.

Comment thread backend/src/kitconcept/intranet/upgrades/v20251021001/configure.zcml Outdated
Comment thread frontend/packages/volto-intranet/src/components/Rating/Rating.jsx Outdated
@sneridagh

Copy link
Copy Markdown
Member

@iFlameing without going and delve into details. I have no clue what does the feature does, nor how to enable it or how it does work. We need documentation for this in the default docs. Please try to be thorough with it and cover all the use cases from the user and the admin point of view.

@iFlameing
iFlameing requested a review from a team as a code owner October 24, 2025 10:27
@iFlameing

Copy link
Copy Markdown
Member

@iFlameing without going and delve into details. I have no clue what does the feature does, nor how to enable it or how it does work. We need documentation for this in the default docs. Please try to be thorough with it and cover all the use cases from the user and the admin point of view.

I added the docs.

@iFlameing

Copy link
Copy Markdown
Member

@sneridagh @davisagli @danalvrz Please test it out for last time. I think everything is implemented now :)

@iFlameing
iFlameing requested a review from davisagli October 30, 2025 12:10
@davisagli davisagli changed the title Add UI for rating content Add Content Interactions (rating, discussion, sharing) Oct 30, 2025
@davisagli
davisagli merged commit 3e04aa0 into main Oct 30, 2025
26 checks passed
@davisagli
davisagli deleted the add-likes branch October 30, 2025 21:41
fredvd pushed a commit that referenced this pull request Nov 3, 2025
* Rating

* changelog

* recheck imports

* update

* add comments to customized components

* add comments

* fix

* add other engagement icons

* fix

* comment out calling apis and fix tests failing

* fix lint

* fix lint and rename component

* rename stylesheet

* comment out things which would not work without proper data

* fix lint

* fix: add aria-label to button

* fix

* initial commit

* backend for likes and comment

* Install plone.app.discussion

* 90% done

* minor fix

* fix after review

* backend german translation

* add cypress test

* update pnpm

* add backend changelog

* add upgreade steps and update backend test

* minor fix

* add enable_likes behaviour and polish code

* polish css code

* fix test and format

* final polish code

* Add upgrade step to install plone.app.discussion

* refactor code based on review

* fix cypress test

* fix backend-test

* fix format

* fix format

* fix ci and cypress test

* fix the text of sharing content

* minor typo

* add docs and improve global settings for like

* add documentation and changelog

* rename changelog file

* Fix the bug when navigating to different pages and saving pages

* Hide enable_likes field if enable_content_rating registry setting is disabled

* final fix

* There's no reason to reindex votes, since there is no votes index

* Rename docs page to Content Interactions

* Use proper i18n mechanism for translating share email subject

* Edit changelog

* Enable content rating for new sites, disable for upgraded sites

* Fix cypress test, ratings are enabled by default now

---------

Co-authored-by: iFlameing <ialokkumarsingh0@gmail.com>
Co-authored-by: David Glick <david@glicksoftware.com>
danalvrz added a commit that referenced this pull request Feb 20, 2026
* Support optional instance-local.yaml in the backed to override zope setting
on a development install.

* Added the prepublish script

* Add Content Interactions (rating, discussion, sharing) (#185)

* Rating

* changelog

* recheck imports

* update

* add comments to customized components

* add comments

* fix

* add other engagement icons

* fix

* comment out calling apis and fix tests failing

* fix lint

* fix lint and rename component

* rename stylesheet

* comment out things which would not work without proper data

* fix lint

* fix: add aria-label to button

* fix

* initial commit

* backend for likes and comment

* Install plone.app.discussion

* 90% done

* minor fix

* fix after review

* backend german translation

* add cypress test

* update pnpm

* add backend changelog

* add upgreade steps and update backend test

* minor fix

* add enable_likes behaviour and polish code

* polish css code

* fix test and format

* final polish code

* Add upgrade step to install plone.app.discussion

* refactor code based on review

* fix cypress test

* fix backend-test

* fix format

* fix format

* fix ci and cypress test

* fix the text of sharing content

* minor typo

* add docs and improve global settings for like

* add documentation and changelog

* rename changelog file

* Fix the bug when navigating to different pages and saving pages

* Hide enable_likes field if enable_content_rating registry setting is disabled

* final fix

* There's no reason to reindex votes, since there is no votes index

* Rename docs page to Content Interactions

* Use proper i18n mechanism for translating share email subject

* Edit changelog

* Enable content rating for new sites, disable for upgraded sites

* Fix cypress test, ratings are enabled by default now

---------

Co-authored-by: iFlameing <ialokkumarsingh0@gmail.com>
Co-authored-by: David Glick <david@glicksoftware.com>

* Update to Volto 19.29.0 and vlt 7.5.1 (#268)

* Update to Volto 19.29.0 and vlt 7.5.1

* lock

* Update Share email text (#273)

* Move news fragment to right folder

* Apply suggestion from @davisagli

don't use instance-local.yml in the observed files list

Co-authored-by: David Glick <david@glicksoftware.com>

---------

Co-authored-by: Victor Fernandez de Alba <sneridagh@gmail.com>
Co-authored-by: Tisha Soumya <tishasoumya@gmail.com>
Co-authored-by: iFlameing <ialokkumarsingh0@gmail.com>
Co-authored-by: David Glick <david@glicksoftware.com>
Co-authored-by: Dante Álvarez <89805481+danalvrz@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants