Skip to content

feat: notification panel fix #1240

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

RadoBoiii
Copy link

No description provided.

@CLAassistant
Copy link

CLAassistant commented Mar 31, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 3 committers have signed the CLA.

✅ RadoBoiii
✅ jelveh
❌ Rishabh Shinde


Rishabh Shinde seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@RadoBoiii RadoBoiii force-pushed the notification-management branch from a9c1a50 to f5431d6 Compare March 31, 2025 14:40
@KernelDeimos
Copy link
Contributor

Hi, thanks for opening this. Does this PR replace #1189? I'll do a manual test later today.

@RadoBoiii
Copy link
Author

RadoBoiii commented Mar 31, 2025 via email

@RadoBoiii
Copy link
Author

Can this be merged to the repository?

@KernelDeimos
Copy link
Contributor

Just adding a note here since we talked outside the repo - this will be merged pending further review from @jelveh

@KernelDeimos
Copy link
Contributor

I just did a manual test. The behavior of displaying notifications seems to be perfect now. I noticed only two issues:

  • minor cosmetic issue: contrast of the bell sometimes makes it difficult to see. I'm gonna find out how @jelveh thinks it should look.
  • clicking notifications from the panel has different behavior than clicking notification toasts; it's better if it doesn't do anything at all. We can always add functionality later, but we should avoid broken behavior because it decreases the user's confidence in the system.

This is what happens if I click a file share notification from the panel instead of clicking the notification toast; I get this strange broken window:
image

Manual Test Recording

pr-1240_smaller.mp4

@RadoBoiii
Copy link
Author

Hi, I fixed the issues that you addressed. I am able to see the bell icon perfectly. I don't understand why you are unable to see it. Can you check this PR?

@KernelDeimos
Copy link
Contributor

I just did a quick test:

  • I see the issue with clicking notifications has been fixed.
  • I noticed style changes in the top bar. These were present before but I hadn't noticed them.

I think what you're trying to do here is simplify the CSS/DOM of the top bar so that we can more easily add icons while ensuring consistency. I agree that this is necessary, but the appearance of the top bar should not change as a result. If the notification panel doesn't depend on these changes, perhaps it's more appropriate as a separate PR.

Padding of icons changed

This is what the padding looks like in this PR:

image

This is what it looks like on main currently:

image

The layout in this PR adds more space between icons, causing the icons to take up more space on the top bar.

Profile icon

This is probably related to the padding issue mentioned above. The profile image area gets moved to the top-left of its container, making the UI look broken.

image
image

@RadoBoiii
Copy link
Author

The notification panel does not depend on these changes. What should I do for the layout? Should I try to fix it or will it be considered as another PR?

@KernelDeimos
Copy link
Contributor

The notification panel does not depend on these changes. What should I do for the layout? Should I try to fix it or will it be considered as another PR?

I'm find with either, but we can likely merge the notification panel sooner if the other changes are moved to a separate PR

@RadoBoiii
Copy link
Author

RadoBoiii commented Apr 5, 2025

Sure then, let's merge it and I can try to fix it as another PR

@KernelDeimos
Copy link
Contributor

Sure then, let's merge it and I can try to fix it as another PR

What I meant was the CSS changes made in the PR could be moved to another, and that would expedite merging this. I can't merge a PR with CSS regressions on components of the desktop UI.

@RadoBoiii
Copy link
Author

Screenshot 2025-04-05 at 1 22 15 AM

Does this look better?

Screenshot 2025-04-05 at 1 23 41 AM
Screenshot 2025-04-05 at 1 24 09 AM

@KernelDeimos
Copy link
Contributor

There are still styles changes. I want all the style changes for the toolbar removed - they don't need to be in this PR. That means comparing with the style on main and making sure this PR doesn't change it. I'll send a patch file shortly that will make the required changes with a git apply.

@KernelDeimos
Copy link
Contributor

Well, I was going to send a .diff or .patch file but, shockingly, GitHub doesn't support these file extensions; so instead, here's a .txt file which really is a diff.

You can apply this with git apply path/to/pr-1240_rm-toolbar-css.diff.txt

pr-1240_rm-toolbar-css.diff.txt

This diff removes the toolbar style changes and makes it consistent with the current style on main. This will make it possible to merge this PR. Right now (prior to applying this diff) the style changes have visual impacts such as making the toolbar icons further apart from each other; this may seem trivial but it's not and it would tie a lot of unrelated concern to this notification panel PR which you wouldn't want to deal with here - definitely better to put those changes in another PR.

@RadoBoiii
Copy link
Author

I have run the command and those changes have been applied to the repository

@KernelDeimos
Copy link
Contributor

Perfect, thanks! I'm going to ask @jelveh if he wants to review the UI first but otherwise this looks ready to merge to me

@RadoBoiii
Copy link
Author

I think @jelveh has tested it, is it ready to be merged?

@RadoBoiii
Copy link
Author

Hey @KernelDeimos can this PR be merged or does it require additional changes

@RadoBoiii
Copy link
Author

Any updates on this @KernelDeimos ?

@KernelDeimos
Copy link
Contributor

Any updates on this @KernelDeimos ?

Not yet, we've got a lot on our plates at the moment.

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.

4 participants