-
Notifications
You must be signed in to change notification settings - Fork 447
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
Home - adding the contextual help #3950
base: main
Are you sure you want to change the base?
Conversation
Good afternoon @tdonohue! I followed the example of implementing contextual help in other components. But there is a flaw regarding the Store usage. Angular couldn't find a provider for the Store dependency within the context of the TopLevelCommunityListComponent component. And in this implementation the TopLevelCommunityListComponent depends on the ContextHelpService service, which in turn depends on the Store service. I've done some research and, as this is a test, I could mock up the Store. Is that feasible? |
@Andrea-Guevara : Since the error is in a test/spec, you may be able to simply set the "Store" to an empty value, like some other specs do. See for example: https://github.com/DSpace/dspace-angular/blob/main/src/app/access-control/group-registry/group-form/group-form.component.spec.ts#L258 That should likely work here, because that |
Good morning @tdonohue! I analyzed what was different and the only thing missing was the “overrideComponent”. I've already added it and the test passed! |
References
Description
Adding the contextual help feature via the “*dsContextHelp” directive to the “top-level-community-list” and “recent-item-list” components that form part of the home page.
Instructions for Reviewers
List of changes in this PR:
Include guidance for how to test or review your PR.
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You do not need to complete this checklist prior creating your PR (draft PRs are always welcome).
However, reviewers may request that you complete any actions in this list if you have not done so. If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
main
branch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lint
npm run check-circ-deps
)package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.