feat: improve iFlow cookie auth UX with duplicate config handling

- Add 409 conflict handling for duplicate iFlow config files
  - Add key creation hint in cookie login section
  - Move extra actions button after delete button for consistency
  - Improve OAuth status badge display logic (hide when idle)
  - Add config toggle enable/disable i18n translations
  - Adjust item-actions spacing from sm to md
This commit is contained in:
Supra4E8C
2025-12-14 18:04:26 +08:00
parent aea1ceb6be
commit ea2ce4047f
5 changed files with 70 additions and 35 deletions

View File

@@ -1046,7 +1046,6 @@ export function AiProvidersPage() {
<div key={keyField(item)} className="item-row" style={rowDisabled ? { opacity: 0.6 } : undefined}>
<div className="item-meta">{renderContent(item, index)}</div>
<div className="item-actions">
{options?.renderExtraActions ? options.renderExtraActions(item, index) : null}
<Button
variant="secondary"
size="sm"
@@ -1063,6 +1062,7 @@ export function AiProvidersPage() {
>
{deleteLabel || t('common.delete')}
</Button>
{options?.renderExtraActions ? options.renderExtraActions(item, index) : null}
</div>
</div>
);