Add metadata-driven admin configuration form - #149
Closed
tkadauke-syrus[bot] wants to merge 3 commits into
Closed
tkadauke-syrus[bot] wants to merge 3 commits into
tkadauke-syrus[bot] wants to merge 3 commits into
Conversation
tkadauke-syrus
Bot
force-pushed
the
syrus/direct-872
branch
from
June 11, 2026 13:00
d586736 to
33dff1d
Compare
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>
tkadauke-syrus
Bot
force-pushed
the
syrus/direct-872
branch
from
June 11, 2026 13:32
4aae2f4 to
69fe912
Compare
Enable the admin configuration screen to be driven by the existing options metadata so React can render the same system settings without hard-coding the option list. Added a reusable `ConfigOptionForm` component, admin configuration fetch/update hooks, and an `AdminConfigPage` that posts updates, shows the success flash, and refetches saved values. The Rails admin configuration route now exposes a React mount point while preserving the legacy fallback form, and the layout emits CSRF meta tags for JSON updates. Co-Authored-By: Thomas Kadauke <thomas.kadauke@googlemail.com>
tkadauke-syrus
Bot
force-pushed
the
syrus/direct-874
branch
from
June 11, 2026 14:51
93eeb44 to
4b424a7
Compare
tkadauke-syrus
Bot
force-pushed
the
syrus/direct-872
branch
from
June 11, 2026 14:54
69fe912 to
e182a9c
Compare
Contributor
Author
|
Landed via Epic merge-train (integration PR #171). Job #874. |
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.
Enable the admin configuration screen to be driven by the existing options metadata so React can render the same system settings without hard-coding the option list.
Added a reusable
ConfigOptionFormcomponent, admin configuration fetch/update hooks, and anAdminConfigPagethat posts updates, shows the success flash, and refetches saved values. The Rails admin configuration route now exposes a React mount point while preserving the legacy fallback form, and the layout emits CSRF meta tags for JSON updates.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.