-
Notifications
You must be signed in to change notification settings - Fork 37
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
REDBOX-440 - Editable chat title #770
Conversation
6564a03
to
f4e2222
Compare
fb9f2aa
to
b55caf2
Compare
console.log(`updating chat title to "${newTitle}"`); | ||
this.send(newTitle) | ||
this.dataset.title = newTitle; | ||
this.heading.innerHTML = `${newTitle} ${this.pencilIcon}`; |
Check warning
Code scanning / CodeQL
DOM text reinterpreted as HTML Medium
bd894dc
to
79b9eb2
Compare
chats_page = chats_page.navigate_to_titled_chat("What architecture is in use?") | ||
chats_page.chat_title = "About tech stuff." | ||
chats_page = chats_page.start_new_chat() | ||
chats_page = chats_page.navigate_to_titled_chat("About tech stuff.") |
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.
I really like the tests - it's v clear what you've changed
@@ -297,3 +307,125 @@ class DocumentSelector extends HTMLElement { | |||
} | |||
} | |||
customElements.define("document-selector", DocumentSelector); | |||
|
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.
Question: do we want to start thinking about breaking this file up into its different components?
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.
That's not a bad idea at all. The feedback component is already in a file of its own.
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.
Moved.
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.
I think that's a good idea, and now we have Parcel doing the bundling this should be relatively clean and simple.
|
||
update = () => { | ||
const newTitle = this.input?.value; | ||
console.log(`updating chat title to "${newTitle}"`); |
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.
are we keeping this for the user?
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.
Good catch - I'll get rid.
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.
Gone.
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.
Looks good to me.
(I think CHAT_TITLE_LENGTH = 30
is a bit short, but it looks like that was a previous PR/decision.)
e19fa62
to
b2bea2a
Compare
Context
Changes proposed in this pull request
Guidance to review
Relevant links
Things to check