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

belindas-closet-nextjs_10_526_Add_charts #527

Merged
merged 11 commits into from
Nov 25, 2024
Merged

Conversation

Alzavio
Copy link
Contributor

@Alzavio Alzavio commented Jul 31, 2024

Resolves 526

Progress Summary: Adds dummy charts in the style of the Figma design until we have data

Key Learnings: N/a, I'm used to Chart.js

Copy link

socket-security bot commented Jul 31, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected] None +1 5.01 MB chartjs-ci
npm/[email protected] None 0 56.9 kB dangreen

View full report↗︎

@Alzavio Alzavio changed the title belindas-closet-nextjs_10_526 belindas-closet-nextjs_10_526_Add_charts Jul 31, 2024
@Alzavio Alzavio self-assigned this Aug 6, 2024
@Alzavio Alzavio marked this pull request as ready for review August 6, 2024 04:23
@bcko
Copy link
Contributor

bcko commented Aug 15, 2024

@Alzavio Great job. can you resolve conflicts and post a screenrecording of the feature? Thanks

nwm516
nwm516 previously requested changes Sep 26, 2024
Copy link
Contributor

@nwm516 nwm516 left a comment

Choose a reason for hiding this comment

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

I made some changes on my end in order for this to show:

526 Add Charts PR Review

I ran npm install chart.js react-chartjs-2 , then npm run build npm run dev to get it started.

I created a "weeklyActivity" folder and placed it within the "dashboard" folder for the "weeklyActivity.tsx" file to live. I did also rename the "weeklyActivity.tsx" to "page.tsx" due to funkiness that React can exhibit when things are named differently.
I changed the import for WeeklyActivity on the dashboard page.tsx to import WeeklyActivity from "@/app/dashboard/weeklyActivity/page"; due to changing the location of the file in reference.

Based upon that, perhaps implementing those changes can help the errors?

Copy link
Contributor

@Asfand00 Asfand00 left a comment

Choose a reason for hiding this comment

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

This is what I see on my end:
belindas_dashboard1
belindas_dashboard2

Looks good, seems like the changes @nwm516 suggested might have helped with the errors you were having. also, data is highlighted when I hover over the bar itself so good work on that.

I am noticing minor bugs and funkiness with the chart such as this image below:
dashboard_bug1

there is also endless navigation with the arrows and the data isn't consistent but since this is just dummy data and getting a basic chart going its ok for now @Alzavio.

sidenote: the bar graphs on the bottom for 30 days is thinner than the one shown in @nwm516 but it's a minor change if we need to change the size of them.

Looks like you still need to resolve the branch conflicts still, but ill approve for now because the chart is showing up for me.

Changed files to deal with conflicts that had arisen regarding the weeklyActivity section of Belinda's Closet dashboard.
@nwm516 nwm516 dismissed their stale review October 15, 2024 05:26

Handled changes myself

@nwm516 nwm516 force-pushed the feature-526-Add-charts branch from a351bf9 to 1ffb29a Compare October 16, 2024 00:31
Copy link
Contributor

@Asfand00 Asfand00 left a comment

Choose a reason for hiding this comment

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

This is what I see on my end as per the update @nwm516, I ran npm ci as you did yourself.
belindas-dashboard-chart
The sidebar menu does cover part of the charts, but I suppose that can be fixed later, since this is just implementing the chart with dummy data, its fine how it looks for now.

I also did notice these console errors when running npm test
belindas-console-errors-dashboard
belindas-console-errors-dashboard2

the console errors are fine for now at this stage, but they should be corrected at some point, I think.

Other than that, the only small thing I would request is the removal of carets in the package.json file (should've mentioned it before in earlier post) and this PR should be good for approval. Thanks for the work! @nwm516.
belindas-package-json-chartjs

Copy link
Contributor

@gitbiruk2010 gitbiruk2010 left a comment

Choose a reason for hiding this comment

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

Findings:
run 'npm test' and gives the same console error as asfand00 mentioned.
sidebar menu remains the same

running 'npm ci': since it is performing a clean install, which is strictly as listed in package-lock.json, of course it messes with the new sample data and existing page in app/dashboard/ & app/dashboard/weeklyActivity/ page.
Otherwise, the rest looks good on my end.

dashboard-chart-test.mp4

I think we will get to the rest of the fixes once we have a real data.

@keiffer213 keiffer213 merged commit 25b0810 into main Nov 25, 2024
6 checks passed
@keiffer213 keiffer213 deleted the feature-526-Add-charts branch November 25, 2024 22:46
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.

6 participants