Skip to content

Conversation

@Enzo707
Copy link
Contributor

@Enzo707 Enzo707 commented May 22, 2023

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.

@Enzo707 Enzo707 force-pushed the feature/DYN-5296-notification-center-with-dynamic-height branch from d2a8d9a to 24c2603 Compare May 22, 2023 20:32
@QilongTang
Copy link
Contributor

@Enzo707 One test failure, please check PR build check

@Enzo707 Enzo707 force-pushed the feature/DYN-5296-notification-center-with-dynamic-height branch from 24c2603 to ace10a1 Compare May 26, 2023 16:15
@Enzo707
Copy link
Contributor Author

Enzo707 commented May 26, 2023

@QilongTang @reddyashish please review this. Thanks

const header = await page.waitForSelector('#root > div > div > header');
await expect(header).toMatch('Notifications');
});
// it('should have correct header', async () => {
Copy link
Contributor

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.

Copy link
Contributor Author

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';
Copy link
Contributor

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?

Copy link
Contributor Author

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 ...

@Enzo707 Enzo707 force-pushed the feature/DYN-5296-notification-center-with-dynamic-height branch from ace10a1 to b445ab2 Compare May 26, 2023 18:18
@reddyashish reddyashish merged commit fe9d579 into DynamoDS:master May 31, 2023
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