Commit 26cd002
Integrate the riverui in area51 (#3745)
<img width="2618" height="1061" alt="image"
src="https://github.com/user-attachments/assets/9f2aa352-9528-452f-8e28-f776535dc4fe"
/>
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Adds a new mounted admin-capable UI (`riverui`) that starts background
processes and exposes job control actions, so misconfiguration of auth
scopes, routing order, or context cancellation could impact operations
or shutdown behavior.
>
> **Overview**
> Integrates the official River UI into Area51 by creating and starting
a `riverui` handler during router construction, mounting it at
`/area51/api-server/riverui` with `admin:write` scope protection, and
adding a navigation link.
>
> Refactors the Area51 router plumbing by renaming
`NewAdminRouter*`/`adminApp` to `NewRouter*`/`area51App`, adding an
`area51` lifecycle context from `service.Server` (with explicit
cancellation on shutdown and on startup failures), and updating
handlers/templates/tests to use the new app/type names. Dependencies are
updated to include `riverui` and a `slog`→logrus adapter for River UI
logging.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
e6fc872d5daa4b9bb283ea465e3a2f48fe9c9485. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
GitOrigin-RevId: 68f673d4701e7776c953bf56f4128b9d297ab0d71 parent 03a4175 commit 26cd002
2 files changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
385 | 386 | | |
386 | 387 | | |
387 | 388 | | |
| 389 | + | |
| 390 | + | |
388 | 391 | | |
389 | 392 | | |
390 | 393 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
895 | 895 | | |
896 | 896 | | |
897 | 897 | | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
898 | 904 | | |
899 | 905 | | |
900 | 906 | | |
| |||
0 commit comments