Skip to content

Commit

Permalink
Reorder catalogs co copilot and "block used count times" are at the t…
Browse files Browse the repository at this point in the history
…op. (#9992)
  • Loading branch information
thsparks authored Apr 30, 2024
1 parent 86dfad5 commit 1234c4f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
40 changes: 20 additions & 20 deletions common-docs/teachertool/catalog-shared.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
{
"criteria": [
{
"id": "59AAC5BA-B0B3-4389-AA90-1E767EFA8563",
"use": "block_used_n_times",
"template": "${Block} used ${count} times",
"description": "This block was used the specified number of times in your project.",
"docPath": "/teachertool",
"params": [
{
"name": "block",
"type": "block",
"paths": ["checks[0].blockCounts[0].blockId"]
},
{
"name": "count",
"type": "number",
"default": 1,
"paths": ["checks[0].blockCounts[0].count"]
}
]
},
{
"id": "D21D76A2-D9FD-4F9B-B0AC-973CB870EA78",
"use": "variable_set",
Expand Down Expand Up @@ -32,26 +52,6 @@
}
]
},
{
"id": "59AAC5BA-B0B3-4389-AA90-1E767EFA8563",
"use": "block_used_n_times",
"template": "${Block} used ${count} times",
"description": "This block was used the specified number of times in your project.",
"docPath": "/teachertool",
"params": [
{
"name": "block",
"type": "block",
"paths": ["checks[0].blockCounts[0].blockId"]
},
{
"name": "count",
"type": "number",
"default": 1,
"paths": ["checks[0].blockCounts[0].count"]
}
]
},
{
"id": "B8987394-1531-4C71-8661-BE4086CE0C6E",
"use": "n_loops",
Expand Down
2 changes: 1 addition & 1 deletion teachertool/src/transforms/loadCatalogAsync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import * as Actions from "../state/actions";
import { CatalogCriteria } from "../types/criteria";

const prodFiles = [
"/teachertool/catalog.json", // target-specific catalog
"/teachertool/catalog-shared.json", // shared across all targets
"/teachertool/catalog.json", // target-specific catalog
];

export async function loadCatalogAsync() {
Expand Down

0 comments on commit 1234c4f

Please sign in to comment.