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

fix: Missed favicon in Safari #1077

Conversation

Lunyachek
Copy link
Contributor

Description

The favicon is not currently displaying in Safari. After our investigation, we have found a way to fix it. We used the same approach as what was done in the account mfe. We added the favicon inclusion to the index.html file, and now the favicon is being displayed in Safari.

Снимок экрана 2023-10-13 в 17 35 26

Merge Checklist

  • If your update includes visual changes, have they been reviewed by a designer? Send them a link to the Sandbox, if applicable.
  • Is there adequate test coverage for your changes?

Post-merge Checklist

  • Deploy the changes to prod after verifying on stage or ask @openedx/vanguards to do it.
  • 🎉 🙌 Celebrate! Thanks for your contribution.

@Lunyachek Lunyachek requested a review from a team as a code owner October 13, 2023 14:43
@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Oct 13, 2023
@openedx-webhooks
Copy link

openedx-webhooks commented Oct 13, 2023

Thanks for the pull request, @Lunyachek! Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (66a0d5d) 87.08% compared to head (160ce33) 87.08%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1077   +/-   ##
=======================================
  Coverage   87.08%   87.08%           
=======================================
  Files         124      124           
  Lines        2276     2276           
  Branches      634      634           
=======================================
  Hits         1982     1982           
  Misses        285      285           
  Partials        9        9           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mphilbrick211 mphilbrick211 added the waiting for eng review PR is ready for review. Review and merge it, or suggest changes. label Oct 24, 2023
@mphilbrick211
Copy link

Hi @openedx/vanguards - this is ready for review!

@syedsajjadkazmii
Copy link
Contributor

The favicon is not currently displaying in Safari. After our investigation, we have found a way to fix it. We used the same approach as what was done in the account mfe. We added the favicon inclusion to the index.html file, and now the favicon is being displayed in Safari.

Hi @Lunyachek, I am curious to learn why is this not working? https://github.com/openedx/frontend-app-authn/blob/master/src/MainApp.jsx#L37

Why is the current fix working instead?

@mphilbrick211 mphilbrick211 added waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. and removed waiting for eng review PR is ready for review. Review and merge it, or suggest changes. labels Nov 20, 2023
@Lunyachek
Copy link
Contributor Author

The favicon is not currently displaying in Safari. After our investigation, we have found a way to fix it. We used the same approach as what was done in the account mfe. We added the favicon inclusion to the index.html file, and now the favicon is being displayed in Safari.

Hi @Lunyachek, I am curious to learn why is this not working? https://github.com/openedx/frontend-app-authn/blob/master/src/MainApp.jsx#L37

Why is the current fix working instead?

Hello @syedsajjadkazmii, I can't explain why. I also was wondered and started to investigate other mfe's. And found this solution in account mfe. And it's works good.

@syedsajjadkazmii
Copy link
Contributor

Hi @Lunyachek,

I tried to validate the favicon changes by cloning your fork and switching to your branch. However, after testing in Safari (Version 17.1), I couldn't observe the expected icon update. I can only see the default edX icon. To ensure accuracy, I cleared the browser cache, restarted the local development server, and thoroughly inspected the code.

Could you please provide additional details or steps to follow for testing in Safari? Any insights or suggestions on how to resolve this would be greatly appreciated.

Also could you please share before and after screenshots?

@Lunyachek
Copy link
Contributor Author

Hi @syedsajjadkazmii. If you see the default edX icon, it means that my fix is working. Prior to the fix, we didn't have any favicon at all. There was only one letter in a grey frame. In the first screenshot (in the PR description), the favicon has been changed to our RG Theme logo. But by default, we should see the default edX icon. I attached a screenshot - before (open-release/palm.master branch) and after (my branch's changes).
Снимок экрана 2023-12-07 в 01 02 29
Снимок экрана 2023-12-07 в 01 04 05

@Lunyachek Lunyachek force-pushed the lunyachek/fix/favicon-missing-safari-master branch from a772c95 to 160ce33 Compare December 6, 2023 23:09
@syedsajjadkazmii
Copy link
Contributor

syedsajjadkazmii commented Dec 7, 2023

Hi @Lunyachek, I was trying to reproduce it but I am able to see the default icon on your fork's master branch. (screenshot attached).

I might be doing something wrong. Please let me know the steps on how to reproduce it.
Screenshot 2023-12-07 at 1 17 43 PM

@Lunyachek
Copy link
Contributor Author

Hi @syedsajjadkazmii. On your screenshot I see the default edX favicon. It's ok, this is what I have achieved

@syedsajjadkazmii
Copy link
Contributor

syedsajjadkazmii commented Dec 7, 2023

Hi @syedsajjadkazmii. On your screenshot I see the default edX favicon. It's ok, this is what I have achieved

Hi @Lunyachek, my concern is that I was able to view the default icon without your change (on master branch) means the change is not needed. Is your change needed for special scenarios? if yes, what are those scenarios? and how can I reproduce it?

@Lunyachek
Copy link
Contributor Author

Lunyachek commented Dec 7, 2023

@syedsajjadkazmii, I delved deeper into this issue. I have safari 17.0 and this issue persists consistently. And I asked my colleagues to check on Safari 17.1, they confirmed my result. I can record the full video with switching between the branches, etc. and upload it somewhere

@syedsajjadkazmii
Copy link
Contributor

syedsajjadkazmii commented Dec 8, 2023

Hi @Lunyachek,

You are right. I just found out that there is something wrong with my Safari browser because the first icon that loads on my Safari does not change. I think it just gets cached.

I will approve and merge the PR. Thanks.

@syedsajjadkazmii syedsajjadkazmii merged commit 3a31cf3 into openedx:master Dec 8, 2023
7 checks passed
@openedx-webhooks
Copy link

@Lunyachek 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

@Lunyachek Lunyachek deleted the lunyachek/fix/favicon-missing-safari-master branch December 8, 2023 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-source-contribution PR author is not from Axim or 2U waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants