Skip to content

Rebuild Horizon's user interface with Inertia and React - #1807

Draft
nckrtl wants to merge 24 commits into
laravel:5.xfrom
nckrtl:horizon-inertia
Draft

Rebuild Horizon's user interface with Inertia and React#1807
nckrtl wants to merge 24 commits into
laravel:5.xfrom
nckrtl:horizon-inertia

Conversation

@nckrtl

@nckrtl nckrtl commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

This PR is a response to the request to port my Horizon redesign into this project.

I prepared two approaches. The classic PR is the merge-oriented option for Horizon 5.x. It keeps Vue, Bootstrap, Sass, the existing API routes, and support for Laravel 9 through 13.

This future-oriented PR implements the same redesign with Inertia v3, React, Tailwind CSS, and shadcn. It provides the same Horizon functionality as the classic PR, but changes the frontend stack and raises the minimum supported Laravel and PHP versions. For that reason, it may be a better fit for Horizon 6.

There is a live demo based on my Horizon New Dawn concept. It uses the same stack, but also explores controls beyond this PR, including a queue detail page, terminating Horizon instances, and starting or stopping individual supervisors. Those controls would need separate agreement before becoming part of Horizon.

The new stack also makes it easier to support mobile layouts, which the live demo already demonstrates.

What this changes

  • Raises the minimum requirements to Laravel 11.35 and PHP 8.2 because those are the minimum versions supported by Inertia v3.
  • Preserves every existing Horizon API route, including its method, name, controller, constraints, and middleware.
  • Adds navigation counts to /api/stats, and pause and throughput metadata to /api/workload. No existing response field is removed or renamed.
  • Adds queue pause and resume through Laravel's queue APIs. This may be better exposed as an opt-in feature because it gives Horizon users more operational control.
  • Publishes the frontend assets through Horizon's install and update flow.

nckrtl and others added 23 commits July 30, 2026 15:30
Adjust package CI, ignore rules, and repository attributes for the
Inertia rebuild without adding local AI contributor guidance.
Keep failed-job tag search draft text stable when poll responses
arrive, and stop wrapping the whole dashboard in aria-live=polite.
Reuse DatabaseBatchCapability on the rewritten batches page so a
missing job_batches table returns an empty list without report() noise.
Keep browser Inertia pages and legacy redirects on web routes with
HandleInertiaRequests, and load JSON endpoints from routes/api.php under
an api prefix without Laravel's stateless api middleware group.
Use StatisticLink for the batches-in-progress overview card so the whole
card navigates to the batches page like the other overview stats.
Post-process generated route helpers with encodeURIComponent and rebase
Horizon URLs without URL-constructor path normalization so backslashes
survive for FQCNs while slash-containing queue/tag values remain valid.
PHPUnit only loads one class per *Test.php file by default; moving the
custom path/proxy redirect cases into a matching filename ensures they run.
Extend UnitTest with a silent exception handler for report() paths so the
Unit suite no longer boots Testbench or flushes Redis for this file.
Remove duplicated route-count, batch-capability, font-policy, and
capability-mirror assertions; replace sleep-based mtime waits with
backdated touch; and exercise 422 pause validation with capabilities forced on.
@github-actions

Copy link
Copy Markdown

Thanks for submitting a PR!

Note that draft PRs are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant