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

Improve platform responsiveness for smaller screens #2350

Merged
merged 4 commits into from
Mar 21, 2023

Conversation

mdshamoon
Copy link
Member

Summary

Improve platform responsiveness for smaller screens

@mdshamoon mdshamoon linked an issue Feb 28, 2023 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Feb 28, 2023

@github-actions github-actions bot temporarily deployed to pull request February 28, 2023 10:28 Inactive
@codecov
Copy link

codecov bot commented Feb 28, 2023

Codecov Report

Patch coverage: 42.85% and project coverage change: +0.13 🎉

Comparison is base (c799672) 71.19% compared to head (715a4a4) 71.33%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2350      +/-   ##
==========================================
+ Coverage   71.19%   71.33%   +0.13%     
==========================================
  Files         229      229              
  Lines        8052     8052              
  Branches     1730     1731       +1     
==========================================
+ Hits         5733     5744      +11     
+ Misses       1760     1741      -19     
- Partials      559      567       +8     
Impacted Files Coverage Δ
...nts/UI/Layout/Navigation/SideDrawer/SideDrawer.tsx 59.37% <0.00%> (-10.63%) ⬇️
src/containers/List/List.tsx 79.68% <ø> (ø)
src/App.tsx 94.44% <100.00%> (ø)
src/common/utils.ts 68.62% <100.00%> (+0.31%) ⬆️
src/components/UI/Layout/Layout.tsx 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@cypress
Copy link

cypress bot commented Feb 28, 2023

10 failed tests on run #3247 ↗︎

10 132 0 34 Flakiness 0

Details:

Merge 715a4a4 into c799672...
Project: Glific Commit: 332de9abde ℹ️
Status: Failed Duration: 32:29 💡
Started: Mar 17, 2023 5:39 AM Ended: Mar 17, 2023 6:11 AM
Failed  auth/Login.spec.ts • 1 failed test

View Output Video

Test Artifacts
Login page > Successful login Output Screenshots
Failed  chat/Chat.spec.ts • 1 failed test

View Output Video

Test Artifacts
Chats > should conatin help menu in sidebar Output Screenshots
Failed  notification/notification.spec.ts • 1 failed test

View Output Video

Test Artifacts
Notification list > should show Notifications in sidebar Output Screenshots
Failed  roles/staff/chat/Chat.spec.ts • 1 failed test

View Output Video

Test Artifacts
Role - Staff - Chats > should have only chat menu Output Screenshots
Failed  roles/staff/chat/ChatCollection.spec.ts • 1 failed test

View Output Video

Test Artifacts
Role - Staff - ChatCollection > should send the message to collection Output Screenshots

The first 5 failed specs are shown, see all 10 specs in Cypress Cloud.

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@github-actions github-actions bot temporarily deployed to pull request March 3, 2023 06:13 Inactive
@mdshamoon mdshamoon requested a review from kurund March 7, 2023 01:01
@mdshamoon mdshamoon self-assigned this Mar 7, 2023
@@ -245,7 +245,7 @@ export const List = ({
filterItemsQuery,
{
variables: filterPayload(),
fetchPolicy: 'cache-and-network',
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure how this is related to responsiveness?

Copy link
Member Author

Choose a reason for hiding this comment

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

When we are opening or closing the sideDrawer this query is getting called again if we have this fetch-policy. I have checked multiple scenarios like adding deleting or editing a list item and there are no issues caused by changing this policy.

@@ -259,7 +259,7 @@ export const List = ({

useEffect(() => {
refetchCount();
}, [filterPayload, searchVal, filters]);
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

Copy link
Member Author

Choose a reason for hiding this comment

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

refetchcount was getting called even if the filterPayload and filter were not changing while closing or opening the side drawer. Removing these doesnt seem to cause any issue with the existing features.

@mdshamoon mdshamoon requested a review from kurund March 17, 2023 05:25
@github-actions github-actions bot temporarily deployed to pull request March 17, 2023 05:27 Inactive
Copy link
Contributor

@kurund kurund left a comment

Choose a reason for hiding this comment

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

Looks good and working as expected.

@kurund kurund merged commit 1f5f88c into master Mar 21, 2023
@kurund kurund deleted the feature/support-smaller-screens branch March 21, 2023 04:12
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.

Improve platform responsiveness
2 participants