Repository navigation
feat(client): respect user color scheme in editor - #48974
ojeytonwilliams merged 4 commits into
Conversation
|
👀 Review this PR in a CodeSee Review Map |
raisedadead
left a comment
There was a problem hiding this comment.
Thanks, can you also add a test because you are fixing a regression?
|
Nope, the test would require creating a cypress test, and the time and the effort it would take me to create a cypress test is not worth it, somebody who have full access to cypress tools can do a better job than me. I want to focus on UI-Component issue. |
raisedadead
left a comment
There was a problem hiding this comment.
One test is worth the time wasted in fixing a regression. Keeping this on hold for a quick test.
Is anyone on @freeCodeCamp/dev-team willing to take it up? I might beat you to it over the week.
Co-authored-by: Oliver Eyton-Williams <[email protected]>
|
A Cypress test for this is probably overkill. All we really care about is the value of the A jest test with a mocked |
|
Agreed — We want to include tests every time we introduce regressions. |
Needed tests
|
|
Thinking about it, this bug only exists because the logic governing which theme is used is duplicated. It is defined in both editor.tsx and default.tsx, but should only be defined once. |
|
Is there a way to set theme value for not logged in user, without local storage? |
|
Only cookies, to my knowledge, and they're like local storage, but slightly worse (they're transmitted with the request, but there's nothing gained by doing so). Why do you ask? |
|
The current state management ignores |
|
Throwing local storage into the mix complicates things, but fortunately we aren't using it yet, so we don't need to worry about it. Anyways, isn't #48757 going to change this logic in a fairly fundamental way? With that in mind @raisedadead how about we treat this as a hotfix and move the test requirement into #48757 |
|
Sure, as long as it is not forgotten. |
|
I will create issue and link system one to it |
Co-authored-by: auchynnikau <[email protected]>

Checklist:
Update index.md)mainbranch of freeCodeCamp.Closes #48936