Rename a conversation from the sidebar
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 62/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Python
- Stars
- 52
- Forks
- 29
- Avg merge
- 11h 59m
- Merged PRs (30d)
- 33
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from The-OpenROAD-Project/ORAssistant
-
A JSON chat answer blocks the backend event loop for the whole RAG runPossibly taken @NopeCharon claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
The-OpenROAD-Project/ORAssistant#656 ·
Maintainers usually reply within 1 day
-
Conversations from POST /conversations stay untitled and keep their creation timePossibly taken @NopeCharon claimed this today. Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
The-OpenROAD-Project/ORAssistant#655 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
The-OpenROAD-Project/ORAssistant#186 · 1 comment ·
Maintainers usually reply within 1 day
-
Deprecate GOOGLE_APPLICATION_CREDENTIALSMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
The-OpenROAD-Project/ORAssistant#155 · 2 comments ·
Maintainers usually reply within 1 day
-
Add button to OR GUI for easy accessMay be free again @sparsh-karna claimed this 165 days ago, and no pull request is open. Open
The-OpenROAD-Project/ORAssistant#152 · 4 comments · 1 assignee ·
Maintainers usually reply within 1 day
All issues in The-OpenROAD-Project/ORAssistant
Similar issues
-
docs(contributing): the two things that silently block a PRPossibly taken A pull request linked to this issue is open or already merged. Openavailable documentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
Nixitov/Riptide-Native#944 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
JTHCode/secretguard#24 ·
Maintainers usually reply within 1 day
-
area: middleware documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 ·
Maintainers usually reply within 1 day