Git Product home page Git Product logo

topcoder-react-lib's Introduction

Topcoder React Lib

Dev Build Status Master Build Status Latest NPM Release NPM Downloads

The Topcoder lib for internal ReactJS projects.

Before create a Test Release

Add --tag test-release to link 31 in .circleci/config.yml

- run: npm publish --tag test-release

Configuration for AV-Scan scorer review type ID

Change the property in AV_SCAN_SCORER_REVIEW_TYPE_ID in config.

Configuration for AV-Scan scorer review type ID

Change the property in PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID in config.

Development

# Install dependencies
npm install

# Run test & build
npm test
npm run build

# Go to other project which depends on the topcoder-react-lib, config its package.json so
# that the 'topcoder-react-lib' points to the local foler path of topcoder-react-lib:
#
# "dependencies": {
#   "topcoder-react-lib": "<local-path-to-topcoder-react-lib>",
#   ......
# }
#

License

UNLICENSED โ€” for internal Topcoder projects only.

topcoder-react-lib's People

Contributors

a-lowe avatar applehit16 avatar birdofpreyru avatar bountyc0d3r avatar cagdas001 avatar codeminter avatar dedywahyudi avatar drasticdpk avatar fikzzzy avatar jmgasper avatar kkartunov avatar lieutenantroger avatar luizrrodrigues avatar maxceem avatar menji avatar mtwomey avatar narekcat avatar nauhil avatar nqviet avatar nursoltan-s avatar rakibansary avatar rashmi73 avatar skyhit avatar srjr19 avatar suppermancool avatar sushilshinde avatar thomaskranitsas avatar vas3a avatar yoution avatar zjuasmn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

topcoder-react-lib's Issues

auth0-js configuration problem

services/user relies on config.AUTH0.DOMAIN config param being available; if there is no AUTH0 segment in the config, the code crush; thus preventing the library to work even when host code does not need related functionality.

We should update auth0-js initialization to be lazy.

[$80] Issue when updating user email

Describe the bug
The API returns an Unable to process JSON error when the user tries to change the email address from the Settings page

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://www.topcoder.com/settings/account
  2. Click on Change email
  3. Enter the new email and click Send verification email
  4. See error

Expected behavior
Only the required properties for changing the email should be passed in the request body to prevent such errors from unused properties.

[$50] Fix code quality issues from V4 changes

This #30 PR introduced code quality issues that should be fixed.

Most of them are in https://github.com/topcoder-platform/topcoder-react-lib/blob/1e4b154636c86c111b964c0258e6a6706735cf1a/src/services/challenges.js but everything should be checked and fixed.

  • Fix eslint issues and revert rules to the default configs
  • Fix many typos v3 => v4 in method documentation.
  • We use the getApiResponsePayloadV3() method with the response from the V4.
  • getApiV3 is defined but never used.
  • We defined both this.private.api and this.private.apiV4 as getApiV4(tokenV3). This is confusing.

[$200] Code quality improvements

  1. I think this whole thing can be rewritten using API factory function. And usage will be like
const { getApi } = services.api;
const api = getApi(version='V4',tokenV3)

This might need change on the community app side but it will generic for next versions.

  1. I think we should remove every mention of v4 from the docs, there are many places where there is v4. Probably in a month or two, we will be launching v5
    https://github.com/topcoder-platform/topcoder-react-lib/pull/33/files search for v4

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.