Repository navigation
Learning: the pull request scorecard, lessons with their evidence, and what reviewers ask for - #406
Merged
Merged
Conversation
…d what reviewers ask for Three sections on the Learning page, each loading by itself from the gateway's new routes and showing nothing on a gateway that does not have them yet. Pull request scorecard: of the pull requests Coderhelm opened, how many merged, closed without merging or were reverted, how many needed a person's commit, how many finished with open items, the review rounds to approval and the time from open to merge, for the team and per repository, over this month, 3 months, 12 months or all time. It follows the page's repository filter. A rate with nothing behind it reads "No data yet", never zero, and the page says when counting began. Lessons from pull requests: each lesson the coding agent took from people's edits, closing comments and revert reasons, with how it is checked, the pull requests it was seen on, its evidence, and where it stands (in use, in the guide file, contradicted, faded, turned off). The repository's guide pull request is linked with its state. What reviewers ask for: per reviewer, each ask, its kind, the pull requests it was seen on and whether it is in use. An admin can forget one ask or everything kept about a reviewer; a member sees the list without the buttons, and a refusal is said in words.
…sitory In the lessons section: "Open guide pull requests", a switch for the team that is on unless turned off, and, with a repository picked in the page's filter, that repository's own choice (follow the team, on, off). Each change is saved at once. Without a repository picked, the ones set apart are named. Everyone sees how it is set; only an admin can change it, and a refused save is said in words with the switch left as it was. A gateway without the setting shows no switch.
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.
Summary
The Learning page gets three sections for the platform's new learning loop: a scorecard of what became of the pull requests Coderhelm opened, the lessons it took from them with their evidence, and what each reviewer keeps asking for. Each section loads by itself and shows nothing on a gateway that does not have its route yet, so this can ship before or after the platform change (CoderHelm/coderhelm-platform#652).
Changes
/api/learning/scorecard): opened, merged with the merge rate, closed without merging, reverted, needed a person's commit, finished with open items, review rounds to approval, and open to merge, for the team and per repository. Period: this month, 3 months, 12 months or all time. It follows the page's repository filter. A rate with nothing behind it reads "No data yet", never zero; the median is given as the span it falls in; the page says when counting began./api/learning/lessons): each lesson with how it is checked, the pull requests it was seen on, its evidence (people's words and their changed lines) and where it stands: in use, in the guide file, contradicted, faded or turned off. The repository's guide pull request is linked with its state./api/settings/guide-prs), in the lessons section: "Open guide pull requests" for the team, on unless turned off, and, with a repository picked in the page's filter, that repository's own choice (follow the team, on, off). Saved at once. Admins only; a member sees how it is set./api/learning/reviewers): per reviewer, each ask, its kind, the pull requests it was seen on and whether it is in use. An admin can forget one ask or everything kept about a reviewer (/api/learning/reviewers/forget), after a confirmation. A member sees the list without the buttons; a refusal is said in words.src/lib/api.ts: the four calls and their types.src/lib/routes.ts: the page's description.e2e/wide-data/learning.ts(also answered for the cross-page specs) and 13 new cases ine2e/learning.spec.ts.Verification
Run locally on this branch, on main
6a68de0:npm run lint: UI lint passed, no hardcoded hosted addresses.npm run typecheck: clean.npm run check:openapi: matches the pinned platform commit (the new routes are not part of the public API document).npm run buildwith the CI environment: passes,/learningis prerendered.learning.spec.ts,no-sideways-scroll,readable-text,no-mid-word-breaks,tabs-no-scroll,audit-shell,capabilities: 385 passed, 0 failed, with both commits.Not verified live: every API call in these tests is answered by fixtures. The full e2e suite was not run locally beyond the specs above; CI runs it.