Repository navigation
feat(perf): CrUX field data in the Performance panel - #34
Merged
Merged
Conversation
…api key Pure logic in src/lib/crux.ts: URL or origin, phone / desktop / all devices, p75 and distributions rated on the existing web.dev thresholds, history series, origin fallback when the URL has no data, actionable errors, and a one-day cache. The key is sealed with llm-connect's sealedStore in its own IndexedDB database and sent in the X-Goog-Api-Key header, never in a URL.
…tions Metric rows with p75, a good / needs improvement / poor bar with its shares in text, the collection period, a p75 sparkline and the tab's lab value beside each field value. Without a key, a pointer to Options, where the key is saved, tested and removed. The field p75 also goes into the Performance Copy for agent report.
# Conflicts: # PRODUCT.md # README.md # src/ui/panels/inspect.tsx # src/ui/styles.css # tests/e2e/run.mjs
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.
Field data from the Chrome UX Report API in the Performance panel: p75 and good / needs improvement / poor distribution for LCP, INP, CLS, FCP and TTFB, URL or origin, phone / desktop / all, weekly history sparklines, comparison with the lab value of the tab, Copy for agent. The optional API key is set in Options, sealed on device like the AI key, and sent in the X-Goog-Api-Key header (never in a URL). No host permission needed (the API answers CORS for extension origins). Local hosts are never sent.
Closes #30