From 737e4b556f4a18cd09665ff9078326b7daf01857 Mon Sep 17 00:00:00 2001 From: Richard Li Date: Tue, 3 Dec 2024 08:13:44 -0800 Subject: [PATCH 1/2] Clean up Q explore UX --- plugins/amazonq/mynah-ui/package-lock.json | 8 ++++---- plugins/amazonq/mynah-ui/package.json | 2 +- .../src/mynah-ui/ui/walkthrough/agent.ts | 19 +++++++++++++------ 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/plugins/amazonq/mynah-ui/package-lock.json b/plugins/amazonq/mynah-ui/package-lock.json index 37e7bd7efce..9dd59d21e7d 100644 --- a/plugins/amazonq/mynah-ui/package-lock.json +++ b/plugins/amazonq/mynah-ui/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "license": "ISC", "dependencies": { - "@aws/mynah-ui-chat": "npm:@aws/mynah-ui@4.18.1", + "@aws/mynah-ui-chat": "npm:@aws/mynah-ui@4.20.0", "@types/node": "^14.18.5", "fs-extra": "^10.0.1", "sanitize-html": "^2.12.1", @@ -57,9 +57,9 @@ }, "node_modules/@aws/mynah-ui-chat": { "name": "@aws/mynah-ui", - "version": "4.18.1", - "resolved": "https://registry.npmjs.org/@aws/mynah-ui/-/mynah-ui-4.18.1.tgz", - "integrity": "sha512-531FL5509O081eWIk0P0reQhGTm/ZaXhRu6FLNqMvAKySPtJyyxee0ieeGAR8h5CVI75learQbXJEGJC6XibAA==", + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@aws/mynah-ui/-/mynah-ui-4.20.0.tgz", + "integrity": "sha512-kG6/fGCz71OFMWI8MtdUepChXWytZqLyAHJZWAxWtE3PogXslNp09tTEwRwZhgdjjJkyiuCN8zmqM5Hg7mnitA==", "hasInstallScript": true, "license": "Apache License 2.0", "dependencies": { diff --git a/plugins/amazonq/mynah-ui/package.json b/plugins/amazonq/mynah-ui/package.json index edb7db66245..f0208857e6e 100644 --- a/plugins/amazonq/mynah-ui/package.json +++ b/plugins/amazonq/mynah-ui/package.json @@ -12,7 +12,7 @@ "lintfix": "eslint -c .eslintrc.js --fix --ext .ts ." }, "dependencies": { - "@aws/mynah-ui-chat": "npm:@aws/mynah-ui@4.18.1", + "@aws/mynah-ui-chat": "npm:@aws/mynah-ui@4.20.0", "@types/node": "^14.18.5", "fs-extra": "^10.0.1", "sanitize-html": "^2.12.1", diff --git a/plugins/amazonq/mynah-ui/src/mynah-ui/ui/walkthrough/agent.ts b/plugins/amazonq/mynah-ui/src/mynah-ui/ui/walkthrough/agent.ts index 476991f5be1..02b2818a2fb 100644 --- a/plugins/amazonq/mynah-ui/src/mynah-ui/ui/walkthrough/agent.ts +++ b/plugins/amazonq/mynah-ui/src/mynah-ui/ui/walkthrough/agent.ts @@ -11,7 +11,6 @@ function createdTabbedData(examples: string[], agent: string): ChatItemContent[' { label: 'Examples', value: 'examples', - icon: MynahIcons.PLAY, content: { body: `**Example use cases:**\n${exampleText}\n\nEnter ${agent} in Q Chat to get started`, }, @@ -59,6 +58,7 @@ Implement features or make changes across your workspace, all from a single prom status: 'main', disabled: false, flash: 'once', + fillState: 'hover', icon: MynahIcons.RIGHT_OPEN, id: 'quick-start-featuredev', text: `Quick start with **/dev**`, @@ -86,10 +86,11 @@ Automatically generate unit tests for your active file. text: 'Read user guide', }, { - status: 'primary', + status: 'main', disabled: false, - icon: MynahIcons.RIGHT_OPEN, flash: 'once', + fillState: 'hover', + icon: MynahIcons.RIGHT_OPEN, id: 'quick-start-codetest', text: `Quick start with **/test**`, }, @@ -120,9 +121,11 @@ Create and update READMEs for better documented code. text: 'Read user guide', }, { + status: 'main', disabled: false, + flash: 'once', + fillState: 'hover', icon: MynahIcons.RIGHT_OPEN, - flash: 'infinite', id: 'quick-start-doc', text: `Quick start with **/doc**`, }, @@ -153,9 +156,11 @@ Review code for issues, then get suggestions to fix your code instantaneously. text: 'Read user guide', }, { + status: 'main', disabled: false, + flash: 'once', + fillState: 'hover', icon: MynahIcons.RIGHT_OPEN, - flash: 'infinite', id: 'quick-start-codescan', text: `Quick start with **/review**`, }, @@ -182,9 +187,11 @@ Upgrade library and language versions in your codebase. text: 'Read user guide', }, { + status: 'main', disabled: false, + flash: 'once', + fillState: 'hover', icon: MynahIcons.RIGHT_OPEN, - flash: 'infinite', id: 'quick-start-codetransform', text: `Quick start with **/transform**`, }, From 1159706e888624751865ffe7e8e672cc370c9470 Mon Sep 17 00:00:00 2001 From: Richard Li Date: Tue, 3 Dec 2024 08:18:21 -0800 Subject: [PATCH 2/2] mynah bump --- .../bugfix-7391344e-e006-4fc0-bea0-0c5ee2db3be0.json | 4 ++++ .../feature-3171e147-0136-449d-b5d7-25c176447b86.json | 4 ++++ .../feature-f74db7ad-9389-44af-8acb-2d64e9b99427.json | 4 ++++ plugins/amazonq/mynah-ui/package-lock.json | 8 ++++---- plugins/amazonq/mynah-ui/package.json | 2 +- 5 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 .changes/next-release/bugfix-7391344e-e006-4fc0-bea0-0c5ee2db3be0.json create mode 100644 .changes/next-release/feature-3171e147-0136-449d-b5d7-25c176447b86.json create mode 100644 .changes/next-release/feature-f74db7ad-9389-44af-8acb-2d64e9b99427.json diff --git a/.changes/next-release/bugfix-7391344e-e006-4fc0-bea0-0c5ee2db3be0.json b/.changes/next-release/bugfix-7391344e-e006-4fc0-bea0-0c5ee2db3be0.json new file mode 100644 index 00000000000..00b9a1651da --- /dev/null +++ b/.changes/next-release/bugfix-7391344e-e006-4fc0-bea0-0c5ee2db3be0.json @@ -0,0 +1,4 @@ +{ + "type" : "bugfix", + "description" : "Amazon Q: Fix chat syntax highlighting when using several different themes" +} \ No newline at end of file diff --git a/.changes/next-release/feature-3171e147-0136-449d-b5d7-25c176447b86.json b/.changes/next-release/feature-3171e147-0136-449d-b5d7-25c176447b86.json new file mode 100644 index 00000000000..c0a0b1e6acb --- /dev/null +++ b/.changes/next-release/feature-3171e147-0136-449d-b5d7-25c176447b86.json @@ -0,0 +1,4 @@ +{ + "type" : "feature", + "description" : "Amazon Q: UI improvements to chat: New splash loader animation, initial streaming card animation, improved button colours" +} \ No newline at end of file diff --git a/.changes/next-release/feature-f74db7ad-9389-44af-8acb-2d64e9b99427.json b/.changes/next-release/feature-f74db7ad-9389-44af-8acb-2d64e9b99427.json new file mode 100644 index 00000000000..3c337785a2a --- /dev/null +++ b/.changes/next-release/feature-f74db7ad-9389-44af-8acb-2d64e9b99427.json @@ -0,0 +1,4 @@ +{ + "type" : "feature", + "description" : "Amazon Q: Navigate through prompt history by using the up/down arrows" +} \ No newline at end of file diff --git a/plugins/amazonq/mynah-ui/package-lock.json b/plugins/amazonq/mynah-ui/package-lock.json index 9dd59d21e7d..6160a5c59b6 100644 --- a/plugins/amazonq/mynah-ui/package-lock.json +++ b/plugins/amazonq/mynah-ui/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "license": "ISC", "dependencies": { - "@aws/mynah-ui-chat": "npm:@aws/mynah-ui@4.20.0", + "@aws/mynah-ui-chat": "npm:@aws/mynah-ui@4.21.0", "@types/node": "^14.18.5", "fs-extra": "^10.0.1", "sanitize-html": "^2.12.1", @@ -57,9 +57,9 @@ }, "node_modules/@aws/mynah-ui-chat": { "name": "@aws/mynah-ui", - "version": "4.20.0", - "resolved": "https://registry.npmjs.org/@aws/mynah-ui/-/mynah-ui-4.20.0.tgz", - "integrity": "sha512-kG6/fGCz71OFMWI8MtdUepChXWytZqLyAHJZWAxWtE3PogXslNp09tTEwRwZhgdjjJkyiuCN8zmqM5Hg7mnitA==", + "version": "4.21.0", + "resolved": "https://registry.npmjs.org/@aws/mynah-ui/-/mynah-ui-4.21.0.tgz", + "integrity": "sha512-hEo9T1FeDoh79xA2nXaz3Le0SJES8YTuAOlleR8UKfbmzyfWzvvgO/yDIQ6dK39NO0cuQw+6XYGlIVDFpKfEkA==", "hasInstallScript": true, "license": "Apache License 2.0", "dependencies": { diff --git a/plugins/amazonq/mynah-ui/package.json b/plugins/amazonq/mynah-ui/package.json index f0208857e6e..ec226f9a7a0 100644 --- a/plugins/amazonq/mynah-ui/package.json +++ b/plugins/amazonq/mynah-ui/package.json @@ -12,7 +12,7 @@ "lintfix": "eslint -c .eslintrc.js --fix --ext .ts ." }, "dependencies": { - "@aws/mynah-ui-chat": "npm:@aws/mynah-ui@4.20.0", + "@aws/mynah-ui-chat": "npm:@aws/mynah-ui@4.21.0", "@types/node": "^14.18.5", "fs-extra": "^10.0.1", "sanitize-html": "^2.12.1",