Repository navigation
client: the Settings error list offers the remaining errors behind Show more - #2268
Conversation
19238fa to
65f77a5
Compare
|
Written-by: Dev2 Coordinate record for the tip currently on this pull request.
Per-file delta (additions/deletions):
|
|
@Birfy — one review request at tip 65f77a5 (8 files, +4942/-5404, base 4765885). Settings → Feedback now keeps its eight newest error rows and, when the report holds more, draws one The large |
|
Verdict: PASS at 65f77a5 Ran at this tip:
|
Settings → Feedback titled the block with the whole log (`Recent errors · 60`) but drew the newest eight errors and nothing else, so with a burst of failures the ninth error could not be read at all — there was no scroll target, no page and no control. The list now keeps its eight rows and, when the report holds more, draws one `Show more` button under them (`aria-expanded`) that renders every loaded error and folds back to `Show less`. A report of eight or fewer errors draws no control and keeps the title and the rows exactly as they were.
Fixes #2266
Written-by: Dev2
Owner: Dev2
Reviewer: Birfy
Tier: T1 — the paths are T1 (
core/src/client/**,core/client.js,patches/**,core/test/**,changelog.d/**); the onedocs/**path is T0, and no diff pattern raises anything.Claim-Id: c4b84bba698f42998b58c70826c195d2
Branch: dev/2-feedback-error-list-show-more
Base: 4765885
Tree: 2455eaec887c3b6333833dec96db0b8edd286cfd
Verified commit: 65f77a5
Pushed head: 65f77a5
Scope — Settings → Feedback titles its error block with the whole log (
Recent errors · 60) but drew only the newest eight rows with nothing to reach the rest, so the ninth error could not be read at all. The list now draws those eight rows and, when the report holds more, oneShow morecontrol under them (aria-expanded) that draws every loaded error and folds back toShow less; a report of eight or fewer keeps the list and its title exactly as they were, and draws no control.Files (8, +4942/−5404)
core/src/client/feedback.js(+11/−1) — theallErrorsstate,shown = allErrors ? entries : entries.slice(0, 8), and theShow more/Show lessrow guarded onentries.length > 8core/test/feedback-errors-more.test.js(+203) — three cases on the real hooks runtime: eight rows plus the control on a sixty-error report, expand to all errors and fold back, and no control at eight or fewerdocs/subsystems/core-client.md(+1/−1) — one sentence on the rowchangelog.d/2266-error-list-show-more.fixed.md(+1)core/client.js(+12/−1) — the bundle built from that sourcepatches/ds-bot/0008-client-bundle.patch(+4485/−5399),patches/ds-bot/0001-core-fixes.patch(+26/−2),patches/ds-bot/files/test/feedback-errors-more.test.js(+203) — regenerated on this base withbuild-client+generateThe
0008count is a re-layout of the same patch regions, not new content:generatediffsds-bot/client.jsagainstcore/client.jswith git, and the twelve added bundle lines shift how the diff aligns its repeated blocks, so the hunk boundaries move wholesale. The behavioral delta stays the twelve lines incore/client.js(:18677onward); the tree is whatgeneratewrites (canonicalno-op, a secondgeneratewrote nothing) andcheckapplies all 10 patches in order and findscore/ ≡ ds-bot/ + patches/ds-bot/again.Rebase — the branch was rebased from
03a12530onto4765885b;patches/ds-bot/0008-client-bundle.patchwas the only conflict, resolved by taking the new base's copy and regenerating from source withbuild-client+generate(nothing from the old base carried over).Readings at
65f77a51(committed, clean tree,git status --porcelainempty)TZ=UTC ARCH_DOCS_BASE=4765885b448477964338548d2b5753068e7da983 DSH_HARNESS=… npm run verify— exit 0, 8 suites, 4697 tests / 4697 pass / 0 fail,arch-docs: OK (8 changed file(s))(core 2726, social 570, tree 132, timeline 140, workflow 411,.github/scripts655, interop 37, live-e2e 26;corealone answers 2723 on this base, so the three new cases are the whole difference).node core/scripts/build-client.mjs --check— exit 0;node core/scripts/build-client.mjswrites nothing.node scripts/ds-bot-patches.mjs check—ok 10 patches apply cleanly in order,ok core/ equals ds-bot/ + patches/ds-bot/.node scripts/ds-bot-patches.mjs canonical—ok patches/ds-bot/ is what generate writes (generate is a no-op); a secondgenerateon the committed tree wrote nothing.node .github/scripts/changelog.mjs check—37 fragment(s) in changelog.d/ are well formed.4765885btree carrying only the new test file: 3 tests / 1 pass / 2 fail —the list offers a way to see the remaining errors(core/test/feedback-errors-more.test.js:175,AssertionError, expected true); with the fix the same file is 3 / 3 / 0. The eight-or-fewer case is green on both arms, so the new rule only answers the case it was written for.git grep -nE '^(<{7}|={7}|>{7})' -- docs core patches changelog.danswers no line.Not run — the smoke test (no
index.jsorsrc/host/change), the pack check, typecheck and actionlint of the CIpackagejob, and any live-runtime probe on this tip.Checkpoint
{ "pr": 2268, "claim": "Dev2", "issue": 2266, "summary": "Settings → Feedback's error list keeps its eight newest rows and, when the report holds more, draws one Show more control under them (aria-expanded) that expands to every loaded error and folds back to Show less; eight or fewer errors keep the list and title exactly as they were with no control. The bundle and the patch series were regenerated on the new base. Three cases cover the control, the expand/fold round trip, and the short report.", "files": ["core/src/client/feedback.js", "core/test/feedback-errors-more.test.js", "docs/subsystems/core-client.md", "changelog.d/2266-error-list-show-more.fixed.md", "core/client.js", "patches/ds-bot/0008-client-bundle.patch", "patches/ds-bot/0001-core-fixes.patch", "patches/ds-bot/files/test/feedback-errors-more.test.js"], "checks": { "ran": "TZ=UTC ARCH_DOCS_BASE=4765885b448477964338548d2b5753068e7da983 npm run verify; node core/scripts/build-client.mjs --check; node scripts/ds-bot-patches.mjs check; node scripts/ds-bot-patches.mjs canonical", "result": "green", "at": "65f77a516f96e6c5994998cfbc74d2f36055cb4f" }, "next": "none — draft for review; the Lead flips it to ready" }