-
-
Notifications
You must be signed in to change notification settings - Fork 220
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
7778 - Bulk delete redesign #7846
Conversation
…bulk-delete-redesign
…ts for bulk upload
…bulk-delete-redesign
…bulk-delete-redesign
Hi @dianabarsan can you please review? @tatilepizs can you please review too and let me know if any other coverage is needed? Thanks for you time! |
Hi @tatilepizs I've updated the tests, can you please have a look again? Thanks! Nb. I've updated the ticket and the PR's description with latest screenshots and decisions about the feature. |
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.
Is still looking good to me 😄
Thanks @latin-panda !
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.
Excellent work! I really like the changes in effects and action names, it makes it much clearer to understand compared to the old version and makes the isMobile required fewer times. Great!
I did add some minor comments and an e2e test request, if possible.
Thanks!!
webapp/tests/karma/ts/modules/reports/reports.component.spec.ts
Outdated
Show resolved
Hide resolved
@@ -1,6 +1,6 @@ | |||
const utils = require('../../../utils'); | |||
const commonElements = require('../../../page-objects/default/common/common.wdio.page'); | |||
const reports = require('../../../page-objects/default/reports/reports.wdio.page'); | |||
const reportsPage = require('../../../page-objects/default/reports/reports.wdio.page'); | |||
const loginPage = require('../../../page-objects/default/login/login.wdio.page'); |
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.
Since the functionality differs between mobile and desktop view and we have a mobile e2e suite, please add an e2e test that checks bulk deletion for mobile as well.
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 idea, I forgot about the mobile e2e, I'm doing this one in a separate commit for easy review
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 looked at this and had a call with QA. The mobile e2e suite is running with protractor, which QA's current target is to migrate everything and remove protractor, because of that we won't be creating more protractor tests.
They have in their very near future plans to work on the mobile e2e suite, which there are some ideas on how to do it, apparently something that Bede started as proof of concept, they will retake and explore based on some ideas from Gareth, like resizing the browser's screen to simulate mobile.
They plan to automate what's in the automation board.
So, we agree that I will help them setting the base for the wdio mobile suite, specifically default config, and have them involve while I do it and automate this case scenario of bulk delete. I've created a new ticket since I don't want to make this PR bigger than it is, this is what I'll be working tomorrow and Friday... and when I come back from my time off.
CC: @tatilepizs
@dianabarsan I've resolved the feedback, can you please have a look again? Thank you for your time :) |
I'm having a look at this on desktop and noticing that, when I have any reports selected, and I click on a report content, nothing happens. From a UX perspective, is this the desired result? I find it's pretty confusing for the click to do nothing. Kazam_screencast_00003.mp4Maybe it is possible that, when in select mode, clicking on the whole report could set the report as selected? |
I have a pretty large database and I'm trying to select and deselect all reports and I'm not really understanding this interaction. If I select all, how can I deselect all afterwards? Kazam_screencast_00005.mp4 |
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 also noticing that reports list infinite scroll is no longer working. Even if I have a long list of reports, scrolling down no longer loads extra reports.
If I'm throttling my network and selecting reports, I see "unknown sender" displayed instead of the summary that already exists in the RHS. Is this expected? Kazam_screencast_00006.mp4 |
Yes that's the expected behaviour in desktop, if the user wants to see the reports details then they should click on it to expand.
I will try and report back.
The other I reported an issue for that.
Oh it's because the element that scrolls is another one, so
I guess the reportList in store doesn't have the full quantity, I'll think an alternative. |
@dianabarsan Thanks a lot for your feedback!! You can find the commits below:
I had a call with @n-orlowski and we reviewed the select all behaviour:
Tomorrow my morning I'm going to update the bulk delete ticket with this information and open a new ticket so we can evaluate the behaviour of "select all" when there's more than +500 reports (Edit: Ticket). cc: @tatilepizs Video this branch vs demo instance (3.17) |
I've updated this work's ticket with relevant information discussed yesterday. |
@dianabarsan I think it's ready for another 👀 Thanks! |
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.
Awesome. Thanks a lot for addressing all the feedback! I just have one tiny question left inline.
…bulk-delete-redesign � Conflicts: � webapp/src/css/variables.less
…bulk-delete-redesign
Description
.content-row a
to.content-row
as side effect of separating click scope from anchors and checkboxes, all tabs' lists using.content-row
should work fine same as original code.selectedReport
(a report selected to open/view its content) andselectedReports
(a collection of reports selected for bulk operation). This is because the user can open to view a report while the select mode is active on mobile devices.submit-delivery-form.specs.js
was already migrated, so I removed it and updated thePROTRACTOR_WDIO_MIGRATION_STATE.md
.Screenshots of feature.
CHT_Docs
#7778
Code review checklist
License
The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.