Skip to content

Add React screens for admin slave management - #148

Closed
tkadauke-syrus[bot] wants to merge 3 commits into
syrus/direct-872from
syrus/direct-873
Closed

tkadauke-syrus[bot] wants to merge 3 commits into
syrus/direct-872from
syrus/direct-873

Conversation

@tkadauke-syrus

Copy link
Copy Markdown
Contributor

Admin slave management needs React equivalents for the legacy list, detail, create, edit, clone, and delete flows while preserving the existing Rails inventory behavior.

Added slave CRUD hooks, reusable form handling for all slave fields including environment variables, React pages for the /admin/slaves/* screens, and a route matcher for those pages. The slave API now returns the form-visible base path, default base path, and password field needed by clone/edit flows, with CSRF metadata available for React mutations.

Verified the updated API and legacy admin controller behavior with the targeted Rails controller tests.

Triggered by @tkadauke


Authored by Codex (trigger=initial). Review carefully.

This PR was implemented by Syrus across 6 Runs at a total cost of $0.00.

tkadauke-syrus Bot and others added 2 commits June 11, 2026 09:32
Expose the admin/settings/help data needed by the React migration without requiring screen-scraping of the legacy HTML controllers.

Adds JSON controllers and routes for admin slave CRUD, admin configuration metadata/update, per-user settings metadata/update, and help topic rendering with internal Textile link rewriting. Includes functional coverage for the new API response shapes, authorization paths, persistence behavior, and missing help topics.

Co-Authored-By: Thomas Kadauke <thomas.kadauke@googlemail.com>
The test suite failure came from new API configuration tests expecting legacy controller redirect helpers for unauthenticated and unauthorized requests.

Updated those assertions to match the JSON API behavior implemented by `Api::BaseController`: unauthenticated requests return `401` with `Not authenticated`, and permission failures return `403` with `Access denied`. Verified the focused API tests, Vite test build, Zeitwerk check, and full Rails test suite locally.

Co-Authored-By: Thomas Kadauke <thomas.kadauke@googlemail.com>
Admin slave management needs React equivalents for the legacy list, detail, create, edit, clone, and delete flows while preserving the existing Rails inventory behavior.

Added slave CRUD hooks, reusable form handling for all slave fields including environment variables, React pages for the `/admin/slaves/*` screens, and a route matcher for those pages. The slave API now returns the form-visible base path, default base path, and password field needed by clone/edit flows, with CSRF metadata available for React mutations.

Verified the updated API and legacy admin controller behavior with the targeted Rails controller tests.

Co-Authored-By: Thomas Kadauke <thomas.kadauke@googlemail.com>
@tkadauke-syrus

Copy link
Copy Markdown
Contributor Author

Landed via Epic merge-train (integration PR #171). Job #873.

@tkadauke-syrus tkadauke-syrus Bot closed this Jun 11, 2026
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.

0 participants