-
Notifications
You must be signed in to change notification settings - Fork 24
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
✨ replace grommet select by cunningham select #2400
Conversation
ae0fbba
to
1709ed1
Compare
667e22f
to
257f4b6
Compare
We need this issue to be resolved with a new cunningham version before we can merge this PR. A PR has been submitted: openfun/cunningham#158, when merge and release we will be able to adapt this PR to be mergeable. |
8a7b920
to
f98a6e7
Compare
...ndalone_site/src/features/Contents/features/Video/components/Manage/VideoCreateForm.spec.tsx
Show resolved
Hide resolved
...ackages/lib_video/src/components/common/VideoWidgetProvider/widgets/LicenseManager/index.tsx
Outdated
Show resolved
Hide resolved
ced6a4d
to
8e92bff
Compare
@@ -98,14 +105,19 @@ export const LanguageSelect = ({ | |||
return ( | |||
<Select |
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.
Can the list be longer? Only 4 countries are display and the list is very long. In master branch 8 are display.
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.
As talked, the select is now searchable: 0449192
On the other hand now, if french is set in the value by example, when you click on the select, only one option will be proposed; you will have to clear the field to see more options appearing.
7c291c9
to
363bd08
Compare
Upgrade to [email protected], this upgrade fixes these issues: - openfun/cunningham#149 - openfun/cunningham#157
- replace the Grommet Select component with the Cunningham Select component
We had some states flipping with the LanguageSelect component with "no language available" option. The no language available option was selectable, and would create an error in the upload process if selected. We remove the "no language available" option, and let the Cunningham component handle the case when no options are available.
363bd08
to
51cd65b
Compare
Changed - Disable classroom convert button when converting - Replace grommet Select by Cunningham Select (#2400) Fixed - Save license when a video is created - Show an error when a resource has been deleted - Allow depositedfiles to have unicode characters in their filename
Changed - Disable classroom convert button when converting - Replace grommet Select by Cunningham Select (#2400) Fixed - Save license when a video is created - Show an error when a resource has been deleted - Allow depositedfiles to have unicode characters in their filename
Changed - Disable classroom convert button when converting - Replace grommet Select by Cunningham Select (#2400) Fixed - Save license when a video is created - Show an error when a resource has been deleted - Allow depositedfiles to have unicode characters in their filename
Purpose
Replace partially grommet select by cunningham select.
The Cunnigham Select doesn't fit all our needs, but we can still replace a part of the select.
This PR helps us as well to identify our different needs, an feature request issue has been opened alongside this PR: openfun/cunningham#155
Proposal
Select
by cunninghamSelect
Select left
. LanguagePicker : We need an icon on the left of the select.
. useSelectPlaylist: We need the virtualization - We can have lot of playlist
. RenaterAuthenticator: We need options with
JSX.Element[]
type. SchedulingFields: We need
suggestion
prop, to start the scroll to a specific value andsearchableFree
prop, to search a potential value but let as well the possibility to use the value taped by the user (see example)