Skip to content

feat(misc): prompt analytics earlier in init flow#35922

Open
jaysoo wants to merge 1 commit into
masterfrom
feat/capture-analytics-prompt-stat
Open

feat(misc): prompt analytics earlier in init flow#35922
jaysoo wants to merge 1 commit into
masterfrom
feat/capture-analytics-prompt-stat

Conversation

@jaysoo

@jaysoo jaysoo commented Jun 9, 2026

Copy link
Copy Markdown
Member

This PR moves the analytics prompt for nx init to after the Cloud prompt so we match the CNW experience. Currently, it will prompt when the first task is run.

Screenshot 2026-06-09 at 5 04 08 PM

Also captures response.

Related Issue(s)

N/A


View session information ↗

## Current Behavior
recordStat sends cloud prompt result only. Analytics opt-in answer not tracked. nx init never asks analytics prompt.

## Expected Behavior
- complete stat includes analyticsPrompt: 'yes' | 'no' | 'unset'.
- CNW: thread determineAnalytics answer into meta.
- nx init: ask analytics opt-in, persist to nx.json, record answer.
- 'unset' = not asked (CI / non-interactive).
@netlify

netlify Bot commented Jun 9, 2026

Copy link
Copy Markdown

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit d2d20b0
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/6a28831143ceba0009958780
😎 Deploy Preview https://deploy-preview-35922--nx-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jun 9, 2026

Copy link
Copy Markdown

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit d2d20b0
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/6a28831149d62d0008bbbaa0
😎 Deploy Preview https://deploy-preview-35922--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud

nx-cloud Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit d2d20b0

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 38m 52s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 3s View ↗
nx-cloud record -- pnpm nx-cloud conformance:check ✅ Succeeded 47s View ↗
nx build workspace-plugin ✅ Succeeded <1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 16s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 5s View ↗

☁️ Nx Cloud last updated this comment at 2026-06-09 22:11:51 UTC

@jaysoo jaysoo changed the title feat(misc): send analytics opt-in answer in init and cnw stats feat(misc): prompt analytics earlier in init flow Jun 9, 2026
@jaysoo jaysoo marked this pull request as ready for review June 9, 2026 21:23
@jaysoo jaysoo requested a review from a team as a code owner June 9, 2026 21:23
@jaysoo jaysoo requested a review from leosvelperez June 9, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant