-
Notifications
You must be signed in to change notification settings - Fork 42
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
scale source list and preview as window resizes #1211
Conversation
Tested in Qubes per the test plan in the PR description. The resizing behavior here works very well, some comments/clarifications regarding the scrollbar and 1207 fix, see below:
[1] [2] Set Horizontal Scroll Bar policy to disable the bar:
|
e1f00fe
to
443a15f
Compare
Oh you're right! That horizontal scrollbar isn't supposed to be there. Fixed.
It sounds like an issue with how we calculate the width of a QLabel that contains certain special characters. However I don't see the issue. Here's what I'm trying to do to repro what you're describing here:
I was expecting to see the width of the source list expand ~5-10px when switching to online mode, but it seems to stay the same. My guess is that you are doing something slightly different to test or you have different preview strings? |
Confirmed, removing the scrollbar did resolve the issue. I've successfully gone through the test plan on the latest revision. |
443a15f
to
b9a2f4f
Compare
5c90208
to
dba9711
Compare
I looks like all the tests are passing in CI, but Black and Isort are not pleased:
Perhaps in the future it would make sense to have a separate CI target for linting, which would make detecting these issues much quicker. Happy to open a ticket if you agree. |
dba9711
to
0553a72
Compare
I added one more test to the test plan to reflect a bug I found while running through this again. See number 7 in the PR description. |
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.
Sourcelist scaling looks great based on the test plan:
- Run the client against a server with some sources
- Log in
- Select a source and resize the client window, try double clicking and resizing to the smallest width and height
- Confirm there is never horizontal scrollbar in the source list
- Confirm that preview adjusts width as you resize the client window
- Replace existing sources with 200 new sources while still logged in
- Confirm there is never horizontal scrollbar in the source list
- Confirm that preview adjusts width as you resize the client window (make sure to scroll down the source list as the previews are updating and resize)
- Log out
- Confirm there is never horizontal scrollbar in the source list
- Confirm that preview adjusts width as you resize the client window
- Close client and log in in offline mode
- Ensure Preview text shorter when starting offline mode #1207 is fixed
- Log in, restart the server with new sources, wait until the client picks up the new sources and creates new source widgets while logged in
- Confirm there is never horizontal scrollbar in the source list
- Confirm that preview adjusts width as you resize the client window
Description
Fixes #1207
Towards scalable client
Merge before #1206
Known issue: #815
Test Plan
Checklist
If these changes modify code paths involving cryptography, the opening of files in VMs or network (via the RPC service) traffic, Qubes testing in the staging environment is required. For fine tuning of the graphical user interface, testing in any environment in Qubes is required. Please check as applicable:
If these changes add or remove files other than client code, the AppArmor profile may need to be updated. Please check as applicable:
If these changes modify the database schema, you should include a database migration. Please check as applicable:
main
and confirmed that the migration applies cleanlymain
and would like the reviewer to do so