Repository navigation
Runs: show how each run was started and by whom, with a Started by filter - #247
Merged
Merged
Conversation
…lter Each row's meta line and the run page's header now say what started the run, from the `trigger` the runs API sends: "Jira · ABC-123 · by Dana", "GitHub issue · #42 · by octocat", "Started by Coderhelm · flaky test", "Alert", "Plan · <plan>", "Dashboard · log finding · by <person>", with a small icon and a link to the ticket, test, finding, alert or plan. Internal ticket ids (E2E-FIX-..., LOG-..., ALERT-...) are no longer shown as the ticket; the run's Details tab lists them as "Internal ID". A "Started by" select (Jira, GitHub, Coderhelm, Alerts, Plans, Dashboard, Chat) sits next to the status toggles, is kept in the address as `started_by`, and is sent to the server. A backend without `trigger` shows the ticket as before. openapi-fields.ts is pinned to coderhelm-platform 3d0ddc4 (the PR adding `trigger`), and api-contract.ts holds RunTrigger to it.
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
A run's row used to show
<ticket id> · <repo> · took X. A run Coderhelm started on its own showed an id likeE2E-FIX-a7f51433483adf820849, and nothing said whether a run came from Jira, GitHub, an alert, a log finding, a plan or the dashboard. Each row and the run page's header now say how the run was started and by whom, with an icon and a link to what started it. A "Started by" filter sits next to the status toggles.Needs CoderHelm/coderhelm-platform#335, which adds
triggerto the runs API and thestarted_byfilter. Merge that one first.Changes
components/run-trigger.tsx:RunTriggerLinedraws the gateway'striggeras icon, label, ref (linked) and "by person". It only follows links that are dashboard paths orhttps://. If the ref only repeats the run's title (an alert's name), the label carries the link instead. The line wraps like text, so on a phone the list's "·" never ends up on a line of its own.app/page.tsx):?started_by=, is sent to/api/runs, counts toward "Clear filters", and has its own empty-state hint.ListToolbargets afiltersslot for it.runs/detail): the same line in the header. On the Details tab, a Coderhelm or alert run's ticket id is labelled "Internal ID" instead of "Ticket".triggershow the ticket as before.api.ts:RunTriggerandRunTriggerKind, plusstarted_byonlistRuns.openapi-fields.tsis pinned to platform3d0ddc4(the branch commit of Settings: a self-hosted install's own AWS account never asks for a stack in AWS #335), andapi-contract.tsholdsRunTriggerto it.Verification
npm run typecheck,npm run lint,npm run check:openapi,npm run build(with the CI API URL): all pass.E2E_STATIC=1 npx playwright test): 1132 passed.e2e/run-trigger.spec.ts, with mock data covering every kind:trigger.