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

feat(Company): make editable company name #409

Merged

Conversation

gaspard-lonchampt
Copy link
Contributor

@gaspard-lonchampt gaspard-lonchampt commented Sep 13, 2023

  • Add api request for company name ;
  • Add reducer for company name to change value in store ;
  • Add genereic component for editable text field ;

https://trello.com/c/z4LXmpsp/1210-permettre-aux-gestionnaires-de-modifier-le-nom-de-leurs-entreprises

Dépendance
PR: MTES-MCT/mobilic-api#272

Copy link
Contributor

@tristan-gueguen tristan-gueguen left a comment

Choose a reason for hiding this comment

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

🟠 Est-ce que le composant que tu as créé EditableText ne pourrait pas être utlisé à d'autres endroits ?

🟢 Si j'édite le nom, que je ne change rien (ou que je remets le même), la requête part quand même si je valide (on pourrait économiser une requête en ne le faisant pas)

🔴 J'ai fait exprès pour voir mais j'ai mis un texte de plus de 255 caractères comme nouveau nom et ça a fait une erreur serveur et un décalage entre le serveur et le front. Peut-être qu'on peut mettre une limitation dans le nombre de caractères autorisés ?

web/common/EditableTextField.js Show resolved Hide resolved
@gaspard-lonchampt gaspard-lonchampt force-pushed the feat/make-companyName-editable-for-manager branch from 82cd32f to 1081ce3 Compare September 19, 2023 15:40
web/common/EditableTextField.js Show resolved Hide resolved
web/common/EditableTextField.js Outdated Show resolved Hide resolved
web/common/EditableTextField.js Outdated Show resolved Hide resolved
@gaspard-lonchampt gaspard-lonchampt force-pushed the feat/make-companyName-editable-for-manager branch from 1081ce3 to 3f9ea50 Compare September 20, 2023 10:17
- Add api request for company name ;
- Add reducer for company name to change value in store ;
- Add generic component for editable text field ;
- Add string lenght validation ;
@gaspard-lonchampt gaspard-lonchampt force-pushed the feat/make-companyName-editable-for-manager branch from 3f9ea50 to 5723506 Compare September 20, 2023 12:26
@sonarcloud
Copy link

sonarcloud bot commented Sep 20, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@gaspard-lonchampt gaspard-lonchampt merged commit f6900e8 into master Sep 22, 2023
5 checks passed
@gaspard-lonchampt gaspard-lonchampt deleted the feat/make-companyName-editable-for-manager branch September 22, 2023 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants