fix(cc-components): fix user-state broken UI#496
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
| <Item key={item.id} textValue={item.name} data-testid={`state-item-${item.name}`}> | ||
| <div | ||
| className="item-container" | ||
| data-testid={`item-container ${shouldHighlight ? `selected ${getIconStyle(item).class}` : ''}`} |
There was a problem hiding this comment.
shouldHighlight was broken because while working on the playwirhgt test I moved the check to data-testId rather than the class
| return {class: 'available', iconName: 'recents-presence-filled'}; | ||
| case AgentUserState.RONA: | ||
| return {class: 'rona', iconName: 'warning-filled'}; | ||
| export const getIconStyle = (item): {class: string; iconName: string} => { |
There was a problem hiding this comment.
Moved all the implementation to the original code that was, AI did some optimization eventually breaking the functionality. Copied the original code and pasted
| <div | ||
| class="item-container" | ||
| data-testid="item-container selected idle" | ||
| class="item-container selected idle" |
There was a problem hiding this comment.
Updated snapshot
|
This pull request is automatically being deployed by Amplify Hosting (learn more). |
|
Fixed as part of -#511 |
COMPLETES #< INSERT LINK TO ISSUE >
This pull request addresses
< DESCRIBE THE CONTEXT OF THE ISSUE >
by making the following changes
< DESCRIBE YOUR CHANGES >
Change Type
The following scenarios were tested
< ENUMERATE TESTS PERFORMED, WHETHER MANUAL OR AUTOMATED >
The GAI Coding Policy And Copyright Annotation Best Practices
Checklist before merging