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
[Incomplete] Feature: Snackbar implementation #620
Conversation
Codecov Report
@@ Coverage Diff @@
## rc0.10.0 #620 +/- ##
============================================
+ Coverage 94.83% 94.87% +0.04%
============================================
Files 67 68 +1
Lines 2768 2831 +63
Branches 414 426 +12
============================================
+ Hits 2625 2686 +61
Misses 50 50
- Partials 93 95 +2
Continue to review full report at Codecov.
|
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.
Initial thoughts: code looks good, but things are missing.
foundation.close()
handleKeyDown()
getTimeoutMs()
getCloseOnEscape()
isOpen() // can be used through props.
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.
Good initial set of tests, but need more coverage. We're aiming for 95% lines/functions/statements/branches. I know we are lacking in some areas, which we need to address. But we don't want to fall further behind. Added some comments.
fixes #447 |
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 think the last piece is adding adapter tests to achieve 95% test coverage.
@gugu I see you did more tests! If you run
You can also see line/by/line coverage. If you have any trouble, let me know and we can work through it. |
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
Done. It now says about CLA signing, probably after merge |
looks like you have some conflicting files. Also I only see a commit that updated karma. Did you forget some files in your last commit? |
3358695
to
7365f13
Compare
CLAs look good, thanks! |
fc6a2c0
to
002ddca
Compare
The problem was when the base branch was changed. I removed extra commits and squashed my changes to one commit (to not to pollute module history). Also I added karma config instead of tests. Now test coverage is 100% |
I realized that you also need to add snackbar to the |
Done with docs and screenshot-test-urls. What does "water with rc0.10.0." mean? I did rebase from rc0.10.0, but I'm not sure it is what did you mean |
water === merge...the more and more I say that, the more I think it is not a real term. Rebase is fine :) |
@gugu created a screenshot. please update snackbar golden.json file: |
i made the gc bucket public (I think)...try running |
tests for #637 |
@gugu did you sign PR...i remember you doing so. |
I signed it |
Looks like this message I need to write to sign |
Thanks :) |
Fix default classes WIP correct implementation of announce method Change modile name, onAnnounce event, handling keydown Add missing methods, unit tests Minimal screenshot tests Leading/stacked tests React-snackbar example ESLint Improve quality of react-snackbar (quick fixes) Add comments for snackbar test css hack, standard callback names in props Add TODO for updating types from mdc-snackbar when possible Added docs for announce, version 0.0.0, typescript lint fixes Adapter tests, moved mdc-snackbar to classes attribute Achieve 100% test coverage Revert karma changes Getting snackbar parameters docs
rebased to the last rc0.10.0 commit |
The initial version of Snackbar. If code will be in general OK, I'll add tests as well
If you want to try:
npm install @shortcm/snackbar