Refresh UI size figures and test the Metrics script loading

Open Beginner friendly
#233 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust

Research direction

Start with docs/design/traces-page.md and docs/design/dashboards-page.md and compare their quoted sizes with the actual assets. Then inspect the browser tests and the Metrics page’s script loading; add a test for the specified failure message. Done when both docs show accurate sizes and the browser test checks the message when the script fails to load.

Written by the indexing model from the issue text.

Description

area:ui chore priority:low

As the maintainer,
I want the design docs' size figures to be true and the on-demand Metrics script covered by a browser test,
so that I can trust the docs when planning UI work and notice if the Metrics page stops loading.

Acceptance criteria

  • Given docs/design/traces-page.md and docs/design/dashboards-page.md, when I read their size figures, then they match the real asset sizes.
  • Given the browser tests, when the Metrics page script fails to load, then the page shows "The metrics page did not load. Reload the page, then try again." and a test checks it.

Success signal: no stale size figure is quoted in a UI story plan.
Out of scope: changing the budgets.
Open questions: none.

Technical notes

From #230 (PR #231), which moved the Metrics code into metrics.js and could not touch e2e/.

Dominant language
Rust
Stars
0
Forks
0
Avg merge
40m
Merged PRs (30d)
91

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 jdrouet/tinyobserve

All issues in jdrouet/tinyobserve

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.