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

[Design] Utilisation des composants Monitor-ui pour remplacer les composants RSuite #1189

Merged

Conversation

claire2212
Copy link
Collaborator

Related Pull Requests & Issues


  • Tests E2E (Cypress)

@claire2212 claire2212 added UI tech. enhancement technical enhancement labels Feb 6, 2024
@claire2212 claire2212 self-assigned this Feb 6, 2024
@claire2212 claire2212 force-pushed the claire/replace-rsuite-components-by-monitor-ui-components branch 2 times, most recently from ac4fb6b to 10bc810 Compare February 13, 2024 10:32
@claire2212 claire2212 force-pushed the claire/replace-rsuite-components-by-monitor-ui-components branch from a46a5a9 to a2846f4 Compare February 13, 2024 15:10
Copy link
Collaborator

@louptheron louptheron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

joli clean !

Copy link
Member

@ivangabriele ivangabriele left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plein de comments de forme mais super taff ! Et je suis totalement d'accord avec ton principe "plus d'utilisation de Rsuite directement dans les projets".

Ca permettra aussi de ne plus installer Rsuite ^^.

J'espère qu'on pourra faire ça un jour sur Fish mais ça devra être divisé en plusieurs Prs parce que c'est colossal comme travail.

frontend/src/domain/entities/layers/constants.ts Outdated Show resolved Hide resolved
frontend/src/domain/entities/missions.ts Outdated Show resolved Hide resolved
@@ -19,3 +20,8 @@ export type NewInterestPoint = {
type: string | null
uuid: string
}

export type InterestPointOptionValueType = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

InterestPointOptionValue suffit ;). +Type c'est vraiment quand on a pas le choix dans des edge cases complexes.

color: ${p => p.theme.color.gunMetal};
border-bottom: 1px solid ${p => p.theme.color.lightGray};
line-height: 1.9em;
const StyledMultiRadio = styled(MultiRadio)`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A reporter sur monitor-ui ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

c'est un style particulier, avec des bordures et un hover spécifique donc pour moi ça ne va pas dans monitor-ui

@@ -113,7 +112,7 @@ const getShowedCoordinates = (coordinates, coordinatesFormat) => {
const StyledCoordinatesContainer = styled.div`
z-index: 2;
`
const RadioWrapper = styled(RadioGroup)`
const RadioContainer = styled.div`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A reporter sur monitor-ui ? On peut styler directement les fields normalement, styles et className sont sensés être attachés sur leur Field ou Fieldset interne. A corriger sur monitor-ui si ce n'est pas le cas.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idem c'est un style particulier à ce composant

:not(:last-child) {
margin-right: 6px;
}
`
const FormGroup = styled.div`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je me demande si ça ne vaudrait pas le coup de créer un petit élément partagé sur monitor-ui comme on commence à avoir pas mal de forms avec ce genre de chose qui sont normalisables.

display: flex;
flex-direction: column;
gap: 24px;
padding-bottom: 48px;
`
const StyledToggle = styled.div`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Là aussi : monitor-ui ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

j'ai supprimé le code lié au toggle (il ne servait plus). Mais oui on pourrait mettre ça dans monitor-ui Toggle + texte. je ferais ça dans une autre pr

@claire2212 claire2212 merged commit f37e194 into main Feb 19, 2024
18 checks passed
@claire2212 claire2212 deleted the claire/replace-rsuite-components-by-monitor-ui-components branch February 19, 2024 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech. enhancement technical enhancement UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suppression des composants Rsuite pour utiliser les composant de Monitor-ui
3 participants