- 
                Notifications
    
You must be signed in to change notification settings  - Fork 32
 
🐛 [Frontend] Fix: Limit conversation title (50) #8416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 [Frontend] Fix: Limit conversation title (50) #8416
Conversation
…ore into enh/function-checks
…simcore into fix/consistent-modified
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds character limits to conversation titles and message content in the frontend. The main purpose is to enforce a maximum length of 50 characters for conversation titles and 4096 characters for message content.
- Refactored the Renamer widget to use a property-based approach for character limits
 - Added constants for maximum title and content lengths in the Conversation model
 - Applied character limits to conversation renaming functionality and message input
 
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description | 
|---|---|
| osparc/widget/Renamer.js | Refactored to use child controls and added maxChars property with subtitle display | 
| osparc/support/ConversationPage.js | Applied character limit to conversation renaming | 
| osparc/study/ConversationPage.js | Applied character limit to conversation renaming | 
| osparc/data/model/Conversation.js | Added constants for max title/content length and improved error handling | 
| osparc/conversation/AddMessage.js | Applied character limit to message input field | 
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
          
 | 
    



What do these changes do?
reported by @ahalder2
This PR adds character limits to conversation titles and message content in the frontend. The main purpose is to enforce a maximum length of 50 characters for conversation titles and 4096 characters for message content.
Bonus
Limited to 10 for the demo:

Related issue/s
How to test
Dev-ops