Repository navigation
quiet-endpoints: read status from status parts, not an item's own name - #415
Open
agorischek wants to merge 3 commits into
Open
agorischek wants to merge 3 commits into
agorischek wants to merge 3 commits into
Conversation
The check failed any entity whose text held a status word, so a route /Library/Movies/Added or a member named Removed failed at Before and After. The probe now records the text of status parts (data-change-status, the kit's badges, status lines and tabs) apart; a status word there fails, and one elsewhere fails only when the item's own ID, label and data don't hold it. Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
Active issues cause false quiet-endpoints failures for hidden or nested status text and deeply nested data, while repeated full-collection scans introduce a scalability regression.
4 open issues
What changed in this PR
Updates quiet-endpoints to distinguish change-status indicators from words in an item’s own content.
Changes:
- Records status-part text separately from entity text.
- Checks unmarked status words against item content in both revisions.
- Adds regression coverage and updates documentation.
| File | Description |
|---|---|
packages/renderers/testing/test/helpers.test.mjs |
Covers names, badges, and unmarked status text. |
packages/renderers/testing/src/types.ts |
Adds optional status-part samples. |
packages/renderers/testing/src/measure/entities.ts |
Collects text from status elements. |
packages/renderers/testing/src/checks/comparison/endpoints.ts |
Separates status indicators from item content. |
packages/renderers/testing/src/checks/catalog.ts |
Updates the check’s description. |
packages/renderers/harness/browser/status-parts.spec.ts |
Adds browser coverage for status sampling. |
changelog.d/415.md |
Documents the endpoint-check correction. |
Review effort: Balanced
…n and nested status parts Addresses review: names are indexed once per check and collected only when a status word asks; data is walked iteratively without a depth limit; a nested entity or a part only assistive technology hears is never a status part. Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This branch has not been deployed
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.

What changed
The renderer check No status text at the endpoints (
quiet-endpoints) matched status words (Added, Removed, Modified, Renamed, Moved) anywhere in an entity's visible text. An item whose own name holds one of those words therefore failed at Before and After, for example a custom endpoint renderer drawing the routePOST /Library/Movies/Added, or the graph renderer on a comparison with no changes, where a label contained "Removed".The check now reads status structurally, with a narrower textual fallback:
data-change-status, and the kit's.badge,.pk-status-text,.pk-status-tab,.pk-svg-statusand.pk-change-status) asEntitySample.status, outermost parts only, excluding nested entities and never counting the entity element itself. Any status word there fails, even when the item's name holds the same word.The check's catalog description is updated to match.
Evidence
npm run tools -- check --fast: pass (format, lint, typecheck ofpackages/renderers/testing, considered, boundaries, changelog and the other gates; harness typecheck and lint need the engine build and are left to CI).npm run tools -- test packages/renderers/testing: pass (29 tests). The new testquiet-endpoints reads status from status parts, not from an item's own namecovers (1) labels containing Added or Removed passing at both endpoints, (2) a status badge at an endpoint failing even next to a name containing the same word, and (3) unmarked status text that the name doesn't contain still failing.Regression confirmed: with the previous
endpoints.ts, the new test fails withAt Before (progress 0), "endpoint:POST /Library/Movies/Added" shows "Added"; endpoints carry no status.New browser spec
packages/renderers/harness/browser/status-parts.spec.ts(chromium-desktop) checks that the probe reads status parts apart from names, skips faded status and never treats the entity element as a status part. Not run locally (it needs the engine build); left to CI.Documentation that this change affects is updated, and generated reference
pages are regenerated (
npm run docs:generate).Fixes include a regression test.
A changelog fragment at
changelog.d/<this PR's number>.mddescribes whatusers will notice, or the PR has the
no changeloglabel (seechangelog.d/README.md).
No credentials, private source or machine-specific paths are included.