Install and configure Vercel Speed Insights#52
Conversation
…596j9hr764 Initial commit
Co-authored-by: Sum1cares <108294929+Sum1cares@users.noreply.github.com>
…-commit Add CHANGELOG documenting initial commit 7cee904
Co-authored-by: Sum1cares <108294929+Sum1cares@users.noreply.github.com>
Verify NFC commissioning support already present in repository
Document syntax error investigation - no errors found
Co-authored-by: Sum1cares <108294929+Sum1cares@users.noreply.github.com>
…roject Link initial commit reference in changelog
Bumps [flask](https://github.com/pallets/flask) from 2.2.5 to 3.1.3. - [Release notes](https://github.com/pallets/flask/releases) - [Changelog](https://github.com/pallets/flask/blob/main/CHANGES.rst) - [Commits](pallets/flask@2.2.5...3.1.3) --- updated-dependencies: - dependency-name: flask dependency-version: 3.1.3 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
…er/images/stage-2/chip-build-cirque/flask-3.1.3 Bump flask from 2.2.5 to 3.1.3 in /integrations/docker/images/stage-2/chip-build-cirque
…_CHECK_REPORT with CHANGELOG, bump cirque docker version Agent-Logs-Url: https://github.com/Sum1cares/connectedhomeip/sessions/38b0fbf2-cd11-432c-95a7-7e06a56e4b64 Co-authored-by: Sum1cares <108294929+Sum1cares@users.noreply.github.com>
…-repo Fix review feedback from PR project-chip#43589: docs consistency, Docker version bump
Agent-Logs-Url: https://github.com/Sum1cares/connectedhomeip/sessions/e41853ef-f580-4087-863d-e19d63122865 Co-authored-by: Sum1cares <108294929+Sum1cares@users.noreply.github.com>
Add Makefile and project configuration for initial fork setup
Bumps [third_party/perfetto/repo](https://github.com/google/perfetto) from `c1bbc16` to `db10888`. - [Release notes](https://github.com/google/perfetto/releases) - [Commits](google/perfetto@c1bbc16...db10888) --- updated-dependencies: - dependency-name: third_party/perfetto/repo dependency-version: db10888e18390215aa037a10917eac17744855b3 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [third_party/jsoncpp/repo](https://github.com/open-source-parsers/jsoncpp) from `e799ca0` to `3455302`. - [Release notes](https://github.com/open-source-parsers/jsoncpp/releases) - [Commits](open-source-parsers/jsoncpp@e799ca0...3455302) --- updated-dependencies: - dependency-name: third_party/jsoncpp/repo dependency-version: 3455302847cf1e4671f1d8f5fa953fd46a7b1404 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [third_party/cirque/repo](https://github.com/openweave/cirque) from `16e8668` to `550c926`. - [Commits](openweave/cirque@16e8668...550c926) --- updated-dependencies: - dependency-name: third_party/cirque/repo dependency-version: 550c926614cfa07989aee687a80de9c2d036399a dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [natiginfo/action-detekt-all](https://github.com/natiginfo/action-detekt-all) from 1.23.7 to 1.23.8. - [Release notes](https://github.com/natiginfo/action-detekt-all/releases) - [Commits](natiginfo/action-detekt-all@1.23.7...1.23.8) --- updated-dependencies: - dependency-name: natiginfo/action-detekt-all dependency-version: 1.23.8 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
…ty/perfetto/repo-db10888 Bump third_party/perfetto/repo from `c1bbc16` to `db10888`
There was a problem hiding this comment.
Pull request overview
Note
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Adds client-side Vercel Speed Insights (and Web Analytics) scripts to the Sphinx docs site, along with documentation and various repo maintenance updates (deps, workflows, submodules).
Changes:
- Add Vercel Speed Insights + Web Analytics JS injection via Sphinx
html_js_files, plus docs describing setup/verification. - Update several dependencies (docs and Docker image requirements) and bump multiple submodule SHAs.
- Add repo meta/docs (Makefile, changelog, project config, syntax report) and adjust CI/workflows.
Reviewed changes
Copilot reviewed 21 out of 21 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| third_party/simw-top-mini/repo | Bumps submodule commit SHA. |
| third_party/openthread/repo | Bumps submodule commit SHA. |
| third_party/libdatachannel/repo | Bumps submodule commit SHA. |
| third_party/cirque/repo | Bumps submodule commit SHA. |
| integrations/docker/run.sh | Improves help text for docker runner. |
| integrations/docker/images/stage-2/chip-build-cirque/requirements_nogrpc.txt | Updates Flask pin for Cirque Docker image requirements. |
| integrations/docker/images/base/chip-build/version | Bumps Docker image version metadata for the Flask update. |
| docs/requirements.txt | Updates doc build dependencies (myst-parser, breathe). |
| docs/conf.py | Injects analytics + speed insights JS into Sphinx output. |
| docs/_static/js/vercel-speed-insights.js | Adds Speed Insights loader script. |
| docs/_static/js/vercel-analytics.js | Adds Web Analytics loader script. |
| docs/VERCEL_SPEED_INSIGHTS.md | Documents Speed Insights usage and enablement steps. |
| docs/VERCEL_ANALYTICS.md | Documents Web Analytics usage and enablement steps. |
| config/project.yaml | Adds fork-level project configuration metadata. |
| SYNTAX_CHECK_REPORT.md | Adds a repository syntax-check report doc. |
| README.md | Adds changelog link. |
| Makefile | Adds convenience developer targets (build/test/lint/etc.). |
| CHANGELOG.md | Adds an initial changelog entry for the fork. |
| .github/workflows/kotlin-style.yaml | Bumps detekt action version. |
| .github/workflows/docker-image.yml | Adds a Docker build workflow. |
| .github/workflows/check-data-model-directory-updates.yaml | Adjusts Python build flags; adds a 1.5.1 data_model check. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| # -- Vercel Web Analytics and Speed Insights ---------------------------------- | ||
|
|
||
| html_js_files = [ | ||
| "js/vercel-analytics.js", | ||
| "js/vercel-speed-insights.js", | ||
| ] |
| on: | ||
| push: | ||
| branches: [ "master" ] | ||
| pull_request: | ||
| branches: [ "master" ] |
There was a problem hiding this comment.
Fixed in the latest commit — branch filters now include both "main" and "master" for both push and pull_request triggers.
| html_js_files = [ | ||
| "js/vercel-analytics.js", | ||
| "js/vercel-speed-insights.js", | ||
| ] |
There was a problem hiding this comment.
Fixed in the latest commit — changed to globals().get("html_js_files", []) + [...] so existing entries are preserved rather than overwritten.
Vercel Speed Insights Integration
Successfully implemented Vercel Speed Insights for the connectedhomeip documentation site.
Overview
This project is a Sphinx-based documentation site for the Matter (formerly Project CHIP) IoT framework. The site already had Vercel Web Analytics integrated, and this implementation adds Vercel Speed Insights to monitor real-time performance metrics.
Implementation Approach
Since this is a Sphinx documentation site (Python-based static site generator) without a Node.js framework or package.json, I used the vanilla JavaScript approach as specified in the Vercel Speed Insights documentation for non-framework projects.
Changes Made
1. Created Speed Insights JavaScript Integration
File:
docs/_static/js/vercel-speed-insights.jsvercel-analytics.jsfile/_vercel/speed-insights/script.jsas per Vercel documentation2. Updated Sphinx Configuration
File:
docs/conf.pyjs/vercel-speed-insights.jsto thehtml_js_filesconfiguration array3. Created Documentation
File:
docs/VERCEL_SPEED_INSIGHTS.mdTechnical Details
The implementation follows the Vercel documentation's recommendation for vanilla HTML/JavaScript projects:
deferattribute for optimal page performanceHow to Enable
After deployment to Vercel:
What Gets Tracked
Once enabled, Speed Insights will monitor:
These Core Web Vitals provide insight into real user performance and help identify optimization opportunities.
Validation
python3 -m py_compiledocs/_static/js/)No Package Dependencies
Since this is a Sphinx/Python documentation site without a Node.js framework:
Compatibility
This implementation is compatible with:
View Project · Speed Insights
Created by mrkingswingdaddy-2420 with Vercel Agent