Skip to content

feat(settings): mark legacy AI providers in admin settings#59453

Open
NavpreetSSidhu wants to merge 2 commits intonextcloud:masterfrom
NavpreetSSidhu:feat/mark-legacy-ai-providers
Open

feat(settings): mark legacy AI providers in admin settings#59453
NavpreetSSidhu wants to merge 2 commits intonextcloud:masterfrom
NavpreetSSidhu:feat/mark-legacy-ai-providers

Conversation

@NavpreetSSidhu
Copy link
Copy Markdown

Summary

Resolves #58823

  • Mark the Machine Translation, Image Generation, and Text Processing sections as (Legacy) in the AI admin settings
  • Legacy sections are collapsed by default behind a toggle button with chevron icons
  • Each legacy section shows a deprecation warning (NcNoteCard type="warning") recommending Unified task processing
  • Renamed "Free text to text prompt" to "Generate text" in the TaskProcessing section (matched by type.id === 'core:text2text')

Changes

Single file change: apps/settings/src/components/AdminAI.vue

  • Added showLegacySections toggle state (default: false)
  • Added NcButton with ChevronDown/ChevronUp icons to expand/collapse legacy sections
  • Wrapped 3 legacy NcSettingsSection blocks in <div v-show="showLegacySections">
  • Appended "(Legacy)" to each legacy section name
  • Added NcNoteCard type="warning" deprecation notice in each legacy section
  • Added getTaskTypeName() method to rename "Free text to text prompt" → "Generate text"

Test plan

  • Navigate to Admin Settings → Artificial Intelligence
  • Verify legacy sections are collapsed by default
  • Click "Show legacy provider settings" — sections expand with chevron flipping
  • Verify section names show "(Legacy)" suffix
  • Verify each legacy section shows a yellow warning note card
  • Click "Hide legacy provider settings" — sections collapse
  • Verify "Generate text" appears instead of "Free text to text prompt" in Unified task processing section
  • Verify all existing functionality (provider selection, drag reorder, radio selection) still works

Mark the Machine Translation, Image Generation, and Text Processing
sections as legacy in the AI admin settings to reduce user confusion.
Legacy sections are collapsed by default behind a toggle button, each
displays a deprecation warning recommending Unified task processing,
and "Free text to text prompt" is renamed to "Generate text".

Closes: nextcloud#58823

Signed-off-by: Navpreet Sidhu <navpreetsidhu@users.noreply.github.com>
Signed-off-by: Navpreet Sidhu <navpreetsidhu@users.noreply.github.com>
@NavpreetSSidhu NavpreetSSidhu requested a review from a team as a code owner April 4, 2026 17:37
@NavpreetSSidhu NavpreetSSidhu requested review from nfebe, sorbaugh and szaimen and removed request for a team April 4, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mark the older AI providers as legacy in the AI admin settings.

1 participant