Key Information

Register
Submit
The challenge is finished.

Challenge Overview

Welcome to Module Assembly - new topcoder submission page - angularJS challenge. This challenge is serial of recent Assembly Challenges to refactor new topcoder site using angular.

The main goal of this challenge is to create submission page for both design and develop challenge type using AngularJS.

Scope:

- Both Design and Develop Challenge type which have different layout, please see UI Prototype.

Tasks Summary:

  1. Add two submission pages to the challenge details Angular app (all should be a single-page app)
    1. Refactor the submission page for the develop challenge type to AngularJS. currently it is using PHP based and posts a submission file to the server via API http://www.topcoder.com/challenge-details/30044670/submit/
    2. Build from scratch (using AngularJS) a submission page for the design challenge type. UI Prototype is attached: see submit-design-stock-art-allowed.html and submit-design.html.
  2. A few design challenges allow stock art (see allowStockArt field on API response). If allowed, then please add stockArt field to upload form. See more on submit-design-stock-art-allowed.html
  3. Uploading process should be by AJAX as UI prototype works. Include a green loading bar while file is being uploaded.
  4. Once file uploaded, then show view submission tabs (submit-design.html) by javascript, and uploaded file should be displayed at bottom.
  5. API for submission process : /v2/develop/challenges/{challengeid}/upload and /v2/design/challenges/{challlengeId}/submit. Please also send tcjwt cookie as Bearer value.
  6. URL should be http://siteurl/challenge-details/{challengeID}/submit, please show correct template (design or develop) depend on challenge type
  7. Please provide error handler based on API response.  For example, if the user is not registered and they hit the submit link directly the page should display a message to the user that they must be logged in first, and maybe error message when connection is lost or server is down.
  8. Don't break any existing functionality
  9. View Submission link next to submit your entries hyperlink should work
  10. Remove Survey section (1 to 10 radio button)

 

Refactor Requirements:

Modify the submitted code to the following structure and coding guidelines.

1. Please ensure to pull latest master branch as starting point, and please resolve any conflicts when merging patch
2. Your work should focus on the recently refactored Angular app at
 js/app/challenge-details

3. Both submission form  should use shared services (maybe shared controllers too), but with different templates. This will impact the review score.
4. Please follow our AngularJS Style Guide (https://gitlab.com/topcoderinc/angularjs-styleguide/tree/master). This standard will be applied in review, and your review score will reflect how closesly you followed these standards.
5. When creating directives, please don't just wrap jQuery in a veneer of Angular

 

Test Cases :

  • Submit to registered challenge (design and develop). Both challenge type have some differences. including template, API target, required fields
  • Submit to a non-registered challenge
  • Submit to closed challenge
  • Submit big file to design challenge
  • Submit to design challenge which allow Stock Art

 

Browsers Requirements :
- IE10
- IE11
- Latest Safari
- Latest Firefox
- Latest Chrome

References :

  1. Local Setup : https://gitlab.com/topcoderinc/tc-site/blob/master/README.md#local-env-setup, if want to disable local minification, please configure it on config.json
  2. Working flow on this challenge : https://gitlab.com/topcoderinc/tc-site/blob/master/README.md#recommend-workflow-for-working-on-a-challenge
  3. topcoder API : http://docs.tcapi.apiary.io

 



Final Submission Guidelines

  1. Please submit only PATCH files, reference : https://github.com/topcoderinc/tc-site#recommend-workflow-for-working-on-a-challenge
  2. Any new js or css file must be included in the registry. learn about this on script and style registry section
  3. We will have winner to submit pull request once winner declared

ELIGIBLE EVENTS:

2015 topcoder Open

REVIEW STYLE:

Final Review:

Community Review Board

Approval:

User Sign-Off

SHARE:

ID: 30044716