Commit 7061612
authored
## Description
Adds a `use_monospace_font` boolean hint to `FormMetadata` for
integration settings fields. When set to `True`, the flag is included in
the serialized form entry sent to the Admin UI, signaling that the
field's input should be rendered in a monospace font. The flag defaults
to `False` and is omitted from the output when false to keep the payload
minimal.
## Motivation and Context
Some settings fields (structured data, filter code snippets) are easier
to read and edit in a monospace font. The Admin UI needs a
backend-supplied hint to know when to apply that treatment. This is the
backend half of the work, with the frontend side tracked on
ThePalaceProject/circulation-admin#307. It is safe to merge them
independently.
[Jira PP-4734]
## How Has This Been Tested?
- Manual testing in local dev environment with frontend dev-server.
- New tests for this functionality.
- All tests pass locally.
- [CI
tests](https://github.com/ThePalaceProject/circulation/actions/runs/28827880245)
pass.
## Checklist
- N/A - I have updated the documentation accordingly.
- [x] All new and existing tests passed.
1 parent fd81933 commit 7061612
2 files changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
121 | 126 | | |
122 | 127 | | |
123 | 128 | | |
| |||
179 | 184 | | |
180 | 185 | | |
181 | 186 | | |
| 187 | + | |
| 188 | + | |
182 | 189 | | |
183 | 190 | | |
184 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
552 | 577 | | |
553 | 578 | | |
554 | 579 | | |
| |||
0 commit comments