-
Notifications
You must be signed in to change notification settings - Fork 1
Add Content Interactions (rating, discussion, sharing) #185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 64 commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
7021408
Rating
Tishasoumya-02 f05de8d
changelog
Tishasoumya-02 d5d8eab
recheck imports
Tishasoumya-02 0de6780
merge
Tishasoumya-02 a667875
update
Tishasoumya-02 095bf8f
add comments to customized components
Tishasoumya-02 d9a310b
add comments
Tishasoumya-02 9ac7038
fix
Tishasoumya-02 0691805
add other engagement icons
Tishasoumya-02 6f7908a
merge
Tishasoumya-02 e965b7f
fix
Tishasoumya-02 35cada5
Merge branch 'main' into add-likes
Tishasoumya-02 6a2bab5
comment out calling apis and fix tests failing
Tishasoumya-02 b304fa3
Merge branch 'add-likes' of github.com:kitconcept/kitconcept.intranet…
Tishasoumya-02 08e0114
fix lint
Tishasoumya-02 57a6bc0
fix lint and rename component
Tishasoumya-02 d786e51
rename stylesheet
Tishasoumya-02 63e9d5d
merge
Tishasoumya-02 9982a6e
comment out things which would not work without proper data
Tishasoumya-02 fb64a51
fix lint
Tishasoumya-02 e73eedb
fix: add aria-label to button
Tishasoumya-02 5a264aa
Merge branch 'main' into add-likes
Tishasoumya-02 400270c
fix
Tishasoumya-02 5637154
initial commit
iFlameing 2e4a353
backend for likes and comment
iFlameing 4e91a0a
Install plone.app.discussion
davisagli e64b0b3
90% done
iFlameing 4794efe
minor fix
iFlameing 98182b0
fix after review
iFlameing ce658ba
Merge branch 'main' into add-likes
iFlameing 15f6127
backend german translation
iFlameing c4dd90c
add cypress test
iFlameing 6384914
update pnpm
iFlameing 39ecab6
add backend changelog
iFlameing 6e26dfe
add upgreade steps and update backend test
iFlameing a62f7d0
minor fix
iFlameing bbf6f13
add enable_likes behaviour and polish code
iFlameing 0ad93f2
Merge branch 'main' into add-likes
iFlameing 2f518b8
polish css code
iFlameing f0d149c
fix test and format
iFlameing 53f8c27
final polish code
iFlameing 540d6d6
Add upgrade step to install plone.app.discussion
davisagli 3925c9b
refactor code based on review
iFlameing 1d4f89f
Merge branch 'main' into add-likes
iFlameing 2fd411b
fix cypress test
iFlameing 285fa6c
fix backend-test
iFlameing 0eac3dc
fix format
iFlameing dce49d8
Merge branch 'main' into add-likes
iFlameing 2f564ad
fix format
iFlameing 215796a
fix ci and cypress test
iFlameing bf356f4
fix the text of sharing content
iFlameing 3f19fa8
minor typo
iFlameing 71c923e
add docs and improve global settings for like
iFlameing 63ce35e
add documentation and changelog
iFlameing 6e9862e
rename changelog file
iFlameing f95ce25
Fix the bug when navigating to different pages and saving pages
iFlameing 6a5bfde
Hide enable_likes field if enable_content_rating registry setting is …
davisagli 2a39162
final fix
iFlameing b254aff
Merge branch 'main' into add-likes
iFlameing 473831a
There's no reason to reindex votes, since there is no votes index
davisagli a8a8ad4
Rename docs page to Content Interactions
davisagli 63c7738
Use proper i18n mechanism for translating share email subject
davisagli bad5a78
Edit changelog
davisagli 6400814
Enable content rating for new sites, disable for upgraded sites
davisagli c6739d7
Fix cypress test, ratings are enabled by default now
davisagli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Add backend for content ratings, and enable discussion and ratings for the Page content type. @iFlameing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| from kitconcept.intranet import _ | ||
| from plone.autoform.interfaces import IFormFieldProvider | ||
| from plone.supermodel import model | ||
| from zope import schema | ||
| from zope.interface import provider | ||
|
|
||
|
|
||
| @provider(IFormFieldProvider) | ||
| class IVotes(model.Schema): | ||
| model.fieldset("likes", label=_("Likes"), fields=["votes", "enable_likes"]) | ||
|
|
||
| votes = schema.List( | ||
| title=_("Votes"), | ||
| description=_("List of user IDs"), | ||
| value_type=schema.TextLine( | ||
| title=_("Votes"), | ||
| ), | ||
| required=False, | ||
| readonly=True, | ||
| ) | ||
|
davisagli marked this conversation as resolved.
|
||
|
|
||
| enable_likes = schema.Bool( | ||
| title=_("Enable Likes"), | ||
| description=_("Enable Likes for this Content Object"), | ||
| required=False, | ||
| default=False, | ||
| ) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.