Skip to content

Commit 71ab7bc

Browse files
fix(init): add reactFeatures to feature display info (#658)
## Summary Companion change for getsentry/cli-init-api#67 (fixes getsentry/cli-init-api#65). The server now sends `reactFeatures` as a known feature for React projects. Without this change, the CLI would display the raw camelCase string `"reactFeatures"` in the multi-select prompt. ## Changes - Added `reactFeatures` to `FEATURE_INFO` in `src/lib/init/clack-utils.ts` with label `"React Features"` and hint `"Redux, component tracking, source maps, and integrations"` - Added `reactFeatures` to `FEATURE_DISPLAY_ORDER` so it appears in a consistent position in the multi-select prompt ## Testing All 11 clack-utils tests pass.
1 parent 58b766d commit 71ab7bc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib/init/clack-utils.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ const FEATURE_INFO: Record<string, { label: string; hint: string }> = {
6060
label: "User Feedback",
6161
hint: "Collect in-app user feedback and reports",
6262
},
63+
reactFeatures: {
64+
label: "React Features",
65+
hint: "Redux, component tracking, source maps, and integrations",
66+
},
6367
};
6468

6569
export function featureLabel(id: string): string {
@@ -81,6 +85,7 @@ const FEATURE_DISPLAY_ORDER = [
8185
"crons",
8286
"aiMonitoring",
8387
"userFeedback",
88+
"reactFeatures",
8489
];
8590

8691
/** Sort features into canonical display order for the multi-select prompt. */

0 commit comments

Comments
 (0)