-
Notifications
You must be signed in to change notification settings - Fork 203
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
Add configuration settings to disable help panel, share panel and account menu #6783
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6783 +/- ##
=======================================
Coverage 99.43% 99.43%
=======================================
Files 270 270
Lines 10243 10268 +25
Branches 2450 2467 +17
=======================================
+ Hits 10185 10210 +25
Misses 58 58 ☔ View full report in Codecov by Sentry. |
Enable third-party authority owners to hide: 1. The Share / Import / Export panel 2. The Help / Version panel 3. The user account menu The initial use case is the exam-notes app where the Import/Export panel is hidden to address a concern around cheating and the Help/Version panel is hidden to remove unwanted links to external websites (our KB) in this context. The user account menu is hidden just to simplify the UI. Part of #6782.
The purpose of disabling the Help panel is to remove links to external websites which is necessary for the exam-notes app. Therefore we also need to remove the formatting help link from the annotation toolbar.
When the `enableHelpPanel` service configuration is set to `false`, don't show the tutorial/help panel to new users on first launch.
dcb88a7
to
2c866df
Compare
enableAccountMenu?: boolean; | ||
|
||
/** Enable or disable the Help / Version panel. */ | ||
enableHelpPanel?: boolean; |
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.
I reckon we have some rst documentation that covers these options. Should we update it?
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.
We do, I'll update that in a separate PR.
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.
LGTM
Add configuration options for annotation services to hide additional controls:
enableHelpPanel
allows hiding the Help panel. This also disables automatic display of the tutorial on first run and removes the Help link in the annotation toolbar.enableShareImportExportPanel
allows hiding the Share menu in the toolbar which contains the Share, Import and Export panelsenableAccountMenu
allows hiding the user account menuWith all of these controls disabled, the client looks like this:
Fixes #6782.
This can be tested with the exam-notes app using https://github.com/hypothesis/exam-notes/pull/23.