feat: gateway and reports for desktop product insights - #34
Merged
Conversation
Deploying scientfactory-website with
|
| Latest commit: |
7bea945
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://39df9a1c.scientfactory-website.pages.dev |
| Branch Preview URL: | https://feat-analytics-insights-2026.scientfactory-website.pages.dev |
Contributor
Author
|
Coordinated desktop producer: ScientFactory/scient-desktop#259 . Measurement definitions: ScientFactory/Scient#109 . Deploy this compatible gateway before releasing the desktop producer. No deployment or dashboard activation performed. |
This was referenced Sep 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Accept the desktop revision-3 allowlisted insight contract, retaining revision-2 compatibility. Add aggregate-only D1 reports and planned PostHog insights for feature visits, repeat days, provider/model usage, readiness and token coverage. Missing counts remain null; reports do not claim total billing or unique people.
Documentation and source-version impact
Updated README and a short Privacy-page description of provider/model categories and reported token counts. Generated contract and corpus come from the coordinated desktop candidate; the measurement definitions live in the coordinated Scient plan PR. Links follow below.
Validation
bun run checkQuality Review
Independent read-only review verified D1 missing-count semantics and caught PostHog numeric-property conversion, now explicit. The gateway remains strict; private labels and unexpected numeric properties are rejected. No production data was queried or changed.
Integration Readiness Review
Draft pending human preview and CI. This gateway must be deployed before the coordinated desktop revision-3 release. Planned insights are definitions, not activated dashboards. Prepared with Codex API tooling and independent read-only review.
Deployment impact
No deploy or gate change performed. Existing ingestion/export defaults remain unchanged. This prepares validation and reports; it does not assert that new events are already arriving.