docs: describe the accept delay
This commit is contained in:
@@ -84,6 +84,7 @@ Jellyfin 10.11 has no "Custom HTML" setting in the dashboard. The branding page
|
||||
**Notices tab**
|
||||
|
||||
- *New notice*: title, message, whether it has to be accepted, whether it is enabled, and who gets it (all users, or users picked from a list).
|
||||
- *Wait before "Accept" can be clicked*: for a must-accept notice, the number of seconds (0 to 600) the *Accept* button stays locked. It shows a countdown, and only time with the tab in view counts.
|
||||
- The message is plain text and line breaks are kept. A small Markdown subset is understood: `**bold**`, `*italic*`, `[text](https://…)`, and lines starting with `- ` or `1. ` as lists. HTML is not interpreted; it shows up as text.
|
||||
- *Enabled* switches a notice off without deleting it.
|
||||
- *Re-show to everyone* shows the notice again to all addressed users, including those who already responded. Editing a notice does **not** do that.
|
||||
@@ -91,7 +92,7 @@ Jellyfin 10.11 has no "Custom HTML" setting in the dashboard. The branding page
|
||||
|
||||
**What users see**
|
||||
|
||||
One notice at a time, oldest first. A normal notice has a *Close* button; clicking outside or pressing Escape also closes it and counts as dismissed. A must-accept notice has only an *Accept* button; clicking outside and Escape do nothing. The script asks for new notices after login, after a user switch, and then every 10 minutes while the tab is visible.
|
||||
One notice at a time, oldest first. A normal notice has a *Close* button; clicking outside or pressing Escape also closes it and counts as dismissed. A must-accept notice has only an *Accept* button; clicking outside and Escape do nothing. If a wait is set, the button reads *Accept (12)* and unlocks when the countdown reaches zero. The script asks for new notices after login, after a user switch, and then every 10 minutes while the tab is visible.
|
||||
|
||||
**Stats tab**
|
||||
|
||||
@@ -108,7 +109,7 @@ All routes are under `/Herald`. Authentication is Jellyfin's normal `Authorizati
|
||||
| `POST` | `/Herald/Notices/{id}/Ack` | signed-in user | Body `{ "revision": 1, "action": "Accepted" }` (`Accepted` or `Dismissed`). `204` on success, `400` if a must-accept notice is dismissed, `404` if the notice is gone or not addressed to the caller, `409` if the revision is outdated. |
|
||||
| `GET` | `/Herald/Notices` | admin | All notices. |
|
||||
| `GET` | `/Herald/Notices/{id}` | admin | One notice. |
|
||||
| `POST` | `/Herald/Notices` | admin | Create. Body: `Title`, `Body`, `RequireAccept`, `Enabled`, `Target: { AllUsers, UserIds }`. |
|
||||
| `POST` | `/Herald/Notices` | admin | Create. Body: `Title`, `Body`, `RequireAccept`, `AcceptDelaySeconds` (0 to 600, ignored unless `RequireAccept`), `Enabled`, `Target: { AllUsers, UserIds }`. |
|
||||
| `PUT` | `/Herald/Notices/{id}` | admin | Update, same body. Keeps the revision. |
|
||||
| `DELETE` | `/Herald/Notices/{id}` | admin | Delete the notice and its responses. |
|
||||
| `POST` | `/Herald/Notices/{id}/Reshow` | admin | Bump the revision. |
|
||||
@@ -123,6 +124,7 @@ A notice looks like this:
|
||||
"Title": "House rules",
|
||||
"Body": "Be nice.",
|
||||
"RequireAccept": true,
|
||||
"AcceptDelaySeconds": 15,
|
||||
"Enabled": true,
|
||||
"Target": { "AllUsers": false, "UserIds": ["21b3bac6acfe496bbca02a21c21e36d4"] },
|
||||
"Revision": 2,
|
||||
|
||||
Reference in New Issue
Block a user