Group the media settings under one Media tab

Problem/Motivation

The settings of AI Disclosure have up to ten top-level tabs, and media settings sit in four of them: "Labels on images" on Output, Image derivatives, Video and audio, Audio disclaimer. In Claro the tab row wraps, and an administrator cannot see the media settings in one place.

Proposed resolution

One top-level Media tab with sub-tabs:

  • Images: always present, since the overlay settings belong to the main module. It takes "Labels on images" from Output. The ExifTool path and the burn-in overview appear when ai_disclosure_image is enabled.
  • Video and audio and Spoken disclaimer: when ai_disclosure_av is enabled.

The top level becomes Policy, Output, Media, Fields, Grades, Profiles, plus Tool and Workflow when their submodules are on.

Nothing moves in config. The existing paths keep working: /video-audio and /video-audio/audio keep their routes, and only the parent of their local tasks changes. The ExifTool setting joins Media > Images, and /admin/config/content/ai-disclosure/image keeps its route and redirects there. Output keeps a one-line pointer to Media > Images for one release.

Remaining tasks

  • Media local task and sub-tasks
  • Move "Labels on images" into Media > Images, keeping the config keys
  • Pointer line on Output
  • Functional tests for the tab structure, with and without each submodule
  • Docs and screenshots

Acceptance criteria

  • /video-audio and /video-audio/audio answer 200 with the same form, the old image path redirects to Media > Images, and saving a form leaves untouched values as they were.
  • Media > Images is present with only the main module enabled.
  • An upgrade test from a site with filled-in media settings shows no lost value.
  • No horizontal scrolling of the settings pages at 360 px.

User interface changes

Settings tabs reorganised.

API changes

None. Route names stay.

Data model changes

None.

Part of #83 (closed).

AI Compliance

🤖 Generated with the help of an LLM, reviewed and approved by me before posting.

Edited by Giorgio Alfredo Pagano