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
fix(client): add tooltip for calendar-heatmap #36008
Conversation
I guess you'll need to remove |
I'm not sure - I thought it should be kept on when adding a package - did you get a chance to test it out @thecodingaviator? |
Yes, on doing C:\Users\hp\Desktop\Web\freeCodeCamp>npm i
> @freecodecamp/freecodecamp@0.0.1 postinstall C:\Users\hp\Desktop\Web\freeCodeCamp
> npm run bootstrap
> @freecodecamp/freecodecamp@0.0.1 bootstrap C:\Users\hp\Desktop\Web\freeCodeCamp
> lerna bootstrap --ci
lerna notice cli v3.13.1
lerna info versioning independent
lerna info ci enabled
lerna info Bootstrapping 9 packages
lerna info Installing external dependencies
lerna ERR! npm ci exited 4294963248 in '@freecodecamp/client'
lerna ERR! npm ci stderr:
npm WARN prepare removing existing node_modules/ before installation
WARN tarball tarball data for react-ga@2.5.7 (sha512-UmATFaZpEQDO96KFjB5FRLcT6hFcwaxOmAJZnjrSiFN/msTqylq9G+z5Z8TYzN/dbamDTiWf92m6MnXXJkAivQ==) seems to be corrupted. Trying one more time.
npm ERR! path C:\Users\hp\Desktop\Web\freeCodeCamp\client\node_modules\react-ga\dist\react-ga.js
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\hp\Desktop\Web\freeCodeCamp\client\node_modules\react-ga\dist\react-ga.js'
npm ERR! { [Error: EPERM: operation not permitted, unlink 'C:\Users\hp\Desktop\Web\freeCodeCamp\client\node_modules\react-ga\dist\react-ga.js']
npm ERR! cause:
npm ERR! { Error: EPERM: operation not permitted, unlink 'C:\Users\hp\Desktop\Web\freeCodeCamp\client\node_modules\react-ga\dist\react-ga.js'
npm ERR! type: 'OperationalError',
npm ERR! '$error': '$error',
npm ERR! cause:
npm ERR! { errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path:
npm ERR! 'C:\\Users\\hp\\Desktop\\Web\\freeCodeCamp\\client\\node_modules\\react-ga\\dist\\react-ga.js' },
npm ERR! isOperational: true,
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path:
npm ERR! 'C:\\Users\\hp\\Desktop\\Web\\freeCodeCamp\\client\\node_modules\\react-ga\\dist\\react-ga.js' },
npm ERR! isOperational: true,
npm ERR! stack:
npm ERR! 'Error: EPERM: operation not permitted, unlink \'C:\\Users\\hp\\Desktop\\Web\\freeCodeCamp\\client\\node_modules\\react-ga\\dist\\react-ga.js\'',
npm ERR! type: 'OperationalError',
npm ERR! '$error': '$error',
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path:
npm ERR! 'C:\\Users\\hp\\Desktop\\Web\\freeCodeCamp\\client\\node_modules\\react-ga\\dist\\react-ga.js' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\hp\AppData\Roaming\npm-cache\_logs\2019-05-14T08_06_08_395Z-debug.log
lerna ERR! npm ci exited 4294963248 in '@freecodecamp/client'
npm ERR! code ELIFECYCLE
npm ERR! errno 4294963248
npm ERR! @freecodecamp/freecodecamp@0.0.1 bootstrap: `lerna bootstrap --ci`
npm ERR! Exit status 4294963248
npm ERR!
npm ERR! Failed at the @freecodecamp/freecodecamp@0.0.1 bootstrap script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\hp\AppData\Roaming\npm-cache\_logs\2019-05-14T08_06_09_758Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 4294963248
npm ERR! @freecodecamp/freecodecamp@0.0.1 postinstall: `npm run bootstrap`
npm ERR! Exit status 4294963248
npm ERR!
npm ERR! Failed at the @freecodecamp/freecodecamp@0.0.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\hp\AppData\Roaming\npm-cache\_logs\2019-05-14T08_06_09_975Z-debug.log |
so you're thinking that's from the package-lock file? |
@moT01 I'm taking a look at this now. Is there an easy way to recreate those issues locally? |
I'm not sure why else would it be happening, I'll try deleting the file and retrying once |
Honestly, no @ojeytonwilliams - I couldn't recreate most of the issues anywhere - so, I'm not sure what to do with it. I added the tooltip back in, which must have got removed at some point - and reworked the logic that creates the map to hopefully make it a little more robust - but I'm not sure if that was causing any problems in the first place. |
@moT01 Understood. I think the issues are all with a very old version of this, anyway, so some might have been fixed in the move to |
To be a little bit more clear - when I added this tooltip in - the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a nice PR. While I ended up writing a lot of comments, they're mostly me worrying about edge cases that may never turn up. Overall I think this is a nice change.
Regarding the start of the calendar, I just want to stress that it's not something I'd hold up the merge for. I just wanted to see what you thought about it.
Yes, I like those suggestions @ojeytonwilliams - I obviously started at the beginning of six months ago because that's how it was, maybe there was a reason for that. But it seems to make more sense, to me anyway, doing it how you suggested - so I made those changes |
@moT01 Perhaps so - this looks nice though. Thanks for making those changes, it LGTM now. @ahmadabdolsaheb Does everything look okay to you? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@moT01 if you agree with changes I will merge it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I'm fine with these changes @ValeraS, but I had a thought... maybe we should change all the "item/items" to "point/points" - since that is how it's described above the heatmap (see picture) - also, I noticed that the "current streak" defaults to 1
- since it's right there in this file, maybe we should change that to default to zero in this PR.
} | ||
return { | ||
'data-tip': `${valueCount}${format(value.date, 'MMMM Do, YYYY')}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious why you changed this @ValeraS?
Let's rename to |
fd3d39e
to
3abdecc
Compare
This fixes up the heatmap calendar a little.
Update index.md
)master
branch of freeCodeCamp.I'm hoping it can close these issues:
#35916
#17299
#17822
#22031