Show the details of every insight model in `insights`

Open
#27 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript

Research direction

Start with the existing detail cards for LCPBreakdown, INPBreakdown, CLSCulprits, RenderBlocking and ThirdParties, then read the models listed in the issue and the --category handling. The issue proposes one PR per group but leaves the category naming unresolved. Done means adding actionable detail cards for all 14 listed models and deciding how --category selects them.

Written by the indexing model from the issue text.

Description

Child of #9.

insights shows detail cards for 5 of the 19 DevTools insight models: LCPBreakdown, INPBreakdown, CLSCulprits, RenderBlocking and ThirdParties. #25 lists the state, metricSavings and wastedBytes of all 19 models. But when a model fails, an agent still cannot see what to fix.

Models without details
  • Network and loading: DocumentLatency, LCPDiscovery, NetworkDependencyTree, Cache, ModernHTTP, FontDisplay, ImageDelivery
  • JavaScript: DuplicatedJavaScript, LegacyJavaScript, ForcedReflow
  • Document and rendering: DOMSize, SlowCSSSelector, Viewport, CharacterSet
Proposal
  • One PR per group, to keep each review small.
  • Each card shows the data needed to act. For example, the image URLs and byte savings for ImageDelivery, or the functions and reflow time for ForcedReflow.
Open question

How should --category select the new cards? One kebab-case value per model (forced-reflow, dom-size), or the model key (ForcedReflow)?

Dominant language
TypeScript
Stars
15
Forks
4
Avg merge
1d 17h
Merged PRs (30d)
22

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ChromeDevTools/trace-engine-cli

All issues in ChromeDevTools/trace-engine-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.