Repository navigation
Review table and run tasks: fit the paths, code as code, tasks from the plan check - #351
Merged
Merged
Conversation
…he plan check Reviewed changes table: the file column fits its paths (at most two fifths, wrapping after a slash) and the description takes the rest; the directory is muted and the file name plain, as on the run page; inline code in descriptions, the summary, the changes and the reviewer's notes renders as code; on a phone each row stacks the path over its line. Run page Tasks card: tasks are ticked from the run's plan check note (the worker's own measure of the branch) when there is one; the checklist file can be stale after a later fix round. A finished run with a pull request and no plan check result says "Done in pull request #N" instead of empty boxes. Files changed: an open pull request with no recorded file list says the list wasn't recorded and links the files on GitHub, never "didn't change any code". "Address PR comments" shows only when the reviewer asked for changes.
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
Polish after the review and run page redesign (#350):
Changes
reviewer/session/sections.tsx: the file table is a grid with table roles. The path column fits its content, capped at 40%, wrapping after a slash. The description takes the rest. On a phone each row stacks the path over the description. Descriptions, the PR summary, the changes list, the reviewer's note headings and text, kept comments and the session's reason now render inline code through the existingInlineMarkdown.components/file-path.tsx(new): the directory muted, the file name plain, the full path as hover text. Shared by the run page's Files changed list and the review table.lib/plan-check.ts(new) andruns/detail/page.tsx: tasks are ticked from the run's newest "Plan check: N of M planned tasks done" progress note, matched by file the way the worker'splan_tasksreads a task. Otherwise the card falls back to the checklist's own box. With no plan check result, a finished run with a PR that has unticked tasks says "Done in pull request #N" with plain bullets, not empty boxes. The checklist parse also accepts[X]and*bullets, as the worker does.runs/detail/run-timeline.tsxand the Changes tab: with no recorded file list and an open PR, the page says "Coderhelm didn't record which files this run changed. Pull request #N has every change." and links the files on GitHub. "This run didn't change any code" shows only for a finished run with no PR.pr_review.verdict == REQUEST_CHANGES).Why the data was wrong, and the platform fixes it needs:
implement::run(services/worker/src/passes/implement.rs, around line 695) creates aTaskTrackerseeded with the plan's untickedplan.tasks. Itsmark_files_donewrites that whole copy back totasks.mdon every write. Fix rounds after the plan check (proof, security, CI, generator and link fixes all callimplement::run) therefore overwritesave_checked_tasks' 3 of 3 with only the files that round touched. The fix: seed the tracker from the currenttasks.mdin S3, or have it only add ticks to what is stored.files_modifiedon the run record for a run that opens a pull request. Onlycomplete_run(services/worker/src/passes/mod.rs) sets it, and that function is#[allow(dead_code)]with no callers. The fix: setfiles_modifiedfrom the branch diff in theawaiting_ciupdates inrun_passes(single repository about line 6366, multi-repository about line 4649, CI fix cycle about line 4006).Verification
npm run lint,npm run typecheck: pass.run-tasks-files(new),reviewer-session,audit-runs,run-draft-hold,run-steps,run-trigger,run-questions,audit-reviewer,close-runs: 118 passed.