Skip to content

Conversation

@ajefts
Copy link
Member

@ajefts ajefts commented Sep 13, 2017

No description provided.

birdofpreyru and others added 30 commits September 6, 2017 17:16
Right now we cannot show submissions tab for active challenges, as API
does not include all necessary information into chalelnge details of
active challenges.

This fix ensures that, for such challenges, submissions icon-link in the
challenge listing directs user to the details page of challenge details.
Fixes #430
Adds a mock implementation of challenge terms service (both for simple
Topcoder terms, and for DocuSign flow). If enabled in config, the app
will use it, allowing to test challenge terms flow in a convenient way,
and to carry on related development.

It also can be used to mock terms service in Jest unit tests.
A few dependencies have not been updated, cause it is cause multiple
problems.
Prior to this point, global SCSS styles were copied from tc-ui repo, and
used almost as they are, which turns out to be very unefficient.

This commit splits all existing global styles into two parts, exposed
via separate entry points: "global.scss" is included once at the root
level of the app (before it was imported in each component style, and
then any dublicates of rules were cleaned out by css optimizer);
"mixins.scss" gives access to all variables and mixins, and can be
imported per component style.

This change:
- Drastically improves performance of browser's dev tools in development
mode (where css code is not optimized, to keep HMR speed at top);
- Most probably improves build time, and overall performance of the app.
Disabled optimization are not safe if styles are split into different
bundles, which is our case.
Submission #518677 from ronakkaria to the challenge
http://www.topcoder.com/challenge-details/30059252/?type=develop
as a diff from his previous submission
It turns out that our setup does not guarantee that order of styles will
match the order of imports (numerous plugins may shake order of CSS, it
is something a way too tricky to solve). Generally, it is not a big deal
for us, but it is a problem, when react-css-themr deeply merges themes
from different sources. It is necessary to be very careful, and use
!important rule for the styles that should take priority.
jstimezonedetect is removed because moment-timezone has the same
functionality + more staff we need.

Instead of stylefmt from now on we'll use stylelint --fix for fixing
style issues in scss (some fixes done by stylefmt used to break the
rules in result).

Fixes #21
Fixes #129
+ preparing to hide the challenge listing when visitor is not a member
of community (but this is not finished yet).
@ajefts ajefts merged commit 43991e1 into master Sep 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants