Skip to content

Commit 276d5d6

Browse files
authored
fix(amazonq): Autofocus to prompt field when Q panel is open
### Problem(s) - When Q panel opens, it doesn't autofocus to prompt input field - Inside chat body, if there is a code block inside a list item it shows `<br/>` tags - Prompt input field in Q Chat tabs doesn't stop after it reaches to the given maxLength - Links are not behaving as expected for middle mouse clicks inside a chat item. ### Solution(s) - Added autofocus to prompt field when the panel opens or there is a new tab. - Removed break generation for list items (which is the supposed way from markedjs and github's own markdown styling) - Prompt input `maxLength` value was used incorrectly, it was using the function declaration instead of the return value of the function. It is corrected. - As we do for the clicks, we also mapped the middle clicks (`auxclick`) to the same handler functions. Related `mynah-ui` changes: [Autofocus](aws/mynah-ui#48) [Rest of the fixes](aws/mynah-ui#49)
1 parent 299d8fa commit 276d5d6

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Amazon Q Chat: Prompt input field in Q Chat tabs doesn't stop after it reaches to the given maxLength"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Amazon Q Chat: When window gets focus, even though the autoFocus property is set to true, input field doesn't get focus"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Amazon Q Chat: Inside chat body, if there is a code block inside a list item it shows <br/> tags"
4+
}

plugins/amazonq/mynah-ui/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/amazonq/mynah-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"lintfix": "eslint -c .eslintrc.js --fix --ext .ts ."
1313
},
1414
"dependencies": {
15-
"@aws/mynah-ui-chat": "npm:@aws/mynah-ui@4.8.0",
15+
"@aws/mynah-ui-chat": "npm:@aws/mynah-ui@4.9.0",
1616
"@types/node": "^14.18.5",
1717
"fs-extra": "^10.0.1",
1818
"ts-node": "^10.7.0",

0 commit comments

Comments
 (0)