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

suport safari #569

Merged
merged 3 commits into from
Oct 1, 2024
Merged

suport safari #569

merged 3 commits into from
Oct 1, 2024

Conversation

meganrm
Copy link
Contributor

@meganrm meganrm commented Oct 1, 2024

Time estimate or Size

How long do you expect it to take a reviewer to review this PR?
xsmall

Problem

closes #567

Solution

Added the version of safari that supports webgl2 and updated the documentation

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Steps to Verify:

  1. open simularium.allencell.org in safari
  2. notice warning
  3. open this branch in safari
  4. no warning!

Screenshots (optional):

current site
Screenshot 2024-10-01 at 11 40 48 AM

@meganrm meganrm requested a review from a team as a code owner October 1, 2024 18:42
@meganrm meganrm requested review from toloudis and tyler-foster and removed request for a team October 1, 2024 18:42
@meganrm meganrm changed the title add information for safari update suport safari Oct 1, 2024
Safari > Preferences > Advanced and enable
"Show Develop menu in menu bar".) Then
please reload the viewer.
reload the viewer.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There were too many 'pleases' in this for me when I read it over, but I can add it back.

Choose a reason for hiding this comment

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

I wouldn't say "please" at all tbh. The fewer words the better.

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree, please remove all the instances of the word please. Pretty please with sugar on top.

I wonder if we can link people to Apple to get full instructions on how to enable WebGL2 on older safari.

Copy link

github-actions bot commented Oct 1, 2024

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements 66.43% 665/1001
🟡 Branches 65.31% 96/147
🔴 Functions 35.29% 90/255
🟡 Lines 64.84% 592/913

Test suite run success

121 tests passing in 7 suites.

Report generated by 🧪jest coverage report action from f210e85

Currently, Simularium supports Firefox, Chrome, and
Edge. Some features may not work on other browsers.
Currently, Simularium supports Firefox, Safari,
Chrome, and Edge. Some features may not work on

Choose a reason for hiding this comment

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

Super nit: Does the ordering of the browsers matter at all here? If this was ordered by popularity, it would be Chrome -> Safari -> Edge -> Firefox. Could do it alphabetically too.

choosing Develop > Experimental Features and
enabling "WebGL 2.0" (If you do not have a
Develop menu in your menu bar, please first choose
If using Safari on a Mac and it is not working,

Choose a reason for hiding this comment

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

Nit: This reads weirdly to me. I'd add something like "If you are using Safari on a Mac and it is not working the content below is not loading", or whatever the expected issue would be.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@toloudis do you know what the behavior would be if webGl isn't enabled? do they get an error message or is the viewer blank?

Copy link
Contributor

Choose a reason for hiding this comment

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

We have a webgl1 fallback from webgl2, but if they don't have WebGL at all that's a huge problem. I have no idea what happens then. I think even webgl2 is supported on well over 90% of devices by now.

Copy link
Contributor

@toloudis toloudis left a comment

Choose a reason for hiding this comment

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

good to know safari works!

Safari > Preferences > Advanced and enable
"Show Develop menu in menu bar".) Then
please reload the viewer.
reload the viewer.
Copy link
Contributor

Choose a reason for hiding this comment

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

I agree, please remove all the instances of the word please. Pretty please with sugar on top.

I wonder if we can link people to Apple to get full instructions on how to enable WebGL2 on older safari.

@meganrm meganrm merged commit 244d225 into main Oct 1, 2024
6 checks passed
@meganrm meganrm deleted the feature/support-safari branch October 1, 2024 22:25
meganrm added a commit that referenced this pull request Oct 2, 2024
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.

support safari ?
3 participants