Rename a conversation from the sidebar
维护者通常 1 天内回复
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 62/100
调研方向
Start by reading the existing crud.update_conversation_title implementation and tests, then inspect the conversation routes and CORS configuration. Add the PATCH /conversations/{id} behavior described in the issue, implement the matching route in frontend/mock-flask-api, and wire the sidebar rename prompt to update its title and the open conversation header. Done means the API responses and validation match the proposal and renaming works in both the mock and Next.js UI.
由索引模型根据 Issue 内容生成。
描述
The Next.js sidebar lists conversations by title, but a title can't be changed. A conversation keeps the title it got when it was created (its first question, cut to 100 characters) or stays "Untitled conversation". A long thread can end up with a name that no longer describes it, and the sidebar only offers delete.
The backend already has crud.update_conversation_title, with tests, but no route calls it. /conversations/{id} has GET and DELETE, but no update.
Proposal
- Backend:
PATCH /conversations/{id}with a{"title": "..."}body. It strips surrounding whitespace and accepts 1 to 500 characters (the column isString(500)), so a blank title gets a 422. It returns the conversation without its messages, the same shape as an item ofGET /conversations. Like the other conversation routes, it returns 404 for an unknown id and 503 when the database is disabled. Because the Next.js app calls the API from another origin,PATCHmust be added to the CORSallow_methods. - Next.js: a rename button next to the delete button in the sidebar. It asks for the new title with
window.prompt, as delete asks withwindow.confirm, then updates the sidebar entry and, for the open conversation, the header. - Mock API: the same route in
frontend/mock-flask-api, so the UI can be developed against the mock.
- 主要语言
- Python
- 星标
- 51
- 派生
- 27
- 平均合并
- 11 小时 59 分钟
- 30 天内合并 PR
- 33
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
The-OpenROAD-Project/ORAssistant 的其他 Issue
-
A JSON chat answer blocks the backend event loop for the whole RAG run可能已有人在做 @NopeCharon 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
The-OpenROAD-Project/ORAssistant#656 ·
维护者通常 1 天内回复
-
Conversations from POST /conversations stay untitled and keep their creation time可能已有人在做 @NopeCharon 今天认领。 未关闭
难度 3/5 1-2 天 新手友好度 35/100
The-OpenROAD-Project/ORAssistant#655 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 20/100
The-OpenROAD-Project/ORAssistant#186 · 1 条评论 ·
维护者通常 1 天内回复
-
Deprecate GOOGLE_APPLICATION_CREDENTIALS可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 3/5 1-2 天 新手友好度 35/100
The-OpenROAD-Project/ORAssistant#155 · 2 条评论 ·
维护者通常 1 天内回复
-
Add button to OR GUI for easy access可能重新可做 @sparsh-karna 于 164 天前认领,目前没有进行中的 PR。 未关闭
The-OpenROAD-Project/ORAssistant#152 · 4 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 The-OpenROAD-Project/ORAssistant 的全部 Issue
相似的 Issue
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionError可能已有人在做 @jejjohnson 今天认领。 未关闭type:bug
难度 2/5 1-3 小时 新手友好度 72/100
jejjohnson/integrix#144 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
finos/ai-governance-framework#459 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
freelawproject/litigant-portal#1307 ·
维护者通常 2 天内回复