Add basic JSON UI form field support (PP-4438)#3386
Conversation
|
Claude finished @tdilauro's task in 3m 33s —— View job Code Review
SummaryClean, well-scoped implementation. The two-part design — serializing the default to a JSON string in DetailsMinor:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3386 +/- ##
=======================================
Coverage 93.34% 93.34%
=======================================
Files 507 507
Lines 46434 46451 +17
Branches 6336 6341 +5
=======================================
+ Hits 43345 43361 +16
- Misses 1999 2000 +1
Partials 1090 1090 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I improved the coverage and addressed useful AI review feedback. This is ready for human review. |
Description
Adds a
jsonform field type for integration settings. Fields annotated withFormFieldType.JSONdisplay a textarea in the admin UI that accepts a JSON value. Two-way handling is wired up automatically:Note: The ability to edit this field type depends on new support introduced on circulation-admin PR #224.
Motivation and Context
Integration settings that need to store structured data (objects, arrays) previously had no native form type. This adds a first-class JSON field type that makes the round-trip between the admin UI and the settings model transparent.
[Jira PP-4438]
How Has This Been Tested?
Checklist