Skip to content

Commit a83af7a

Browse files
rdonigianCarsonF
authored andcommitted
add approved step header aliases
1 parent 72612c6 commit a83af7a

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

src/components/pnp/findStepColumns.ts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,23 @@ import { type PnpExtractionResult, PnpProblemType } from './extraction-result';
77
import { type PlanningSheet } from './planning-sheet';
88
import { type ProgressSheet } from './progress-sheet';
99

10+
const ApprovedCustomSteps = new Map<string, Step>([
11+
['draft & keyboard', Step.ExegesisAndFirstDraft],
12+
['first draft', Step.ExegesisAndFirstDraft],
13+
['exegesis, 1st draft, keyboard', Step.ExegesisAndFirstDraft],
14+
['internalization & first draft', Step.ExegesisAndFirstDraft],
15+
['exegesis 1st draft & keybrd', Step.ExegesisAndFirstDraft],
16+
['first draft & keyboard', Step.ExegesisAndFirstDraft],
17+
['exegesis, 1st draft. keyboard', Step.ExegesisAndFirstDraft],
18+
['team check & 1st testing', Step.TeamCheck],
19+
['team check & revision', Step.TeamCheck],
20+
['team check & 1st test', Step.TeamCheck],
21+
['field test', Step.CommunityTesting],
22+
['community check', Step.CommunityTesting],
23+
['community review', Step.CommunityTesting],
24+
['community testing & revision', Step.CommunityTesting],
25+
]);
26+
1027
/**
1128
* Fuzzy match available steps to their column address.
1229
*/
@@ -21,7 +38,9 @@ export function findStepColumns(
2138
.walkRight()
2239
.filter((cell) => !!cell.asString)
2340
.map((cell) => ({
24-
label: cell.asString!.trim(),
41+
label:
42+
ApprovedCustomSteps.get(cell.asString!.trim().toLowerCase()) ??
43+
cell.asString!,
2544
column: cell.column,
2645
cell,
2746
}))

0 commit comments

Comments
 (0)