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

✨ replace grommet select by cunningham select #2400

Merged
merged 3 commits into from
Sep 14, 2023

Conversation

AntoLC
Copy link
Contributor

@AntoLC AntoLC commented Sep 6, 2023

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

  • replace every grommet Select by cunningham Select
  • tests

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 and searchableFree prop, to search a potential value but let as well the possibility to use the value taped by the user (see example)

@AntoLC AntoLC self-assigned this Sep 6, 2023
@AntoLC AntoLC changed the base branch from master to feature/anthony/cunningham-text-input September 6, 2023 15:14
@AntoLC AntoLC force-pushed the feature/anthony/cunningham-text-input branch from ae0fbba to 1709ed1 Compare September 7, 2023 08:48
Base automatically changed from feature/anthony/cunningham-text-input to master September 7, 2023 09:03
@AntoLC AntoLC force-pushed the feature/anthony/cunningham-select branch 12 times, most recently from 667e22f to 257f4b6 Compare September 8, 2023 14:59
@AntoLC
Copy link
Contributor Author

AntoLC commented Sep 8, 2023

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.

@AntoLC AntoLC force-pushed the feature/anthony/cunningham-select branch 2 times, most recently from 8a7b920 to f98a6e7 Compare September 8, 2023 15:22
@AntoLC AntoLC marked this pull request as ready for review September 8, 2023 18:54
@AntoLC AntoLC requested review from kernicPanel and lunika September 8, 2023 18:54
@AntoLC AntoLC force-pushed the feature/anthony/cunningham-select branch 2 times, most recently from ced6a4d to 8e92bff Compare September 12, 2023 10:07
@AntoLC AntoLC requested a review from kernicPanel September 12, 2023 10:29
@@ -98,14 +105,19 @@ export const LanguageSelect = ({
return (
<Select
Copy link
Member

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.

Copy link
Contributor Author

@AntoLC AntoLC Sep 13, 2023

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.

@AntoLC
Copy link
Contributor Author

AntoLC commented Sep 13, 2023

The translations in french have to be review, maybe I should change the id of the ones I updated?

When english language is set:
scrnli_9_13_2023_10-25-43 AM

When french language is set:
scrnli_9_13_2023_10-26-02 AM

@AntoLC AntoLC requested a review from lunika September 13, 2023 08:29
@lunika
Copy link
Member

lunika commented Sep 13, 2023

The translations in french have to be review, maybe I should change the id of the ones I updated?

When english language is set: scrnli_9_13_2023_10-25-43 AM

When french language is set: scrnli_9_13_2023_10-26-02 AM

I will do that on crowdin 👍

@AntoLC AntoLC force-pushed the feature/anthony/cunningham-select branch 3 times, most recently from 7c291c9 to 363bd08 Compare September 14, 2023 11:00
- 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.
@AntoLC AntoLC force-pushed the feature/anthony/cunningham-select branch from 363bd08 to 51cd65b Compare September 14, 2023 11:01
@AntoLC AntoLC merged commit 1267d92 into master Sep 14, 2023
@AntoLC AntoLC deleted the feature/anthony/cunningham-select branch September 14, 2023 12:01
lunika added a commit that referenced this pull request Sep 15, 2023
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
lunika added a commit that referenced this pull request Sep 18, 2023
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
lunika added a commit that referenced this pull request Sep 18, 2023
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants