-
Notifications
You must be signed in to change notification settings - Fork 280
feat(ui5-ai-input): introduce new component #12407
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: main
Are you sure you want to change the base?
Conversation
initial poc draft, all naming and logic are work in progress and subject to change
initial poc draft, all naming and logic are work in progress and subject to change BGSOFUIRILA-4032
delete unwanted file
refactor, add tests
restore textarea template
remove 'SingleResult' and 'MultipleResults' properties from AssistantState.ts adapt the implementation to use the totalVersions count internally to control the state
fix build errors
major API and structure refactoring
accessibility improvements
fix errors and bugs
fix test naming issues
…into ai-textarea
fix test file name
…into ai-textarea
code cleanup
rename test file
fix cypress tests
use plain toolbar button, adjust tests, clean up styles
apply code review suggestions
606297d
to
72b6443
Compare
🚀 Deployed on https://pr-12407--ui5-webcomponents-preview.netlify.app |
Some interaction remarks:
|
</Menu> | ||
</div> | ||
</div> | ||
{InputPopoverTemplate.call(this, { suggestionsList })} |
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.
Do we need suggestions at this point? We can disable them when inheriting from the Input component and add them later in case we need them for the AI Input
<> | ||
<span id="suggestionsText" class="ui5-hidden-text">{this.suggestionsText}</span> | ||
<span id="selectionText" class="ui5-hidden-text" aria-live="polite" role="status"></span> | ||
<span id="suggestionsCount" class="ui5-hidden-text" aria-live="polite">{this.availableSuggestionsCount}</span> |
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.
Remove the suggestions related aria-live elements
describe("Basic", () => { | ||
describe("Initialization", () => { | ||
it("should render with default properties", () => { | ||
cy.mount(<AIInput />); |
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.
When I render an AI Input without any menu items in the slot, the AI icon is present and when I click on it - an empty menu item with no text appears. Maybe it is better to not render ghost menu item in that case
JIRA: BGSOFUIRILA-4104