A notice is now a closed Go value, notice.Notice, in a package that imports nothing of the console, rendered by one template part. It carries one of five tones named by meaning (Problem, Warning, Done, Information, Preview), its words as escaped runs (plain, strong, code), an optional link, an optional action that posts, a body only the console's own templates fill, and an optional close route. The part sets the glyph, the hidden "Error: " or "Warning: " a screen reader hears, and the role: alert for a Problem, status for the rest. A box takes its size from where it sits, full on a page and compact inside a card, a modal or a form's box; a line has no box. The preview tone is a pale fill with a 1px dashed edge, worn only by the form part's preview box and the Rows tray. Every alert at HEAD renders through the part: 83 in 49 files, plus the status lines and the checkout refusals. The 29 visible "Error:" prefixes go. A notice is closable only when its owner records the closing on its own row; the organization types error loses the close button that recorded nothing. The raw-notice lint refuses alert markup and alert roles outside the part, in templates and Go strings. The toasts move into one shared partial on every layout, member pages gain the load-time flash, the error toast stays until it is closed, the filler-copy lint reads the console's own scripts, and three toast strings drop "Please". The no-JS lookup's no-match answered 500 and now renders its notice. The organization type card showed a refused default change twice and now shows it once, in the form. The tier reorder preview's failed read moves to the form's own slot, outside the preview's status region. Closes #167 and #22.
322 lines
12 KiB
HTML
322 lines
12 KiB
HTML
|
|
===== operator.integration.settings unbound
|
|
|
|
|
|
|
|
<form id="form-operator.integration.settings" data-form="operator.integration.settings" data-form-kind="settings" class="app-form app-form-table" novalidate hx-post="/operator/integrations/{integrationKey}/settings" hx-target="#operator-body" hx-swap="innerHTML" hx-disable="find button[type=submit]" hx-indicator="find .htmx-indicator">
|
|
<div id="form-operator.integration.settings-error" class="app-form-error"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="table-responsive">
|
|
<table class="table align-middle">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Key</th>
|
|
<th scope="col">Effective value</th><th scope="col">Source</th>
|
|
<th scope="col">Override</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr id="form-operator.integration.settings-override" class="app-form-field">
|
|
<th scope="row" class="fw-normal">
|
|
|
|
<label class="form-label form-label-sm" for="form-operator.integration.settings-override-control">override</label>
|
|
|
|
<div id="form-operator.integration.settings-override-hint" class="form-text">One row per configuration key the installed integration declares.</div>
|
|
|
|
</th>
|
|
<td></td><td></td>
|
|
<td>
|
|
<input type="text" class="form-control form-control-sm" id="form-operator.integration.settings-override-control" name="override" value="" autocomplete="off" aria-describedby="form-operator.integration.settings-override-hint">
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="d-flex flex-wrap gap-2 app-form-commit">
|
|
|
|
<button type="submit" class="btn btn-primary"><span class="spinner-border spinner-border-sm htmx-indicator me-1" aria-hidden="true"></span>Save</button>
|
|
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
===== operator.integration.settings unbound edit side
|
|
|
|
|
|
|
|
<form id="form-operator.integration.settings" data-form="operator.integration.settings" data-form-kind="settings" class="app-form app-form-table" novalidate hx-post="/operator/integrations/{integrationKey}/settings" hx-target="#operator-body" hx-swap="innerHTML" hx-disable="find button[type=submit]" hx-indicator="find .htmx-indicator">
|
|
<div id="form-operator.integration.settings-error" class="app-form-error"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="table-responsive">
|
|
<table class="table align-middle">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Key</th>
|
|
<th scope="col">Effective value</th><th scope="col">Source</th>
|
|
<th scope="col">Override</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr id="form-operator.integration.settings-override" class="app-form-field">
|
|
<th scope="row" class="fw-normal">
|
|
|
|
<label class="form-label form-label-sm" for="form-operator.integration.settings-override-control">override</label>
|
|
|
|
<div id="form-operator.integration.settings-override-hint" class="form-text">One row per configuration key the installed integration declares.</div>
|
|
|
|
</th>
|
|
<td></td><td></td>
|
|
<td>
|
|
<input type="text" class="form-control form-control-sm" id="form-operator.integration.settings-override-control" name="override" value="" autocomplete="off" aria-describedby="form-operator.integration.settings-override-hint">
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="d-flex flex-wrap gap-2 app-form-commit">
|
|
|
|
<button type="submit" class="btn btn-primary"><span class="spinner-border spinner-border-sm htmx-indicator me-1" aria-hidden="true"></span>Save</button>
|
|
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
===== operator.integration.settings create side
|
|
|
|
|
|
|
|
<form id="form-operator.integration.settings" data-form="operator.integration.settings" data-form-kind="settings" class="app-form app-form-table" novalidate hx-post="/operator/integrations/{integrationKey}/settings" hx-target="#operator-body" hx-swap="innerHTML" hx-disable="find button[type=submit]" hx-indicator="find .htmx-indicator">
|
|
<div id="form-operator.integration.settings-error" class="app-form-error"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="table-responsive">
|
|
<table class="table align-middle">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Key</th>
|
|
<th scope="col">Effective value</th><th scope="col">Source</th>
|
|
<th scope="col">Override</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr id="form-operator.integration.settings-override" class="app-form-field">
|
|
<th scope="row" class="fw-normal">
|
|
|
|
<label class="form-label form-label-sm" for="form-operator.integration.settings-override-control">override</label>
|
|
|
|
<div id="form-operator.integration.settings-override-hint" class="form-text">One row per configuration key the installed integration declares.</div>
|
|
|
|
</th>
|
|
<td></td><td></td>
|
|
<td>
|
|
<input type="text" class="form-control form-control-sm" id="form-operator.integration.settings-override-control" name="override" value="" autocomplete="off" aria-describedby="form-operator.integration.settings-override-hint">
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="d-flex flex-wrap gap-2 app-form-commit">
|
|
|
|
<button type="submit" class="btn btn-primary"><span class="spinner-border spinner-border-sm htmx-indicator me-1" aria-hidden="true"></span>Save</button>
|
|
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
===== operator.integration.settings unbound with values
|
|
|
|
|
|
|
|
<form id="form-operator.integration.settings" data-form="operator.integration.settings" data-form-kind="settings" class="app-form app-form-table" novalidate hx-post="/operator/integrations/{integrationKey}/settings" hx-target="#operator-body" hx-swap="innerHTML" hx-disable="find button[type=submit]" hx-indicator="find .htmx-indicator">
|
|
<div id="form-operator.integration.settings-error" class="app-form-error"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="table-responsive">
|
|
<table class="table align-middle">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Key</th>
|
|
<th scope="col">Effective value</th><th scope="col">Source</th>
|
|
<th scope="col">Override</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr id="form-operator.integration.settings-override" class="app-form-field">
|
|
<th scope="row" class="fw-normal">
|
|
|
|
<label class="form-label form-label-sm" for="form-operator.integration.settings-override-control">override</label>
|
|
|
|
<div id="form-operator.integration.settings-override-hint" class="form-text">One row per configuration key the installed integration declares.</div>
|
|
|
|
</th>
|
|
<td></td><td></td>
|
|
<td>
|
|
<input type="text" class="form-control form-control-sm" id="form-operator.integration.settings-override-control" name="override" value="" autocomplete="off" aria-describedby="form-operator.integration.settings-override-hint">
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="d-flex flex-wrap gap-2 app-form-commit">
|
|
|
|
<button type="submit" class="btn btn-primary"><span class="spinner-border spinner-border-sm htmx-indicator me-1" aria-hidden="true"></span>Save</button>
|
|
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
===== operator.integration.settings record
|
|
|
|
|
|
|
|
<form id="form-operator.integration.settings-i1" data-form="operator.integration.settings" data-form-kind="settings" class="app-form app-form-table" novalidate hx-post="/operator/integrations/{integrationKey}/settings" hx-target="#operator-body" hx-swap="innerHTML" hx-disable="find button[type=submit]" hx-indicator="find .htmx-indicator">
|
|
<div id="form-operator.integration.settings-i1-error" class="app-form-error"></div>
|
|
|
|
<div class="app-form-message mb-2"><p>msg</p></div>
|
|
|
|
|
|
|
|
|
|
<div class="table-responsive">
|
|
<table class="table align-middle">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Key</th>
|
|
<th scope="col">Effective value</th><th scope="col">Source</th>
|
|
<th scope="col">Override</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr id="form-operator.integration.settings-i1-override" class="app-form-field">
|
|
<th scope="row" class="fw-normal">
|
|
|
|
<label class="form-label form-label-sm" for="form-operator.integration.settings-i1-override-control">override</label>
|
|
|
|
<div id="form-operator.integration.settings-i1-override-hint" class="form-text">One row per configuration key the installed integration declares.</div>
|
|
|
|
</th>
|
|
<td><i>cell</i></td><td><i>cell 2</i></td>
|
|
<td>
|
|
<input type="text" class="form-control form-control-sm" id="form-operator.integration.settings-i1-override-control" name="override" value="sample" autocomplete="off" aria-describedby="form-operator.integration.settings-i1-override-hint">
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="d-flex flex-wrap gap-2 app-form-commit">
|
|
|
|
<button type="submit" class="btn btn-primary"><span class="spinner-border spinner-border-sm htmx-indicator me-1" aria-hidden="true"></span>Save</button>
|
|
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
===== operator.integration.settings refused []
|
|
|
|
|
|
|
|
<form id="form-operator.integration.settings" data-form="operator.integration.settings" data-form-kind="settings" class="app-form app-form-table" novalidate hx-post="/operator/integrations/{integrationKey}/settings" hx-target="#operator-body" hx-swap="innerHTML" hx-disable="find button[type=submit]" hx-indicator="find .htmx-indicator">
|
|
<div id="form-operator.integration.settings-error" class="app-form-error"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="table-responsive">
|
|
<table class="table align-middle">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Key</th>
|
|
<th scope="col">Effective value</th><th scope="col">Source</th>
|
|
<th scope="col">Override</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr id="form-operator.integration.settings-override" class="app-form-field">
|
|
<th scope="row" class="fw-normal">
|
|
|
|
<label class="form-label form-label-sm" for="form-operator.integration.settings-override-control">override</label>
|
|
|
|
<div id="form-operator.integration.settings-override-hint" class="form-text">One row per configuration key the installed integration declares.</div>
|
|
|
|
</th>
|
|
<td></td><td></td>
|
|
<td>
|
|
<input type="text" class="form-control form-control-sm" id="form-operator.integration.settings-override-control" name="override" value="" autocomplete="off" aria-describedby="form-operator.integration.settings-override-hint">
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="d-flex flex-wrap gap-2 app-form-commit">
|
|
|
|
<button type="submit" class="btn btn-primary"><span class="spinner-border spinner-border-sm htmx-indicator me-1" aria-hidden="true"></span>Save</button>
|
|
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
===== operator.integration.settings bad-values refusals
|
|
|