-
Notifications
You must be signed in to change notification settings - Fork 9
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: improve content source detection in environment switcher #142
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #142 +/- ##
=======================================
Coverage 99.93% 99.93%
=======================================
Files 44 44
Lines 1517 1525 +8
=======================================
+ Hits 1516 1524 +8
Misses 1 1 ☔ View full report in Codecov by Sentry. |
Editor
when in json viewconst mountpointUrl = new URL(mountpoint); | ||
return mountpointUrl.host.includes('.google.com') | ||
? 'Google Drive' | ||
: mountpointUrl.host.includes('.sharepoint.com') || mountpointUrl.pathname.includes('/Shared%20Documents/sites/') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think we still have the problem you mentioned here by using pathname.
## [1.22.1](v1.22.0...v1.22.1) (2024-05-16) ### Bug Fixes * improve content source detection in environment switcher ([#142](#142)) ([27e0a3b](27e0a3b))
🎉 This PR is included in version 1.22.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
The environment switcher tells the user which content source we will switch to when hitting the edit button. This PR makes that detection more robust and also will hide the button when it's a BYOM project.
Also allow-listed more of the files required to render the json view.