mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-09 16:05:42 +00:00
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GLnp4v49BozkDd3KeWn5Q3
16 lines
655 B
TypeScript
16 lines
655 B
TypeScript
import { logFeatureUsage } from '$lib/utils/featureUsage'
|
|
|
|
// Anonymous counters for editing a workspace script's code without leaving the flow editor.
|
|
// Same rules as every other `logFeatureUsage` caller: aggregated counts only, and the two keys
|
|
// below are the whole vocabulary — no script path, hash, language or code ever reaches here.
|
|
|
|
export type StepScriptEditEvent =
|
|
/** The drawer was opened on the step's script. */
|
|
| 'opened'
|
|
/** A new version of that script was deployed from the drawer. */
|
|
| 'saved'
|
|
|
|
export function logStepScriptEdit(event: StepScriptEditEvent): void {
|
|
logFeatureUsage('flow_step', 'script_edit', { key: event })
|
|
}
|