ui-kit: Storybook sends usage telemetry from dev, build and the Vitest Storybook projects

Aperta Adatta ai principianti
#4,598 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
82/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
storybook, typescript

Direzione di ricerca

La modifica va in packages/ui-kit/.storybook/main.ts, accanto all'impostazione esistente core.allowedHosts, intorno alla riga 46. Imposta lì core.disableTelemetry su true, poi controlla il test unitario di configurazione richiesto dalla issue, che deve leggere quel file e verificare il flag. È completato quando il test passa con il flag e fallisce quando il flag viene rimosso, e STORYBOOK_TELEMETRY_DEBUG=1 non stampa nulla durante un'esecuzione di Storybook.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: ui-kit type: chore

Context

Found while building #4209. The kit's Storybook configuration (packages/ui-kit/.storybook/main.ts:46, core: { allowedHosts: true }) does not set disableTelemetry, and no workflow under .github/workflows/ or script under scripts/ sets STORYBOOK_DISABLE_TELEMETRY. Storybook therefore sends its anonymous usage telemetry from storybook dev, storybook build and the Vitest Storybook projects (test-storybook, test-storybook:ci), on contributors' machines and on CI runners.

The repository's test rule is that tests make no network call except loopback (AGENTS.md, "Testing expectations"). The preload enforces it for Bun tests (scripts/test-network-preload.ts). The Vitest browser projects run outside that preload, so nothing catches this request.

Scope

  • Set core.disableTelemetry: true in packages/ui-kit/.storybook/main.ts, next to allowedHosts.

Out of scope

  • Other network behaviour of Storybook addons, such as the MCP endpoint, which serves on localhost.
  • The pinned font download (bun run capture:fonts), which is an explicit, separate step.

Acceptance criteria

  • packages/ui-kit/.storybook/main.ts sets core.disableTelemetry: true.
  • A unit test reads the Storybook main configuration and asserts the flag. It fails when the flag is removed.

Verification

bun run test packages/ui-kit for the configuration test. A Storybook run shows no telemetry request (for example, STORYBOOK_TELEMETRY_DEBUG=1 prints nothing).

Contract impact

None.

Lingua principale
TypeScript
Stelle
5
Fork
0
Merge medio
7h 22m
PR unite (30g)
600

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di schlessera/brain-kit

Tutte le issue di schlessera/brain-kit

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.