Degrade gracefully when tools are missing and support low-resource servers
Problem/Motivation
Several features depend on things a site may not have: image_effects, ImageMagick, ExifTool, ffmpeg and ffprobe, drupal/ai with a text-to-speech provider, and a browser that can record. Today a missing tool shows up in the status report, but the forms do not say why a feature is off, and the video and audio queue can accept work that will only fail. Small or shared servers can also struggle with FFmpeg renders.
Proposed resolution
- One rule everywhere: a feature whose tool is missing stays visible but disabled, with a warning that says what is missing and how to install it on Debian/Ubuntu, in Docker, in DDEV and on shared hosting.
- No queued jobs without the binaries they need.
- The status report carries the explanation: what is missing, which feature is off, the main install command, and a link to the matching section of a Requirements page in the published docs (https://project.pages.drupalcode.org/ai_disclosure/requirements/). Forms show one short line with the same link.
- A low-resource mode for ai_disclosure_av: one render at a time, an FFmpeg thread limit and a fast preset, a time budget per cron run, the existing maximum duration, and a Drush command to render on another machine and upload the result.
#68 (closed) ships the behaviour only: disabled features, no queued jobs without the binaries, status report entries with a link, and a skeleton Requirements page whose sections are marked [TODO]. The warning design and the full guides wait for the unified UI.
Remaining tasks
- Shared availability helper and warning element
- Apply it to ai_disclosure_image, ai_disclosure_av and the Output settings
- Low-resource settings and the remote render command
- Every status report entry with a warning or an error links to the page that fixes it and, for a missing tool, to its Requirements section
- Docs: fill the [TODO] sections of the Requirements page with three variants for every missing piece: Ubuntu (the default shown in the status report), a basic or shared server without root, and Docker
Part of #80 (closed) and #83 (closed).
AI Compliance
🤖 Generated with the help of an LLM, reviewed and approved by me before posting.