Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/storage-finder-data-generator/MAINTENANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ bun scripts/storage-finder-data-generator/generate.ts \

## Service fields

Field definitions live in `scripts/storage-finder-data-generator/config.ts` (`FIELD_DEFINITIONS`). They map sheet columns to service detail rows (Links, Use Case, Limitations, Permission Settings, Eligibility, Synchronous Access, Alumni Access, Backup). Adjust labels or formatters there if the sheet schema changes.
Field definitions live in `scripts/storage-finder-data-generator/config.ts` (`FIELD_DEFINITIONS`). They map sheet columns to service detail rows (Links, Use Case, Limitations, Permission Settings, Eligibility, Alumni Access, Backup). Adjust labels or formatters there if the sheet schema changes.

## Naming and IDs

Expand Down
38 changes: 0 additions & 38 deletions scripts/storage-finder-data-generator/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ export const FIELD_DEFINITIONS: ServiceFieldDefinition[] = [
weight: 8,
formatter: (value) => toHtmlBlocks(value),
},
{
fieldKey: "field_synchronous_access",
column: "Synchronous Access",
label: "Synchronous Access",
weight: 9,
formatter: (value) => toHtmlBlocks(value),
},
{
fieldKey: "field_backup",
column: "Backup",
Expand Down Expand Up @@ -244,37 +237,6 @@ export const FACET_CONFIGS: FacetConfig[] = [
],
fallback: "all",
},
{
id: "synchronous-access",
name: "Do you need synchronous or simultaneous access to your data?",
description: null,
column: "Synchronous Access",
controlType: "radio",
allowMultipleMatches: true,
choices: [
{
id: "synchronous-access.yes",
name: "Yes",
weight: 0,
},
{
id: "synchronous-access.no",
name: "No",
weight: 1,
},
],
matchers: [
{
pattern: /\b(yes|users can edit|simultaneously)\b/i,
choices: ["synchronous-access.yes"],
},
{
pattern: /\bnot available\b/i,
choices: ["synchronous-access.no"],
},
],
fallback: "all",
},
{
id: "storage-duration",
name: "What is your storage duration need?",
Expand Down
43 changes: 7 additions & 36 deletions src/data/storage-finder/facet-tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,41 +160,12 @@
}
]
},
{
"id": "synchronous-access",
"name": "Do you need synchronous or simultaneous access to your data?",
"control_type": "radio",
"parent": "0",
"weight": "8",
"selected": false,
"description": null,
"choices": [
{
"id": "synchronous-access.yes",
"name": "Yes",
"control_type": "radio",
"parent": "synchronous-access",
"weight": "0",
"selected": false,
"description": null
},
{
"id": "synchronous-access.no",
"name": "No",
"control_type": "radio",
"parent": "synchronous-access",
"weight": "1",
"selected": false,
"description": null
}
]
},
{
"id": "storage-duration",
"name": "What is your storage duration need?",
"control_type": "radio",
"parent": "0",
"weight": "10",
"weight": "8",
"selected": false,
"description": null,
"choices": [
Expand Down Expand Up @@ -223,7 +194,7 @@
"name": "What is the primary purpose for your storage?",
"control_type": "checkbox",
"parent": "0",
"weight": "12",
"weight": "10",
"selected": false,
"description": null,
"choices": [
Expand Down Expand Up @@ -288,7 +259,7 @@
"name": "What is your budget for storage?",
"control_type": "radio",
"parent": "0",
"weight": "14",
"weight": "12",
"selected": false,
"description": null,
"choices": [
Expand Down Expand Up @@ -317,7 +288,7 @@
"name": "What storage capacity do you need?",
"control_type": "radio",
"parent": "0",
"weight": "16",
"weight": "14",
"selected": false,
"description": null,
"choices": [
Expand Down Expand Up @@ -355,7 +326,7 @@
"name": "From where will the data be accessed?",
"control_type": "checkbox",
"parent": "0",
"weight": "18",
"weight": "16",
"selected": false,
"description": null,
"choices": [
Expand Down Expand Up @@ -402,7 +373,7 @@
"name": "Do you have any special requirements or restrictions?",
"control_type": "checkbox",
"parent": "0",
"weight": "20",
"weight": "18",
"selected": false,
"description": null,
"choices": [
Expand Down Expand Up @@ -458,7 +429,7 @@
"name": "What additional features do you need?",
"control_type": "checkbox",
"parent": "0",
"weight": "22",
"weight": "20",
"selected": false,
"description": null,
"choices": [
Expand Down
Loading
Loading