# Feature tracking — independent pass 4

Scope: full static frontend and API source traversal, then targeted semantic review of dashboard/editor controls and the shared ingestion contract. Performed separately from the initial action-instrumentation generator. Source is changing concurrently; this records findings, not a claim that every finding has already been fixed.

## Method and evidence

- Parsed all 402 frontend TS/TSX/JS/JSX source files, including app routes, components, hooks and library callbacks. Located 1,431 JSX event/callback attributes; separately extracted native options, document/window listeners, and anchors without `onClick`. No source file was omitted from the traversal because it lacked a click handler.
- Read all 503 API source files in the full route/method traversal and classified 459 router/app method registrations, including test fixtures and library-mounted routes. These counts describe source candidates, not distinct user actions or live endpoint counts.
- Reviewed the concrete customer-facing controls in both editor implementations; shared sidebar, preview, composer, model, attachments, assets, forms, database, account, notification, settings and cloud components; and the feature schema/ingestion/scope-validation/report helpers. The audit intentionally includes callback-driven and keyboard behavior that a click-only inventory misses.
- Machine-readable traversal receipt: `feature-tracking-pass-4-controls.json`. Contains source constants and source expressions only; no customer data, tokens, or runtime payloads.
- Admin/support controls, public marketing, docs, and background/runtime implementation callbacks are classified separately. Public-site tracking and other admin tabs belong to parallel work. Text keystrokes, rendered content, custom names/roles, URLs, filenames, domains, prompt text, selection content and PII must never become props.

## Findings delivered to instrumentation owner

| Finding | Concrete locations | Required result |
| --- | --- | --- |
| Native navigation/download links omitted | AssetsPanel source/open file; PaperAssetLightbox; ProjectFilesPanel; PublishPanel live link; GitHubSection repository link; HostingSection deployed URL/domain; PaymentsSection Stripe links; SeoSection issue links; MessageActions/SearchRow references; project picker create link; deploy-toast links | Explicit stable action per source-controlled link; never capture href |
| Runtime options merged into one action | Sidebar groups and destination children; model choices; notification preference catalog; plans; database types/boolean; form field types; analytics privacy audience/consent/position/jurisdiction; environment selectors; filters and usage thresholds | Enumerate each controlled option as a readable inventory action or bounded enum bucket surfaced by aggregation. Custom user-defined values stay excluded |
| Keyboard semantic activations missed | HomepageComposer Enter; QuestionCard Escape/Ctrl+Enter; source-picker Enter; prompt-queue Enter/Escape; search palette Enter; DesignEditor font ArrowUp/Down and submit/hotkeys; TeamSection credit cap Enter; HostingSection add-domain Enter; settings tab arrows | Track shared semantic callbacks or explicit shortcuts without double counting native button keyboard click |
| Gesture handlers hidden behind spreads | usePreviewResize divider/edges via PaperPreviewResizeHandles | Track pointer/keyboard resize completion or invocation at hook boundary; avoid move-per-pixel event volume |
| Existing heatmap captures customer content | client.ts onDocClick reads innerText/aria-label for all tracked app paths despite marketing-only comment | Restrict heatmap clicks to public pages or remove content capture on authenticated app surfaces |
| Authenticated unload loses events | client.ts flush(true) uses sendBeacon without bearer identity; API rejects anonymous feature_used | Authenticated keepalive fetch for feature-containing unload batches, preserving queue's single drain |
| Non-actions inflate counts | DesignEditor stopPropagation-only toolbar/font/color containers; mobile sidebar propagation container; no-op drops | Exclude propagation implementation containers and invalid/no-op gesture branches |
| Canvas bridge actions outside JSX | DesignEditor selection/text commit/style persistence and hotkeys | Stable selection/edit-type/action categories at bridge/commit boundary, excluding text/style content |

No action-count completeness claim follows from the raw control/route totals. The final canonical inventory count must come from the synchronized frontend/API catalog after these findings are resolved. Root pass 5 reconciles this receipt against the final catalog.

## Features UI implementation and design brief

Primary task: operational admin dashboard, high density and trust. Reader: CoDuck operator comparing adoption in a selected period, then expanding an individual option to inspect history.

Direction: Enterprise Control Plane within the existing CoDuck Paper dashboard. Existing Paper surfaces/text/border/chart tokens, existing Inter typography chosen for visual continuity, tabular numbers, existing 12–28px label/metric scale, 16/20px content padding, 6px input radius, existing blue/green/amber chart semantics. No new font, decorative elevation, gradient, icon system or animation. Native details disclosure and existing chart hover/focus behavior only.

Layout: one searchable feature → area → action ledger with users, active-user share, distinct projects and invocation counts at each level. Expanded rows mount small daily hover charts only when visible. Separate workspace observed-use/create metrics, per-user distribution and a collapsed complete per-user count table with opaque admin account links. Successful creation coverage is independent from use coverage. Historical build/publish/tool panels remain, with their narrower activity denominator explicitly named. Source-based human area labels remove implementation names.

States: missing additive API field has a truthful collecting message; never-observed counts remain dashes; observed zeros remain zero. Per-action trackingSince is shown independently. Every usage value respects admin number privacy; charts and distribution do not render hidden values. Native searchable filter, focus-visible inherited outlines, accessible disclosures, responsive horizontal ledger region and 7/30/90 day selector.

Checks so far: focused FeaturesTab ESLint passed. Full frontend TypeScript ran during the parallel instrumentation edit and reported missing not-yet-written trackFeatureAction/featureAction exports; no FeaturesTab errors. Root owns final integrated type/build/tests and actual paired PR-environment screenshots.

Anti-slop pre-browser check: 0/10 slop (existing product tokens and compact disclosure ledger; no decoration); 8/10 distinctiveness (CoDuck's approved Paper system plus complete option-level evidence). These are code/design assessments, not completed visual proof. Browser screenshots and light/dark/mobile/hover/number-privacy checks remain required before release.
