Skip to content

Commit

Permalink
Made container = true on all new concepts, modified world view to dis…
Browse files Browse the repository at this point in the history
…play container=true, added onboarding type. #70
  • Loading branch information
kwokwilliam committed Jun 27, 2018
1 parent 367129c commit 0170943
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
3 changes: 2 additions & 1 deletion src/data/ConceptAbbreviations.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ export const g = {

export const t = {
semantic: "semantic",
template: "template"
template: "template",
onboarding: "onboarding"
}

export default g;
24 changes: 12 additions & 12 deletions src/data/ConceptMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export const conceptInventory = {
future: []
},
should_teach: true,
container: false,
type: t.semantic
container: true,
type: t.onboarding
},
[g.dataTypes]: {
dependencies: [g.howCodeRuns],
Expand All @@ -24,7 +24,7 @@ export const conceptInventory = {
future: []
},
should_teach: true,
container: false,
container: true,
type: t.semantic
},
[g.printStatements]: {
Expand All @@ -37,7 +37,7 @@ export const conceptInventory = {
future: []
},
should_teach: true,
container: false,
container: true,
type: t.semantic
},
[g.variables]: {
Expand All @@ -50,7 +50,7 @@ export const conceptInventory = {
future: []
},
should_teach: true,
container: false,
container: true,
type: t.semantic
},
[g.arithmeticOperators]: {
Expand All @@ -63,7 +63,7 @@ export const conceptInventory = {
future: []
},
should_teach: true,
container: false,
container: true,
type: t.semantic
},
[g.relationalOperators]: {
Expand All @@ -76,7 +76,7 @@ export const conceptInventory = {
future: []
},
should_teach: true,
container: false,
container: true,
type: t.semantic
},
[g.variableSwap]: {
Expand All @@ -89,7 +89,7 @@ export const conceptInventory = {
future: []
},
should_teach: true,
container: false,
container: true,
type: t.template
},
[g.digitProcessing]: {
Expand All @@ -102,7 +102,7 @@ export const conceptInventory = {
future: []
},
should_teach: true,
container: false,
container: true,
type: t.template
},
[g.floatEquality]: {
Expand All @@ -115,7 +115,7 @@ export const conceptInventory = {
future: []
},
should_teach: true,
container: false,
container: true,
type: t.template
},
[g.conditionals]: {
Expand All @@ -128,7 +128,7 @@ export const conceptInventory = {
future: []
},
should_teach: true,
container: false,
container: true,
type: t.semantic
},
[g.findMaxMin]: {
Expand All @@ -141,7 +141,7 @@ export const conceptInventory = {
future: []
},
should_teach: true,
container: false,
container: true,
type: t.template
},
};
Expand Down
2 changes: 1 addition & 1 deletion src/ui/koconut/containers/WorldView.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class WorldView extends Component {
* @returns {Array.<*>}
*/
getOrderedConcepts(): ConceptKnowledge[] {
return MasteryModel.model.filter((concept) => concept.teach && !concept.container).sort(
return MasteryModel.model.filter((concept) => concept.teach && concept.container).sort(
(a, b) => (b.dependencyKnowledge / b.knowledge -
a.dependencyKnowledge / a.knowledge));
}
Expand Down

0 comments on commit 0170943

Please sign in to comment.