Skip to content

fix(dashboard): add copy to run page on redirect from trigger - #4423

Merged
mrkaye97 merged 5 commits into
mainfrom
mk/add-copy-on-redirect
Jul 15, 2026
Merged

fix(dashboard): add copy to run page on redirect from trigger#4423
mrkaye97 merged 5 commits into
mainfrom
mk/add-copy-on-redirect

Conversation

@mrkaye97

@mrkaye97 mrkaye97 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Description

Adds some copy to the run detail page when you get redirected there after triggering a run from the dashboard and getting a 404, saying to just wait a bit

Screenshot 2026-07-14 at 2 05 31 PM

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

Changes have been:

  • Tested (unit, integration, or manually with steps specified)
  • Linted and formatted
  • Documented (where applicable)
  • Added to CHANGELOG (where applicable) -- see Keep a Changelog

🤖 AI Disclosure

No AI use

@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hatchet-docs Ready Ready Preview, Comment Jul 14, 2026 6:16pm

Request Review

@github-actions github-actions Bot added the dashboard Related to the Hatchet dashboard label Jul 14, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the dashboard run-trigger flow by showing a more helpful “wait for replication” message on the run detail page when a newly-triggered run briefly 404s (before analytics replication completes), with a refresh action to retry.

Changes:

  • Adds a validated search flag on the tenant run route to indicate the user was redirected from a trigger action.
  • Sets that flag when navigating to a run immediately after triggering from the workflow page.
  • Updates the run detail page to render a specialized 404 state (with “Try refreshing”) and enhances ResourceNotFound to support custom primary actions/icons.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
frontend/app/src/router.tsx Adds validateSearch schema for the run route and exports tenantRunRoute for typed useSearch() usage.
frontend/app/src/pages/main/v1/workflows/$workflow/components/trigger-workflow-form.tsx Passes a search flag when redirecting to the run detail page after triggering a run.
frontend/app/src/pages/main/v1/workflow-runs-v1/$run/index.tsx Shows a special 404 experience for trigger-redirected runs and allows refetch without flashing the full-page spinner.
frontend/app/src/pages/error/components/resource-not-found.tsx Extends the error component to support a primary action override and icon spin behavior.

Comment thread frontend/app/src/pages/error/components/resource-not-found.tsx Outdated

// Treat malformed IDs (often 400) and missing resources (404) as not found.
if (status === 400 || status === 404) {
if (status === 404 && wasRedirectedFromTrigger) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no longer handling 400?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's just a weird diff, this got moved down

@mrkaye97
mrkaye97 merged commit 48f66dd into main Jul 15, 2026
30 checks passed
@mrkaye97
mrkaye97 deleted the mk/add-copy-on-redirect branch July 15, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dashboard Related to the Hatchet dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants