Giter Site home page Giter Site logo

competition-site's Issues

Execute Bug Fix

Bug fix for executing code/problem in docker and retrieve results and consoles

  • changing order of executable code (problem then code vs code then problem)
  • remove calling runSubmission from problem and move to end of code
  • comment out the runSubmission return from the consoleScript to prevent error

Responsive Leaderboard

Two Styles:

Mobile: Similar style to the original layout where clicking on a user shows details, clicking on them again or anywhere else closes the details

Desktop: Shows full table with all details, sortable by total score/time score/space score

Re-Open Solved Problem

Once a solution for displaying a completed solution code is determined, create a button to re-open a solved problem

  • Create button under the displayed solution code
    o onClick should open a modal stating something like 'reopening will affect your time to solve score. Are you sure you want to continue?' Yes or No
  • create an asyncThunk to update the solution in the backend
  • create a backend route to handle the updating of the solution (remove completeDateTime)
    o route should return the updated solution

Adding a user

When a new user is added it is currently done through the auth slice of the store and the new user is not added to the user slice. An update needs to be made so that the user is added to the state. Potentially this could just be an additional call to the fetchUsers thunk.

Bug Fixes

  • Executing code: missing filepath variable in executeCode.js file
  • Initial Code update: initial code in editor does not update when going from previous problem to current problem
  • Incorrect os determination (ie need to swap intel and apple setup)
  • Leaderboard resizing fix
  • Minor leaderboard component cleanup

Navigation after logout

Currently after logout the user is redirected back to the landing page. This needs to be modified so that if they are on the current issue page they are redirected back to the landing page on logout, but if they are on any other page they should not be redirected on logout.

Create routes to save user code in backend

  • Add 'blurb' to Problem model to only show a small portion of the problem statement
  • create softVerifyUser which doesn't require the user to be logged in but if they aren't the route is still accessed
  • Edit getCurrentProblem route to only return current problem AND determine if returned item is the full problem or just blurb based on if user is logged in
  • Edit problem component to only show code section IF user is logged in
  • create route to save user code in db onEvaluate
  • update user code in db for problem and enter a 'submitted' date to close

Error handling for login

Errors are placed in the store by the thunk for logging in. If a login fails as an example due to an incorrect password, the error will carryover and display on the sign up page. Need to determine a method for updating the state so that the error is cleared when navigating away from the login page.

Evaluate Loading Spinner

Add a spinner for the evaluate button to indicate to the user when it is loading and when it's complete

Oauth issue w/ Google + Github using Firefox Browser

When trying to sign in to Google / Github using Oauth, I get the following errors:

Screen Shot 2023-01-27 at 10 41 32 AM

It works when I use Chrome or Safari. So far, I've tried shutting down any ad blockers or plug-ins that might cause an issue. Also, cleared my cache to no avail.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.