feat: Step4 标题库选择与手动输入合并为单一输入框 #1253

Merged
xiaoxia merged 2 commits from feat/step4-title-autocomplete into develop 2026-08-07 12:35:31 +08:00
Owner

修改内容

将 Step4 标题设置中的"从标题库选择"和"手动输入"两个独立输入区域合并为一个 AutoComplete 组件,节省页面空间。

主要改动

  • 删除"或手动选择"分隔线
  • 删除独立的 Select 组件(标题库选择)
  • 删除独立的 input 组件(手动输入)
  • 替换为统一的 AutoComplete 组件
  • 支持手动输入自定义标题
  • 支持从标题库下拉选择
  • 支持关键词过滤
  • 保留空状态提示

验证方式

  • 手动输入标题 → 正常工作
  • 点击输入框 → 下拉显示标题库选项
  • 输入关键词 → 自动过滤标题库选项
  • 选择标题库选项 → 填充到输入框
  • 标题库为空 → 显示空状态提示
## 修改内容 将 Step4 标题设置中的"从标题库选择"和"手动输入"两个独立输入区域合并为一个 AutoComplete 组件,节省页面空间。 ### 主要改动 - ✅ 删除"或手动选择"分隔线 - ✅ 删除独立的 Select 组件(标题库选择) - ✅ 删除独立的 input 组件(手动输入) - ✅ 替换为统一的 AutoComplete 组件 - ✅ 支持手动输入自定义标题 - ✅ 支持从标题库下拉选择 - ✅ 支持关键词过滤 - ✅ 保留空状态提示 ### 验证方式 - 手动输入标题 → 正常工作 - 点击输入框 → 下拉显示标题库选项 - 输入关键词 → 自动过滤标题库选项 - 选择标题库选项 → 填充到输入框 - 标题库为空 → 显示空状态提示
xiaoxia added 1 commit 2026-08-07 12:24:14 +08:00
feat: merge title library selection and manual input into single AutoComplete
CI/CD Pipeline / Build Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 45s
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 48s
CI/CD Pipeline / PR Build API Image (pull_request) Has been skipped
CI/CD Pipeline / PR Build Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 51s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 53s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 1m40s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 1m42s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m45s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 1m11s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 1m30s
AI Code Review / AI Code Review (pull_request) Failing after 2m29s
CI/CD Pipeline / Validate - Code Quality (pull_request) Successful in 4m20s
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Build Production API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Canary Release to Production (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / CI Gate (pull_request) Successful in 6s
d5ddb47c8f
- Replace separate Select (title library) + input (manual) with unified AutoComplete
- Remove '或手动选择' divider line
- AutoComplete supports both typing custom titles and selecting from library
- Maintains filtering, clear, and empty state functionality
- Saves vertical space in Step4 UI
auto-approve-bot approved these changes 2026-08-07 12:25:57 +08:00
auto-approve-bot left a comment
Collaborator

CI全绿,自动审批通过。

CI全绿,自动审批通过。
auto-approve-bot approved these changes 2026-08-07 12:25:58 +08:00
auto-approve-bot left a comment
Collaborator

CI全绿,自动审批通过。

CI全绿,自动审批通过。

🚀 预览环境已部署

项目 详情
PR号 #1253
预览链接 https://pr-1253.preview.xiaoxiajianji.com
API环境 staging

💡 预览环境使用 staging API 数据,请勿在预览环境中操作重要数据。

🔄 每次提交新代码后预览环境会自动更新。

🗑️ PR 关闭或合并后,预览环境会自动清理。

🚀 **预览环境已部署** | 项目 | 详情 | |------|------| | PR号 | #1253 | | 预览链接 | [https://pr-1253.preview.xiaoxiajianji.com](https://pr-1253.preview.xiaoxiajianji.com) | | API环境 | staging | > 💡 预览环境使用 staging API 数据,请勿在预览环境中操作重要数据。 > > 🔄 每次提交新代码后预览环境会自动更新。 > > 🗑️ PR 关闭或合并后,预览环境会自动清理。
xiaoxia added 1 commit 2026-08-07 12:28:50 +08:00
fix: add maxLength and remove redundant onSelect for AutoComplete
CI/CD Pipeline / Build Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 26s
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / PR Build API Image (pull_request) Has been skipped
CI/CD Pipeline / PR Build Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 56s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 1m9s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 55s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m32s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 1m49s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 1m36s
AI Code Review / AI Code Review (pull_request) Successful in 2m8s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 2m9s
CI/CD Pipeline / Validate - Code Quality (pull_request) Successful in 3m42s
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Build Production API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Canary Release to Production (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 3m47s
CI/CD Pipeline / CI Gate (pull_request) Successful in 8s
ACR Cleanup / ACR Image Cleanup (pull_request_target) Successful in 14s
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 20s
499c66c295
- Add maxLength={50} to match original input constraint
- Remove redundant onSelect handler (onChange covers both typing and selecting)
Collaborator

代码审查结果 - PR #1253

⚠️ 问题(0个需要修改)

💡 建议(1个可选)

  1. Step4TitleSettings.tsx 第96-99行filterOption 中的逻辑存在冗余判断。由于 options 映射时 labelvalue 均赋值为 ut.content,两者必然相等,无需使用 option?.label || option?.value 进行兜底,直接使用 option?.value 即可,代码更简洁。

格式检查通过 | 逻辑审查通过 | 性能良好


🤖 由 AI 代码审查机器人自动生成 | 2026-08-07 04:31:00 | 模型:

## 代码审查结果 - PR #1253 ### ⚠️ 问题(0个需要修改) ### 💡 建议(1个可选) 1. **Step4TitleSettings.tsx 第96-99行**:`filterOption` 中的逻辑存在冗余判断。由于 `options` 映射时 `label` 和 `value` 均赋值为 `ut.content`,两者必然相等,无需使用 `option?.label || option?.value` 进行兜底,直接使用 `option?.value` 即可,代码更简洁。 --- ✅ 格式检查通过 | ✅ 逻辑审查通过 | ✅ 性能良好 --- <sub>🤖 由 AI 代码审查机器人自动生成 | 2026-08-07 04:31:00 | 模型: </sub> <!-- AI_CODE_REVIEW_AUTO_COMMENT -->
xiaoxia merged commit 4931554cb8 into develop 2026-08-07 12:35:31 +08:00

🗑️ 预览环境已清理

PR #1253 已关闭或合并,对应的预览环境已被清理。

如有需要,可以重新打开 PR 来重新生成预览环境。

🗑️ **预览环境已清理** PR #1253 已关闭或合并,对应的预览环境已被清理。 > 如有需要,可以重新打开 PR 来重新生成预览环境。
Sign in to join this conversation.