Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(components): Create LessonTabs #2394
feat(components): Create LessonTabs #2394
Changes from all commits
2610195
6bcfd85
6accfc5
8595730
76c7262
bd5ffb6
2a5df87
d9e1efe
c712724
0dd1d4d
db7266c
a78c25e
0cd3e52
ba48999
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might as well add this path to the constants.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The exercises shouldn't be under/exercises
but something like/curriculum/js0/exercises
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, i also think the mentor path needs a bit more thought!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@flacial Can you explain your reasoning on why the above should mean that we shouldn't make a
/exercises
constant?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought
/exercises/js0
would make things inconsistent with the way we manage things that are related to a lesson (e.g, challenges) and thus it should be changed to something like/curriculum/js0/exercises
. But it appears the lesson submissions are under/review/js0
.I'l create one for
/exercises
in a different PR as this is merged.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not understanding the reasoning -- even if the path is
/curriculum/js0/exercises
, why do you think a/exercises
constant should still not be made for that?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided not to add that constant because, based on the possibility of introducing inconsistency in how we manage things that are related to a lesson, we could change the exercises' paths before launching DOJO. I was wrong as we already have the
/review/[lessonSlug]
path.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking that since we are going to need
/exercises
in the path it would be a good idea to make the constant anyway(which I see you note you'll do in another PR). Whether the path is/curriculum/js0/exercises
or/exercises/js0
it needs/exercises
. The reason I think/exercises
should be a constant is because of its high potential for reusability -- if you search the path/curriculum
for example, you can find a lot of results of its usage,https://github.com/garageScript/c0d3-app/search?p=4&q=%2Fcurriculum
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this idea. By creating the exercises constant, we can join constants to create paths like the following
CURRICULUM_PATH/[lessonSlug]/EXERCISES_PATH
.