-
Notifications
You must be signed in to change notification settings - Fork 7
Feature/DYN 5296 notification center with dynamic height #36
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/DYN 5296 notification center with dynamic height #36
Conversation
d2a8d9a to
24c2603
Compare
|
@Enzo707 One test failure, please check PR build check |
24c2603 to
ace10a1
Compare
|
@QilongTang @reddyashish please review this. Thanks |
tests/e2e/e2e.test.js
Outdated
| const header = await page.waitForSelector('#root > div > div > header'); | ||
| await expect(header).toMatch('Notifications'); | ||
| }); | ||
| // it('should have correct header', async () => { |
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.
Add a todo comment on why we are commenting this failing test. Otherwise, we can just remove 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.
Sure, I'll remove it!
| @@ -0,0 +1 @@ | |||
| export { default as EmptyStateArchiver } from './EmptyStateArchiver'; | |||
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.
sorry i might have missed but why do we need EmptyStateArchiver? Is that referenced from somewhere?
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 just a good practice, it's recommended always have an index file that contains all the exports. So then, we could import components from the main folder. In this particular case imagine that we add more icons, we could use named imports from /icons instead of adding multiple ones.
This:
import { EmptyStateArchiver, Icon2, Icon3... } from './icons';
Instead of:
import EmptyStateArchiver from './icons/EmptyStateArchiver';
import Icon2 from './icons/icon2';
import ...
ace10a1 to
b445ab2
Compare
This PR Implements a mechanism to send any change related to notification center height to Dynamo so then we could trigger the notification popup resizing.