BUG: White flash on clicking the pictopy icon
Is there an existing issue for this?
- [x] I have searched the existing issues
What happened?
How to reproduce?
- Switch to dark mode
- Click on the pictopy icon -> a white flash will appear for a short time
Similar to issue #636 but this time on clicking the pictopy icon
https://github.com/user-attachments/assets/2c42fc22-1515-4b70-a4b4-903c930ef66e
I would like to work on this issue
Record
- [x] I agree to follow this project's Code of Conduct
👋 Thanks for opening this issue! The maintainers will review it shortly. Till then, do not open any PR. This is a strict rule we like to follow around here :)
I would like to work on this issue
I can reproduce this issue, and I also noticed the same behavior when clicking the profile/avatar icon in the Navbar.
Both seem to be caused by full page navigation instead of router-based navigation. I’ve worked on a fix that addresses this root cause and will open a PR shortly.
@puneeth-92 Read contribution guidelines. This issue was neither created by one nor assigned to you so you can't submit a PR.
Thanks for the clarification. I followed the repository contribution guidelines and linked the PR to the existing issue after reproducing it locally. I’ll defer to the maintainers’ decision and am happy to close or update the PR if they prefer a different approach.
@rahulharpal1603 valid issue, in the video it is properly visible
Hi @rohan-pandeyy, I'd like to work on this issue, so please assign it to me. I reproduced it and confirmed from the recording that the whole window content goes white for about 4 frames (~67 ms) right after the click, which points to a full page reload rather than a re-render.
Plan:
- Replace the logo's in Navbar.tsx with React Router's Link, and check for other full-reload links in frontend/src.
- Make sure the dark theme is applied before the first paint and give the window a dark default background, so any future reload doesn't flash white.
- Verify in light and dark mode, run lint and tests, and open a PR with a before/after recording.
I noticed #1039 is linked to this issue. Is it still active, or should I take it from here? I won't open a PR until I'm assigned.