feat: DSAPP-106 CMS Plugin for User Guide Link #1653
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Add plugin to render User Guide link on CMS app overview page.
Status
Tip
Tested locally.
Related
Changes
Testing & UI
Create/Find an App Listing Entry with an
href
value.E.g. Ground-Motion Portal app. Scroll to "CMS Display Options:".
Create/Open page at a path that matches one of an App Listing Entry.
E.g.
/use-designsafe/tools-applications/hazard-apps/ground-motion-portal/
.On page, add "User Guide Link" plugin; do not choose app.
Verify link is rendered that opens page at correct path for User Guide.
E.g.
/user-guide/tools/hazard/#scec
.3-4.mov
Change page path to one that does not match an app.
Verify:
5-6.mov
Change "User Guide Link" plugin; choose app.
Verify button URL is for the app chosen.
7-8.mov
Notes
The new function
get_instance_from_url
could be used by existing plugins,RelatedApps
andAppVariants
, so that their models,AppVariantsPlugin
andRelatedAppsPlugin
, need not be used.