Repository navigation
Run page: show the questions a run asked and answer them there - #241
Merged
Merged
Conversation
A run waiting on a person lists its questions in plain words, each with why it matters muted underneath, a link to the comment on the ticket, and one answer box per question (offered answers and choices as buttons). Send answer and continue posts the answers on the ticket as a reply from the person and continues the work; Retry stays for a ticket edited directly. Viewers see the questions without the boxes; blank answers and a run that moved on are handled. An answered run shows what was asked and answered, with links to the run that continued and the reply. Dashboard types follow the platform's API (openapi fields regenerated); the API docs list the answer endpoint.
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
When a run stops at "Needs your answer", the run page now lists exactly what Coderhelm asked and takes the answer there, so nobody has to open the ticket to find out what's missing. Pairs with CoderHelm/coderhelm-platform#330, which stores the questions, adds
POST /api/runs/{run_id}/answerand continues the run with the answers.Changes
RunQuestionsbanner for aneeds_inputrun that has questions:runscapability see the questions but no boxes or Retry.409(the run moved on) shows the server's sentence and reloads the run.lib/api.ts:RunQuestion,RunAnswer,api.answerRun.openapi-fields.tsis regenerated withnpm run openapi:fieldsat the platform branch head, andapi-contract.tschecks the new types.runsscope lists the answer endpoint, with an idempotency row for it.Verification
npm run typecheck,npm run lint,npm run check:openapi(at platform a28e873) andnpm run buildall pass.e2e/run-questions.spec.ts(9 tests), run with close-runs, audit-runs and api-keys: 45 passed.