Skip to content
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

Feature: Move Dashboard project solutions to Hotwire. #3967

Merged
merged 1 commit into from
Jul 21, 2023

Commits on Jul 21, 2023

  1. Feature: Move Dashboard project solutions to Hotwire.

    Because:
    * We are replacing our React components with Hotwire.
    
    This commit:
    * Adds a title slot to project submission items - we display the lesson title when on the dashboard and the solutions users name when on a lesson page.
    * Adds a users project submissions controller - when updating a solution from the dashboard we need to use a user specific endpoint to ensure the correct solution item is returned.
    * Automatically like your own project when it is created - We need to disable liking your own submissions, at least for now:
      * The likes endpoint needs to return a full item component at the moment to allow sorting to work. This conflicts with needing different item titles on the dashboard and lesson pages. We'll be able to enable again soon ™️. The next phase of this project is to add a sorting feature to the solutions list, we'll be able to update just the like counter when that is built.
      * The compromise is to automatically like your project so nobody ever has to see their project sitting at 0 - kind of like how Reddit handles new posts.
    * A few performance improvements by preloading lesson and user solutions when fetching solutions.
    KevinMulhern committed Jul 21, 2023
    Configuration menu
    Copy the full SHA
    8979109 View commit details
    Browse the repository at this point in the history