You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pages/storage-finder/README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ This means **content editors only need to update the Google Sheet** — the next
42
42
> [!NOTE]
43
43
> The workflow only commits when the generated output differs from what is already in the repository. If the sheet has not changed since the last run, no commit is made.
44
44
45
-
### Triggering a manual sync
45
+
### Triggering a Manual `sync`
46
46
47
47
If you need changes to appear immediately rather than waiting for Saturday's scheduled run:
48
48
@@ -69,7 +69,7 @@ bun scripts/storage-finder-data-generator/generate.ts \
69
69
70
70
If you do not have Bun installed, get it from [https://bun.sh/](https://bun.sh/), or run the script with `pnpm dlx tsx` instead of `bun`.
71
71
72
-
### Environment variable
72
+
### Environment Variable
73
73
74
74
The default Google Sheet URL is baked into `scripts/storage-finder-data-generator/constants.ts`. To override it without modifying the source, set the `STORAGE_FINDER_SHEET_URL` environment variable before running the script:
75
75
@@ -78,7 +78,7 @@ STORAGE_FINDER_SHEET_URL="https://..." bun scripts/storage-finder-data-generator
78
78
--output src/data/storage-finder
79
79
```
80
80
81
-
### CLI flags summary
81
+
### CLI Flags Summary
82
82
83
83
| Flag | Description |
84
84
|------|-------------|
@@ -126,18 +126,18 @@ When a service is selected, the following fields appear as rows in the compariso
126
126
127
127
## Making Changes
128
128
129
-
### Updating service information
129
+
### Updating Service Information
130
130
131
131
Edit the corresponding row in the Google Sheet, then regenerate the data. Service IDs are automatically generated as URL-safe slugs from the `Title` column. If a title is duplicated, subsequent entries get a numeric suffix (e.g., `my-service-2`).
132
132
133
-
### Adding a new service
133
+
### Adding a New Service
134
134
135
135
Add a new row to the Google Sheet with a unique value in the `Title` column and fill in all relevant columns. Then regenerate the data.
136
136
137
137
> [!WARNING]
138
138
> Every cell in a row should be filled in accurately. The generator uses regex patterns to map cell text to facet choices. A blank cell causes the generator to apply the fallback behavior for that question (usually matching all choices for that facet, keeping the service visible regardless of what users select for that question).
139
139
140
-
### Adding or changing a question
140
+
### Adding or Changing a Question
141
141
142
142
1. If the question requires a new signal, add a column to the Google Sheet and populate it for all services.
143
143
2. In `scripts/storage-finder-data-generator/config.ts`, add a new entry to the `FACET_CONFIGS` array (or modify an existing one):
@@ -151,7 +151,7 @@ Add a new row to the Google Sheet with a unique value in the `Title` column and
151
151
-`allowMultipleMatches: true` — required on radio facets that legitimately match more than one choice
152
152
3. Regenerate and verify in the app.
153
153
154
-
### Adding or changing a service detail field
154
+
### Adding or Changing a Service Detail Field
155
155
156
156
1. Ensure the column exists in the Google Sheet and is populated.
157
157
2. In `scripts/storage-finder-data-generator/config.ts`, add or modify an entry in `FIELD_DEFINITIONS`:
0 commit comments