Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Edit Posts, Comments and Infinitely Scroll Posts in a Community #16

Merged
merged 17 commits into from
Apr 20, 2019
Merged

Commits on Apr 17, 2019

  1. Fix for infinite scroll on Steem content

    I forgot to carry over the 'action' variable across to the redux store, which made the infinite scroll wouldn't work.
    KrNel committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    4173039 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cb2556d View commit details
    Browse the repository at this point in the history
  3. merge conflict resolve

    KrNel committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    9f6b0a1 View commit details
    Browse the repository at this point in the history
  4. Fixed useless loading symbol when no more data to fetch

    When scrolling for posts, the last fetch for data should have set the 'hasMore' to false, but didn't. Instead it would do another fetch and set it when the data was empty. Instead, the 'hasMore' should be set to false when the results are less than the limit for pagination.
    KrNel committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    7c152ad View commit details
    Browse the repository at this point in the history
  5. Added Editing to Steem posts

    Steem posts you authored can now be edited and resubmitted to the Steem blockchain.
    KrNel committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    ae57460 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7104791 View commit details
    Browse the repository at this point in the history
  7. Added Clear button to Write posts page

    When editing a post, but decided to not and cancel it, or to instead write a new post, there needed to be a way to clear the form data to start anew, without refreshing the page. Adding a clear button allows the page to be cleaned and ready for new data input.
    KrNel committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    ad5d6ab View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2019

  1. Moved post editing to the post's page itself

    The post editing was being done in the Write page. It seemed better to put the editing within the page itself, and not in the page where new posts are done to make it more clear where a user is.
    KrNel committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    97aa0f5 View commit details
    Browse the repository at this point in the history
  2. Adding Editing to comments

    Comments can now be edited and update the changes to the Steem blockchain.
    KrNel committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    32c93db View commit details
    Browse the repository at this point in the history
  3. Fixed edited comment losing child comments

    When updating an edited comment, the child comments were lost. This was due to simply copying the updated comment fetch from Steem over the previous comment. When there were replies within the comment, they would be lose because the original comment fetching iterates to fetch child comments as long as there are some.
    KrNel committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    8d44416 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2019

  1. Added infinite scroll to individual Community pages

    The fetching of individual communit data has been moved to Redux. After changing that, the infinite scroll was added to the individual community pages for pagination purposes.
    KrNel committed Apr 19, 2019
    Configuration menu
    Copy the full SHA
    08f2b9d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f95d390 View commit details
    Browse the repository at this point in the history
  3. Fixed previous community page data displaying on the next

    When looking at another community page after already visiting one before, the previous page data was being shown. Adding a clear action to Redux to empty the groupData aobject resolved the issue.
    KrNel committed Apr 19, 2019
    Configuration menu
    Copy the full SHA
    f8cf110 View commit details
    Browse the repository at this point in the history
  4. Moved the Join Communities feature to Redux

    The join communities functionality was moved to Redux as well.
    KrNel committed Apr 19, 2019
    Configuration menu
    Copy the full SHA
    1512a78 View commit details
    Browse the repository at this point in the history
  5. Fixed no auth user before data fetch

    On some pages that used the user name in order to get user related data, the returning user verification in Redux was being returned only after the data fetch was already sent. This made some data return as a not logged in user, when the user was. This was due to the asynchronous redux-thunk in the app.
    
    This has been corrected by checking if the redux store has the authenticated user, and if not, go get the username from the cookie instead of waiting for the asynchronous authentication.
    KrNel committed Apr 19, 2019
    Configuration menu
    Copy the full SHA
    1bf5113 View commit details
    Browse the repository at this point in the history
  6. Fix no auth on Home page, and not logged in bug

    The Home page also had the need for the user name. The previous fix is now applied to the Home page.
    
    The fix had an issue with non logged in user, as they had no cookie, thus the page would crash beacuse I wasn't testing for that, which I now do.
    KrNel committed Apr 19, 2019
    Configuration menu
    Copy the full SHA
    87cbe47 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2019

  1. Fixed bug of route change from editing post to new post

    When editing a post and then going to write a new one, the post that was edited was staying in view, and the form was not appearing. Clicking on the Write a second time had the form appear and route change. I had to add a check for the reset flag in teh Write component to make sure the edit form fisplayed, rather than the redirect for the edited post.
    KrNel committed Apr 20, 2019
    Configuration menu
    Copy the full SHA
    1058eab View commit details
    Browse the repository at this point in the history