-
Notifications
You must be signed in to change notification settings - Fork 41
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
Hide CFM menu inside of the Activity Player #1557
Conversation
The interactieApi url param is added to the URL when a activity player embedded share link is copied from the CFM share menu. The CODAP v2 code also checked for older url params `lara` and `launchFromLara`. There are no interactives in the LARA authoring system which use those older params, so support for them is dropped.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1557 +/- ##
=======================================
Coverage 84.50% 84.50%
=======================================
Files 582 582
Lines 29435 29435
Branches 7547 7547
=======================================
Hits 24875 24875
Misses 4404 4404
Partials 156 156
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
codap-v3 Run #4739
Run Properties:
|
Project |
codap-v3
|
Branch Review |
main
|
Run status |
Passed #4739
|
Run duration | 08m 47s |
Commit |
7afee37e87: Merge pull request #1557 from concord-consortium/188415994-in-ap-hide-cfm-menu
|
Committer | Scott Cytacki |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
45
|
Skipped |
0
|
Passing |
218
|
View all changes introduced in this branch ↗︎ |
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.
👍 Looks good! In practice the hideMenuBar
option in the CFM config seems to hide the hamburger menu rather than the menu bar, but that's a preexisting condition.
The CFM menu is hidden when the
interactiveApi
URL param is present.The interactiveApi url param is added to the URL when a "Interactive API" share link is copied from the CFM share dialog.
The CODAP v2 code also checked for older url params
lara
andlaunchFromLara
.codap/apps/dg/core.js
Lines 354 to 359 in 9b54cf1
I checked and there are no URLs in the LARA authoring system which use those older params, so I didn't include support for them in the CODAPv3 code.