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

Add functionality for deleting sources #78

Conversation

ultimatecoder
Copy link
Contributor

@ultimatecoder ultimatecoder commented Oct 28, 2018

@ultimatecoder ultimatecoder force-pushed the master-add-functionality-to-delete-source branch from 7dbda8e to 80cd544 Compare October 28, 2018 17:12
@ultimatecoder ultimatecoder force-pushed the master-add-functionality-to-delete-source branch 5 times, most recently from f10c39b to 806b230 Compare November 7, 2018 18:28
@ultimatecoder ultimatecoder changed the title [WIP] Adding functionality of deleting the source Adding functionality of deleting the source Nov 7, 2018
@eloquence eloquence changed the title Adding functionality of deleting the source Add functionality for deleting sources Nov 16, 2018
@heartsucker
Copy link
Contributor

One note so far: The text on this is both a bit small (maybe just my screen?) and gets cut off on the edges.

screenshot_2018-11-20_19-29-30

securedrop_client/gui/widgets.py Outdated Show resolved Hide resolved
securedrop_client/gui/widgets.py Outdated Show resolved Hide resolved
"<small>This Source will no longer be able to correspond",
"through the log-in tied to this account.</small>",
)
message = ' <br> '.join(message)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know how Qt handles this, but it might be better to not have manual <br>'s but instead get the text to wrap. If possible?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed custom <br> tags. I was using them for exactly replicating the wireframe.

For separating both (large and small) messages, I am unable to find a solution without using a <br> tag. If you have any batter solution, then please suggest. If not, then I request you to resolve the conversation. Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's ok to use it to separate the two paragraphs, but I didn't want to use it for formatting each line.

securedrop_client/gui/widgets.py Outdated Show resolved Hide resolved
securedrop_client/gui/widgets.py Outdated Show resolved Hide resolved
@ultimatecoder ultimatecoder force-pushed the master-add-functionality-to-delete-source branch 3 times, most recently from 6189aca to 447b3f3 Compare November 20, 2018 22:04
A Source Profile Short menu, which is responsible for displaying Source
name and Hamburger Button Menu. Hamburger button menu contains single
operation to delete the Source.

Resolves: freedomofpress#18
@ultimatecoder
Copy link
Contributor Author

@heartsucker Many thanks for reviewing this PR. While improving code according to your comments, I found I have forgotten to launch MessageBox when Delete Source is clicked from menu. I have tried to update that change along with changes you mentioned. I have updated the video to show change of popup and default text wrapping. Please go through it once again. Apologies for that trouble. Have a great day!

@ultimatecoder
Copy link
Contributor Author

One note so far: The text on this is both a bit small (maybe just my screen?) and gets cut off on the edges.

screenshot_2018-11-20_19-29-30

Is this on Qubes OS? For me, it shows correctly. Please verify in the video.

@ninavizz
Copy link
Member

ninavizz commented Nov 21, 2018

@ultimatecoder Hi Jaysinh: Are you looking to replicate the Qubes style of dialogs? None of the client dialogs should mimic Qubes' UI things. No buttons will have icons on them, no icons/graphics will be used anywhere, unless shown in the wireframes or final mockups. For now, if all things could just get coded to match the wireframes, that'd be great.

If this PR is ready to go, please don't worry about fixing those things—as separate Issues will be getting filed for visual styling, and I don't want this note to hold-up getting a PR in. Just FYI. :)

@ultimatecoder
Copy link
Contributor Author

@ninavizz Understood. Thanks!

@heartsucker
Copy link
Contributor

@ninavizz those glyphs on the buttons are Qt defaults (pretty sure?), and we can override/remove them later.

@heartsucker
Copy link
Contributor

Awesome job :D

@heartsucker heartsucker merged commit e873606 into freedomofpress:master Nov 21, 2018
@ultimatecoder
Copy link
Contributor Author

@heartsucker Thanks for guiding, reviewing and merging 😊

legoktm pushed a commit that referenced this pull request Dec 11, 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