Skip to content
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

feat(cw): Enhance UX for Q chat #6611

Open
wants to merge 24 commits into
base: feature/falcon
Choose a base branch
from

Conversation

leigaol
Copy link
Contributor

@leigaol leigaol commented Feb 18, 2025

Problem

The Q chat experience needs improvement.

Solution

  1. Enabling prompt templates in chat window.
  2. Allow user to explicit select file or folder selector in the chat window as context.
  3. Improve context transparency, show user what context was used in the chat response.

  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@leigaol leigaol requested review from a team as code owners February 18, 2025 19:06
Copy link

  • This pull request modifies code in src/* but no tests were added/updated.
    • Confirm whether tests should be added or ensure the PR description explains why tests are not required.
  • This pull request implements a feat or fix, so it must include a changelog entry (unless the fix is for an unreleased feature). Review the changelog guidelines.
    • Note: beta or "experiment" features that have active users should announce fixes in the changelog.
    • If this is not a feature or fix, use an appropriate type from the title guidelines. For example, telemetry-only changes should use the telemetry type.

@andrewyuq andrewyuq requested review from a team as code owners February 18, 2025 19:41
@@ -1019,6 +1019,8 @@ export interface RelevantTextDocument {
* @public
*/
documentSymbols?: (DocumentSymbol)[] | undefined;
startLine?: number;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider moving these out from src.gen because code in src.gen are supposed to be auto generated. Next time it updates, these 2 fields will be gone

@leigaol leigaol force-pushed the internal_falcon_release branch from 174148b to e2354da Compare February 19, 2025 20:13
@avi-alpert avi-alpert force-pushed the internal_falcon_release branch from a0681aa to 3dca459 Compare February 19, 2025 21:07
leigaol and others added 18 commits February 19, 2025 16:11
* local ws working

* beta_2

* rename

* update

* code format

* apply context cmd to all tabs

* context to the api call

* minimize changes

* update

* update

* format code

* update to lsp

* update context commands

* update context commands

* clean up

* beta5

* update

* use lsp to resolve additionalContext
* feat(amazonq): saved prompts

* fix: remove unecessary change
* feat(amazonq): saved prompts

* fix: remove unecessary change

* feat(amazonq): saved prompts

* fix: remove unecessary change

* feat(amazonq): add Create a new prompt button to context
* Add context transparency feature to Q chat @workspace

* remove console log

* remove console log

* remove unused FileClickMessage
* feat(amazonq): saved prompts

* fix: remove unecessary change

* feat(amazonq): saved prompts

* fix: remove unecessary change

* fix: add fs exists check for ~/.aws/prompts

* fix: whitespace
* fix: @workspace command

* remove first instance of workspace from message
* fix: add feature flag command to context

* fix: move into additional commands
* fix: refresh prompt list when project prompt is added

* fix: validate length and size of additionalContents

* fix: truncate additionalContents based on api validation limits

* fix: move constants
* context transparency multiple fixes

1. add manually selected context from prompt into context list
2. fix -1 start/end line edge cases
3. Center selction after clicking on the file

* remove console.log
@avi-alpert avi-alpert force-pushed the internal_falcon_release branch from 3dca459 to fbd40c8 Compare February 19, 2025 21:12
leigaol and others added 4 commits February 19, 2025 15:13
)

* feat: add automatic workspace rules and fix clicking on user prompt in context transparency

* add comments to code

* fix: display os specific path in create prompt dialog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants