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

ui-manchette: improves code readability #101

Merged
merged 1 commit into from
Jul 10, 2024
Merged

Conversation

jacomyal
Copy link
Contributor

@jacomyal jacomyal commented Jul 9, 2024

This commit fixes various comments from my review for PR #86. The PR has been merged while I was reviewing it, so we decided I can directly submit a new one with my fixes.

Details:

  • Fixes all typos from proportionnal to proportional
  • Fixes React.XXX as import { XXX } from 'react'
  • Refactors Manchette.tsx code to have a single, more readable setState
  • Removes magic zoom boundaries and replace them with proper consts
  • Fixes operationalPointsHeight so that it does not mutate things anymore
  • Rewrites calcOperationalPointsToDisplay with simpler code and some comment, to help make it maintainable
  • Actually stops displaying OperationalPoint with display: false

This commit fixes various comments from my review for PR #86. The PR has
been merged while I was reviewing it, so we decided I can directly
submit a new one with my fixes.

Details:
- Fixes all typos from proportionnal to proportional
- Fixes React.XXX as import { XXX } from 'react'
- Refactors Manchette.tsx code to have a single, more readable setState
- Removes magic zoom boundaries and replace them with proper consts
- Fixes operationalPointsHeight so that it does not mutate things
  anymore
- Rewrites calcOperationalPointsToDisplay with simpler code and some
  comment, to help make it maintainable
- Actually stops displaying OperationalPoint with display: false
@jacomyal jacomyal requested a review from Math-R July 9, 2024 15:53
Copy link
Contributor

@kmer2016 kmer2016 left a comment

Choose a reason for hiding this comment

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

good cleaning, LGTM

Copy link
Contributor

@Math-R Math-R left a comment

Choose a reason for hiding this comment

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

lgtm nice improve, + get rid of mutability side effect is a good catch thanks !

@Math-R Math-R added this pull request to the merge queue Jul 10, 2024
Merged via the queue into dev with commit 3046fd4 Jul 10, 2024
1 check passed
@Math-R Math-R deleted the ajy/manchette-debt-control branch July 10, 2024 16:35
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.

3 participants