Skip to content

Commit

Permalink
Merge branch 'master' into gh-pages
Browse files Browse the repository at this point in the history
# Conflicts:
#	CollectMeasures/build/asset-manifest.json
#	CollectMeasures/build/favicon.ico
#	CollectMeasures/build/index.html
#	CollectMeasures/build/manifest.json
#	CollectMeasures/build/service-worker.js
#	CollectMeasures/package-lock.json
#	CollectMeasures/public/favicon.ico
#	CollectMeasures/public/index.html
#	CollectMeasures/public/manifest.json
  • Loading branch information
bfinzer committed Apr 16, 2024
2 parents 95a483a + 0c1f079 commit 87174e5
Show file tree
Hide file tree
Showing 53 changed files with 20,927 additions and 127 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
self.__precacheManifest = [
{
"revision": "514286746d71cb158812",
"url": "./static/css/main.4d727303.chunk.css"
},
{
"revision": "514286746d71cb158812",
"url": "./static/js/main.51428674.chunk.js"
},
{
"revision": "8c97409f0ee389fe75da",
"url": "./static/js/runtime~main.8c97409f.js"
},
{
"revision": "77e4c58cec31b472bbbd",
"url": "./static/css/2.57a49592.chunk.css"
},
{
"revision": "77e4c58cec31b472bbbd",
"url": "./static/js/2.77e4c58c.chunk.js"
},
{
"revision": "ecaddb09844ad461ecac777995545eed",
"url": "./static/media/dxicons.ecaddb09.woff2"
},
{
"revision": "b51d1bb8df912c9a72f25db27706b9e8",
"url": "./static/media/dxicons.b51d1bb8.ttf"
},
{
"revision": "b4f8a75314de92e91d6e29ff27abe9cd",
"url": "./static/media/dxicons.b4f8a753.woff"
},
{
"revision": "3bc254aa44fa73b986f8d90184107de6",
"url": "./index.html"
}
];
5 changes: 5 additions & 0 deletions CollectMeasures/build/static/css/2.57a49592.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions CollectMeasures/build/static/css/2.57a49592.chunk.css.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions CollectMeasures/build/static/css/main.4d727303.chunk.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions CollectMeasures/build/static/js/2.77e4c58c.chunk.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions CollectMeasures/build/static/js/2.77e4c58c.chunk.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions CollectMeasures/build/static/js/main.51428674.chunk.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions CollectMeasures/build/static/js/main.51428674.chunk.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion CollectMeasures/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "getting-started-tutorial",
"name": "collect-measures",
"version": "0.1.0",
"homepage": ".",
"dependencies": {
Expand Down
8 changes: 3 additions & 5 deletions CollectMeasures/src/types-and-constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const pluginParameters = {
name: 'Collect Measures',
version: '0.1',
version: '0.2',
initialDimensions: {
width: 280,
height: 385
Expand All @@ -10,9 +10,7 @@ export const pluginParameters = {
export const collectMeasuresDatasetParams = {
name: 'Collected Measures',
title: 'Collected Measures',
parentCollectionName: 'Samples',
parentCollectionTitle: 'Samples',
childCollectionName: 'Measures',
childCollectionTitle: 'Measures',
collectionName: 'Measures',
collectionTitle: 'Measures',
}

19 changes: 7 additions & 12 deletions CollectMeasures/src/utilities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export function choicesMenu(iPrompt: string, iPlaceHolder: string, iHint: string
* First make sure there is a "Collected Measures" dataset. If not, create one.
* Gather the names of the attributes at the parent level in the chosen dataset.
* Make sure these attribute names are present at the child level of the "Collected Measures" dataset.
* If the parent level of the chosen dataset has multiple cases, make sure there is a parent collection
* in the "Collected Measures" dataset with the attribute "Sample".
* If the parent level of the chosen dataset has multiple cases, make sure there is an attribute "Sample"
* in the "Collected Measures" dataset.
* @return {Promise<boolean>}
*/
export async function guaranteeMeasuresDataset(entityInfo: EntityInfo): Promise<void> {
Expand All @@ -55,15 +55,10 @@ export async function guaranteeMeasuresDataset(entityInfo: EntityInfo): Promise<
title: params.title,
collections: [
{
name: params.childCollectionName,
title: params.childCollectionTitle,
attrs: []
},
{
name: params.parentCollectionName,
title: params.parentCollectionTitle,
name: params.collectionName,
title: params.collectionTitle,
attrs: [
{name: 'Sample', title: 'Sample'},
{name: 'Sample', description: 'Sample number'}
]
}]
}
Expand Down Expand Up @@ -97,7 +92,7 @@ export async function createAttributesInCollectedMeasuresDataset(theStore: Store
if (attrsToAdd.length > 0) {
const createAttrsResult: any = await codapInterface.sendRequest({
action: 'create',
resource: `dataContext[${theParams.name}].collection[${theParams.childCollectionName}].attribute`,
resource: `dataContext[${theParams.name}].collection[${theParams.collectionName}].attribute`,
values: attrsToAdd.map((iName: string) => {
return {name: iName}
})
Expand All @@ -116,7 +111,7 @@ export async function createAttributesInCollectedMeasuresDataset(theStore: Store
})
if (getCasesResult && getCasesResult.success) {
const measuresCollectedSoFar = await numberOfCasesInCollection(
theParams.name, theParams.parentCollectionName),
theParams.name, theParams.collectionName),
items = getCasesResult.values.map((iCase: any) => {
const anItem = iCase.values
anItem.Sample = measuresCollectedSoFar + 1
Expand Down
2 changes: 1 addition & 1 deletion Common/js/build-include.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
window.codapPluginConfig = {
buildNumber: "0064"
buildNumber: "0065"
}
Loading

0 comments on commit 87174e5

Please sign in to comment.