Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Feature help library #270

Merged

Conversation

Blackbaud-BrandonJones
Copy link
Contributor

@Blackbaud-BrandonJones Blackbaud-BrandonJones commented Sep 8, 2017

Working demo with setup instructions can be found here:
https://github.com/Blackbaud-BrandonJones/bb-help-test-skyux2

@Blackbaud-BrandonJones Blackbaud-BrandonJones changed the title [HOLD] Feature help library Feature help library Sep 13, 2017
@codecov-io
Copy link

codecov-io commented Sep 14, 2017

Codecov Report

Merging #270 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #270   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          57     57           
  Lines        1344   1353    +9     
  Branches      200    203    +3     
=====================================
+ Hits         1344   1353    +9
Flag Coverage Δ
#builder 100% <100%> (ø) ⬆️
#runtime 100% <ø> (ø) ⬆️
#srcapp 100% <100%> (ø) ⬆️
Impacted Files Coverage Δ
src/app/app.component.ts 100% <100%> (ø) ⬆️
lib/sky-pages-module-generator.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f304995...a45d6df. Read the comment docs.

@Blackbaud-BobbyEarl
Copy link

Is the description of this PR still accurate @Blackbaud-BrandonJones?

@Blackbaud-BrandonJones
Copy link
Contributor Author

Nope sorry, will update. This PR is now entirely self sufficient.

@Blackbaud-BrandonJones
Copy link
Contributor Author

Updated and ready for your review @Blackbaud-BobbyEarl

@@ -47,7 +66,7 @@ export interface SkyuxConfig {
cssPath?: string;
command?: string;
compileMode?: string;
help?: any;
help?: HelpWidgetConfig;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious about the creation of this interface. We'd previous used interfaces for the auth and help clients. We decided against that; however, as somewhat painfully tied those libraries to builder, but without any benefit (consumers never use the interface).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense. I added it because I was using it for the Help Library and thought builder may want to also make use of it. That being said, having to update it in multiple places should one change would be a pain, I am fine with removing it.

@@ -74,6 +74,7 @@ export class AppComponent implements OnInit {
private windowRef: SkyAppWindowRef,
private config: SkyAppConfig,
private styleLoader: SkyAppStyleLoader,
private helpInitService: HelpInitializationService,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use a similar approach to the optional searchProvider below this line, and mark the service as optional + check for it's existence for using it? I believe this would allow us to conditionally inject it in lib/sky-pages-module-generator.js, thereby not including the library for SPAs that don't have help defined in skyuxconfig.json. Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good thoughts! I'll see what I can do.

@@ -83,6 +103,12 @@ function getSource(skyAppConfig) {
'AppExtrasModule'
];

if (skyAppConfig.skyux.help) {
nodeModulesImports.push(`import { BBHelpModule } from '@blackbaud/skyux-lib-help';`);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm nitpicking, but can you name this nodeModuleImports so the case matches runtimeModuleImports?

Copy link

@Blackbaud-BobbyEarl Blackbaud-BobbyEarl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work. Thanks @Blackbaud-BrandonJones!

@Blackbaud-BobbyEarl Blackbaud-BobbyEarl merged commit 4f3fe1d into blackbaud:master Sep 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants