-
Notifications
You must be signed in to change notification settings - Fork 45
feat: modify button - card components and function handling on mynah #401
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
base: feature/modify-chat-item-card
Are you sure you want to change the base?
feat: modify button - card components and function handling on mynah #401
Conversation
- Fix nullable boolean expressions with explicit comparisons - Fix string concatenation using template literals - Fix non-null assertions with proper null checks - Fix hasOwnProperty usage with Object.prototype method - Remove unused imports
- Fix nullable boolean expressions with explicit equality checks - Remove unused MynahEventNames import from test file
- Fix any value conditionals with explicit null checks - Fix no-new rule violations with void operator - All lint errors resolved for modify button functionality
- Automatically correct indentation spacing in test files - Resolve final linting issues for push approval
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.
Fix merge conflicts
…nd main - Resolved conflicts in sample-data.ts by keeping both border and padding properties - Updated main.ts with additional chat history entries - All merge conflicts have been successfully resolved
…merge The merge conflict resolution in commit 033d717 accidentally removed the modify button functionality from main.ts. This commit restores: - onInBodyButtonClicked handler for modify-bash-command actions - save-bash-command and cancel-bash-edit functionality - reject-bash-command and run-bash-command handlers - Shell command example in HEADER_TYPES case - SHELL_WITH_MODIFY command case All functionality from the original feature/modify-button-functionality branch has been restored.
- Updated visual snapshots to reflect UI changes from new modify button feature - Fixed failing e2e tests that were caused by layout changes - All tests now pass (126 passed, 4 skipped)
- Remove unused mockTextarea variable - Replace || with ?? for stricter boolean check - Fixes pre-push hook failures
- Updated package.json to use exact version 1.50.0 for both @playwright/test and playwright - This matches the Docker environment version used in CI/CD - Regenerated all snapshots with the correct Playwright version - All 126 tests now pass with updated snapshots
I'm not a fan of thousands of lines of unrelated formatting changes being included in this PR. When future developers make changes to these files the same issue will reoccur. If you want to open a separate PR that fixes the linting/formatting for the example folder I think that would be great |
...ynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-5.png
Outdated
Show resolved
Hide resolved
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.
Please update PR description and documentation according to your changes and remove the commented code
This PR completely breaks the Amazon Q chat experience. Was this tested in VS Code as claimed in the PR description? Screen.Recording.2025-07-21.at.4.28.43.PM.mov |
Most of comments are resolved, currently working on failing render content test case and looking at regression failing in vsc before next push |
…ow boundaries"" This reverts commit b4e99fe.
was able to fix this problem yesterday, still looking at the snapshot error and will be going over the code with mentor Ashish toda |
…com/qjhuangAWS/mynah-ui into feature/modify-button-functionality
…com/qjhuangAWS/mynah-ui into feature/modify-button-functionality
- Fixed strict boolean expressions in chat-item-card.ts - Fixed strict boolean expressions in chat-item-card-content.ts - Test files have remaining mock-related ESLint errors that don't affect functionality
Problem
Currently, there is only run and reject available when users are asking q to run a command. There is no option to change the command.

Solution
Added modify button with changes mainly to chat-item-card.ts and chat-item-card-content.ts that turns the content into an editable space when modify is clicked.



Core Functionality
Editable Chat Item Content System
UI Changes
Tests
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.