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

Feature/f 64 charts option improvements #36

Merged
merged 19 commits into from
Nov 22, 2024

Conversation

plaume8
Copy link
Collaborator

@plaume8 plaume8 commented Nov 17, 2024

The main goal was to implement:
https://linear.app/world-food-programme-wfp/issue/F-64/charts-option-improvements

In addition, all the requested changes from the last pull request have been implemented: #21
Except for the task to “chart modal to own component” -> I still have a question before making the changes: Wouldn't it make more sense to keep the modal inside since the regular LineChart box component and the modal share many dependencies (e.g. all the state manipulations)?"


And... I have a quick question: as requested, I moved all 'const button = <...>' components directly into the return statement. Is it generally intended for the future that JSX code should only appear within the return statement?

@plaume8 plaume8 self-assigned this Nov 17, 2024
Copy link

netlify bot commented Nov 17, 2024

Deploy Preview for wfp-hungermap ready!

Name Link
🔨 Latest commit 5c62711
🔍 Latest deploy log https://app.netlify.com/sites/wfp-hungermap/deploys/673e631cc6cd920008796acb
😎 Deploy Preview https://deploy-preview-36--wfp-hungermap.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@bohdangarchu bohdangarchu left a comment

Choose a reason for hiding this comment

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

good job! regarding you second question - yes, jsx/tsx should be inside return statement or a separate component

src/components/Charts/LineChart.tsx Outdated Show resolved Hide resolved
@plaume8 plaume8 requested a review from bohdangarchu November 18, 2024 13:59
Copy link
Collaborator

@marinovl7 marinovl7 left a comment

Choose a reason for hiding this comment

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

Generally great job! Just some code quality improvements needed, else everything is perfect. Great features!

src/components/Charts/LineChart.tsx Outdated Show resolved Hide resolved
src/components/Charts/LineChart.tsx Outdated Show resolved Hide resolved
src/components/Charts/LineChart.tsx Outdated Show resolved Hide resolved
src/components/Charts/LineChart.tsx Outdated Show resolved Hide resolved
src/components/Charts/LineChart.tsx Outdated Show resolved Hide resolved
src/components/Charts/LineChart.tsx Outdated Show resolved Hide resolved
src/components/Charts/LineChartModal.tsx Outdated Show resolved Hide resolved
src/components/Charts/LineChartModal.tsx Outdated Show resolved Hide resolved
src/components/Charts/LineChartModal.tsx Outdated Show resolved Hide resolved
@plaume8 plaume8 requested a review from marinovl7 November 20, 2024 22:31
@plaume8
Copy link
Collaborator Author

plaume8 commented Nov 22, 2024

  • @marinovl7 please confirm the chosen placement of the components/Charts/helpers folder ?

Copy link
Collaborator

@marinovl7 marinovl7 left a comment

Choose a reason for hiding this comment

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

LGTM!

@marinovl7 marinovl7 merged commit 670d2aa into main Nov 22, 2024
5 checks passed
@marinovl7 marinovl7 deleted the feature/f-64-charts-option-improvements branch November 22, 2024 11:42
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