Skip to content

Commit 0f076ec

Browse files
fix(init): add reactFeatures to feature display info
Companion change for getsentry/cli-init-api#67. The server now sends reactFeatures as a known feature for React projects. Add it to FEATURE_INFO with a human-readable label and hint, and to FEATURE_DISPLAY_ORDER so it renders correctly in the multi-select prompt.
1 parent 915f2bc commit 0f076ec

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)