-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Modernize the ForwardMessageModal component #6452
Conversation
Oops, found an issue in my code with the change in the editing mode (the Modal becomes scrollable when it shouldn't be). I'll try to fix it and let you know when it's done. |
1ea12a4
to
4ea20a9
Compare
Hi, the issue I had was fixed. Also, here is the the thought process behind my code changes since there's a few changes:
As for testing I did more manual testing on all the elements I could think of and didn't find any abnormal behaviour (yet..). Large message body, small message body, images or not... Again, in both light theme and dark theme the elements render how they're supposed to. Lastly I have a question. Right now (in my implementation) the header title ("Forward to" text) is aligned with the left when selecting contacts, but align on the center when editing a message as you can see in the screenshots. That's because the back button element appears, and the |
4ea20a9
to
3e968f3
Compare
I made a change in To my knowledge |
3e968f3
to
fb4124e
Compare
fb4124e
to
09bb8b5
Compare
09bb8b5
to
3fb8c39
Compare
Rebased to latest and waiting for review, when you find the time :) |
@hackerbirds Looks like you have some lint failures - can you get those fixed? |
3fb8c39
to
8caaae8
Compare
Thanks for letting me know. |
Yep, that failure in main is unrelated - I just pushed some fixes: https://github.com/signalapp/Signal-Desktop/commits/main |
Alright, I'll update and rebase again |
* ModalHost is replaced with Modal. * The CSS is simplified down to unify the theme palette
8caaae8
to
8147b20
Compare
Alright, thanks for all your work on this. We've merged it internally, and it will be in 6.23.x. To be specific, we took 8caaae8, not your most recent push. You can maybe revert it if you want this to auto-close when we push to the public main branch? |
The push was just to rebase to the latest changes, nothing should have changed. If it was merged internally I assume I can just close this PR manually now? |
Sure, feel free to do that. We can work with you to make sure this shows as a purple Merged status too - it's up to you. But we'll call you out in the release notes as well, so that may be the badge of honor you're really looking for! :0) |
Don't worry about that. Thanks for your time |
"ModalHost" is replaced with the newer and simpler "Modal". The CSS is also updated to unify the theme palette
First time contributor checklist:
Contributor checklist:
main
branchyarn ready
run passes successfully (more about tests here)Description
The "forward message" modal component was based off
ModalHost
and looked old and off with the rest of the app so I decided to simply the code using the newer(?)Modal
component which allowed me to simplify the code and CSS a little bit. I rely on the parent CSS components for the theme so that it gets updated and looks like the other modern components in the apps.Visually the changes are mostly color changes, as the updated Modal looks darker, and there are updated back/close buttons that match slightly better. They now have hovering effects and look nicer overall.
To be honest I am a beginner in React components so do tell me if I implemented something the wrong way that I could try to correct.
I did a bit of manual testing, in both light theme and dark theme, with images and without, and everything looks right to me. Let me know if I missed anything, I know I do sometimes.
Screenshots
I'm sorry I had to censor a bunch because I got lazy so the changes are harder to see:
BEFORE CHANGES
AFTER CHANGES