Refactor settings: multi-provider table configuration#56
Merged
Empreiteiro merged 2 commits intomainfrom Mar 27, 2026
Merged
Conversation
Replace the single-provider settings form with a table-based UI that supports multiple AI and OCR providers simultaneously. Each provider row shows its configuration status, model, and API key state with edit/test/delete actions. Users can switch the default provider used for processing without losing other configurations. - Add ProviderConfig model with kind/provider_name/is_default columns - Seed default providers (OpenAI, Claude, Gemini, Tesseract, Mistral) - CRUD API at /api/settings/providers with set-default and test endpoints - Update ai_provider.py factory to read from ProviderConfig table - Remove dependency validation from settings page (moved to /dependencies) - Rewrite settings page with separate AI and OCR provider tables Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… to dependencies - Merge AI and OCR providers into one table matching the project's table style (bg-muted/30 header, group hover, uppercase headers, opacity-0 action buttons) - Add "Type" column (AI / OCR badge) instead of separate card sections - Remove Tesseract from provider seeds — it is a system dependency managed on the /dependencies page, not an API-key provider - Remove tesseract-specific test logic from settings API - Use Skeleton loading state consistent with other pages Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ProviderConfigdatabase model supporting multiple AI and OCR providers/dependenciespage in PR Add dependencies management page #55)ai_provider.pyfactory reads fromProviderConfigtable with legacy fallbackTest plan
/settingsand verify AI Providers and OCR Providers tables render🤖 Generated with Claude Code