Merge Request #4

Merged
noosfero-themes/angular-theme!4
Created by Victor Costa

Add comments to articles

Closes #14

Assignee: None
Milestone: 2016.04

Merged by Ábner Oliveira

Source branch has been removed
Commits (10)
2 participants
  • 4a20548511a65cfccc863520b70c3ee9?s=40&d=identicon
    Victor Costa @vfcosta

    Milestone changed to 2016.04

    Choose File ...   File name...
    Cancel
  • 4a20548511a65cfccc863520b70c3ee9?s=40&d=identicon
    Victor Costa @vfcosta

    Added 1 new commit:

    • 8202814b - Refactor comments component to permit extensions
    Choose File ...   File name...
    Cancel
  • 4a20548511a65cfccc863520b70c3ee9?s=40&d=identicon
    Victor Costa @vfcosta

    Added 1 new commit:

    • 06a2fc8d - Translate success message of post comment
    Choose File ...   File name...
    Cancel
  • 4a20548511a65cfccc863520b70c3ee9?s=40&d=identicon
    Victor Costa @vfcosta

    Added 10 new commits:

    • 556724ef - Fixed home link
    • f0b9c7a0 - Display replies of comments
    • 8b4048cc - Improve layout of post comment component
    • 20a7654b - Toggle reply form when clicked from comment component
    • 734399ac - Sort comments by creation date
    • b4c8800b - Fix layout of comments replies
    • cb5558ce - Add pagination button for comment listing
    • 3e93892b - Hide more comments button when there is no more pages to load
    • de7418b4 - Refactor comments component to permit extensions
    • 95a63439 - Translate success message of post comment
    Choose File ...   File name...
    Cancel
  • 4a20548511a65cfccc863520b70c3ee9?s=40&d=identicon
    Victor Costa @vfcosta

    Added 13 new commits:

    • efa64a13 - Fix helpers.ts type problems and added conditional to show profile custom-fields table
    • 6d10324a - People block refactoring. Created component-test-helper
    • 458f2ccd - Review Modifications
    • 7bab2b41 - Merge branch 'people-block' into 'master'
    • 986f9d29 - Display replies of comments
    • 89d0707b - Improve layout of post comment component
    • 50ef7e70 - Toggle reply form when clicked from comment component
    • d78752ef - Sort comments by creation date
    • db57fad4 - Fix layout of comments replies
    • 34b31510 - Add pagination button for comment listing
    • 07583059 - Hide more comments button when there is no more pages to load
    • 37a2a450 - Refactor comments component to permit extensions
    • 5d2ebeec - Translate success message of post comment
    Choose File ...   File name...
    Cancel
  • 0deafa1501ec8dd687ee70f90488d592?s=40&d=identicon
    Ábner Oliveira @abner

    Reassigned to @abner

    Choose File ...   File name...
    Cancel
  • 0deafa1501ec8dd687ee70f90488d592?s=40&d=identicon
    Ábner Oliveira @abner (Edited )

    I would like to deliver some feedback about the comment system implemented:

    1 - The "More" button is showing even when there isn't more comments avaiable;

    2 - I think would be better minimize the identation to represent replies, maybe to just one level and use some text+icon to represent the comment is a reply. I think the comments would have anchors and so the reply text+icon would link to the comment it's replying.

    3 - I realy liked the Post Comment Button Animation. :D

    Choose File ...   File name...
    Cancel
  • 0deafa1501ec8dd687ee70f90488d592?s=40&d=identicon
    Ábner Oliveira started a discussion on the outdated diff
    last updated by Ábner Oliveira
    src/app/article/comment/comment.component.ts
    11 13  
    12 14 showReply: boolean = false;
    13 15  
      16 + constructor(private $scope: ng.IScope) {
      17 + $scope.$on(PostCommentComponent.EVENT_COMMENT_RECEIVED, (event: ng.IAngularEvent, comment: noosfero.Comment) => {
    1
    • 0deafa1501ec8dd687ee70f90488d592?s=40&d=identicon
      Ábner Oliveira @abner

      We started to use the EventEmmiter and Services to events propagation. So this app will be more aligned with the Angular 2 Way of work with events. So i think we should change to use that approach instead of the $scope.broadcast

      Choose File ...   File name...
      Cancel
    0deafa1501ec8dd687ee70f90488d592?s=40&d=identicon
    Ábner Oliveira started a discussion on the diff
    last updated by Victor Costa
    src/app/article/comment/comments.html
    1 1 <div class="comments">
    2   - <noosfero-post-comment [article]="ctrl.article"></noosfero-post-comment>
      2 + <noosfero-post-comment ng-if="ctrl.showForm" [article]="ctrl.article" [parent]="ctrl.parent"></noosfero-post-comment>
    3 3  
    4 4 <div class="comments-list">
    5   - <noosfero-comment ng-repeat="comment in ctrl.comments" [comment]="comment" [article]="ctrl.article"></noosfero-comment>
      5 + <noosfero-comment ng-repeat="comment in ctrl.comments | orderBy: 'created_at':true" [comment]="comment" [article]="ctrl.article"></noosfero-comment>
    6 6 </div>
      7 + <button type="button" ng-if="ctrl.displayMore()" class="more-comments btn btn-default btn-block" ng-click="ctrl.loadNextPage()">{{"comment.pagination.more" | translate}}</button>
    2
    0deafa1501ec8dd687ee70f90488d592?s=40&d=identicon
    Ábner Oliveira started a discussion on the diff
    last updated by Ábner Oliveira
    src/app/article/comment/post-comment/post-comment.scss 0 → 100644
      1 +.comments {
      2 + .post-comment {
      3 + .media {
      4 + border-top: 2px solid #F3F3F3;
      5 + padding-top: 10px;
      6 + .media-left {
      7 + padding: 10px 0;
      8 + }
      9 + button {
    1
    • 0deafa1501ec8dd687ee70f90488d592?s=40&d=identicon
      Ábner Oliveira @abner

      I liked the animation here. But maybe would be better provide this animation at the default theme instead. Would be hard to override this on themes.

      Choose File ...   File name...
      Cancel
  • 0deafa1501ec8dd687ee70f90488d592?s=40&d=identicon
    Ábner Oliveira @abner

    Reassigned to @vfcosta

    Choose File ...   File name...
    Cancel
  • 4a20548511a65cfccc863520b70c3ee9?s=40&d=identicon
    Victor Costa @vfcosta

    Added 16 new commits:

    • 5c75ac60 - Adding a Vagrantfile
    • 697684e6 - fix date format for general locales
    • 50d18589 - change README install instructions
    • dce2b87d - Cleaning up unneeded files
    • f9896e22 - Refactoring build task
    • d80617bf - Update README.md with new build instructions
    • a5c48faf - Merge branch 'dev-fixes' into 'master'
    • a944f06a - Display replies of comments
    • 4b876c39 - Improve layout of post comment component
    • 2ebd4ad0 - Toggle reply form when clicked from comment component
    • 6911e123 - Sort comments by creation date
    • 1d6363e0 - Fix layout of comments replies
    • 6e2ef9ed - Add pagination button for comment listing
    • 16b1a6fa - Hide more comments button when there is no more pages to load
    • d247ad88 - Refactor comments component to permit extensions
    • 845f879b - Translate success message of post comment
    Choose File ...   File name...
    Cancel
  • 4a20548511a65cfccc863520b70c3ee9?s=40&d=identicon
    Victor Costa @vfcosta

    Added 1 new commit:

    • 6061cf6e - Refactor post comment event to use EventEmitter
    Choose File ...   File name...
    Cancel
  • 4a20548511a65cfccc863520b70c3ee9?s=40&d=identicon
    Victor Costa @vfcosta

    Added 1 new commit:

    • 132b5d04 - Refactor post comment event to use EventEmitter
    Choose File ...   File name...
    Cancel
  • 4a20548511a65cfccc863520b70c3ee9?s=40&d=identicon
    Victor Costa @vfcosta

    @abner the identation will be fixed in comment-paragraph branch

    Choose File ...   File name...
    Cancel
  • 4a20548511a65cfccc863520b70c3ee9?s=40&d=identicon
    Victor Costa @vfcosta

    Assignee removed

    Choose File ...   File name...
    Cancel
  • 0deafa1501ec8dd687ee70f90488d592?s=40&d=identicon
    Ábner Oliveira @abner

    o commit 00882cc3edbc26721fd392b5a314c0a24bee977a não apareceu aqui no MergeRequest

    Choose File ...   File name...
    Cancel