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

Add help button to modal header #1144

Conversation

Blackbaud-BrandonJones
Copy link
Contributor

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

Resolution for Issue #893

@Blackbaud-BrandonJones Blackbaud-BrandonJones changed the title Feature help modal header Add help button to modal header Sep 29, 2017
@Blackbaud-BobbyEarl
Copy link

Blackbaud-BobbyEarl commented Sep 29, 2017

  1. In the documentations, it looks a little strange to me having the help icon render and having it wrapped in a <code> element. Is that the intended behavior?

screenshot 2017-09-29 14 38 45

  1. Would it be possible to have the modal content display the same "Modal header help was invoked with the following help key: demo-key.html" message displayed in the modal, or some kind of visual feedback. I'm worried by nothing actually happening, some may think it's broken (without knowing to look at the console).

@blackbaud-sky-savage
Copy link
Collaborator

Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: e1d4ce5
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/281399694

(Please note that this is a fully automated comment.)

@codecov-io
Copy link

codecov-io commented Sep 29, 2017

Codecov Report

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

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1144   +/-   ##
======================================
  Coverage     100%    100%           
======================================
  Files         355     355           
  Lines        6578    6590   +12     
  Branches      842     842           
======================================
+ Hits         6578    6590   +12
Impacted Files Coverage Δ
src/modules/modal/modal-configuration.ts 100% <ø> (ø) ⬆️
src/modules/modal/modal-host.service.ts 100% <100%> (ø) ⬆️
src/modules/modal/modal-instance.ts 100% <100%> (ø) ⬆️
src/modules/modal/modal.component.ts 100% <100%> (ø) ⬆️
src/modules/modal/modal-host.component.ts 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 569fece...1ac1dfa. Read the comment docs.

@blackbaud-sky-savage
Copy link
Collaborator

Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 08da56c
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/281399727

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 76f33f2
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/281442527

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: bcf506e
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/281442876

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 9ea609c
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/281465982

(Please note that this is a fully automated comment.)

@Blackbaud-BrandonJones
Copy link
Contributor Author

@Blackbaud-BobbyEarl Implemented your suggestions!

@Blackbaud-BrandonJones
Copy link
Contributor Author

Also, I am unable to add reviewers here, could/should someone also add @Blackbaud-PaulCrowder on this?

@blackbaud-sky-savage
Copy link
Collaborator

Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: 12eb50d
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/282833908

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: a672032
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/282886201

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 705a9a6
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/282895262

(Please note that this is a fully automated comment.)

@@ -29,6 +29,9 @@
<ng-content select="sky-modal-header"></ng-content>
</div>
<div class="sky-modal-header-buttons">
<button *ngIf="helpKey !== undefined" type="button" class="sky-btn" name="help-button" [attr.aria-label]="'open_help' | skyResources" (click)="helpButtonClick()">

Choose a reason for hiding this comment

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

Is the !== undefined needed here? Isn't *ngIf="helpKey" sufficient?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It should be sufficient, the difference would be that ngIf would be getting a direct boolean value by evaluating the expression, instead of an interpolated undefined vs something exists check. I am fine with either :) depends on your standards willing to adjust.

@@ -74,6 +74,10 @@ export class SkyModalHostComponent {
modalComponentRef.destroy();
}

hostService.openHelp.subscribe((helpKey?: string) => {

Choose a reason for hiding this comment

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

I just noticed that none of these subscriptions are unsubscribed during ngOnDestroy. Do you mind adding this to the component to see if it works?

@@ -27,6 +28,10 @@ export class SkyModalInstance {
this.closeModal('save', result);
}

public openHelp(helpKey?: string) {
this.helpInvoked.emit(helpKey);

Choose a reason for hiding this comment

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

I'd prefer the public method's name was more similar to the emitter (this.helpOpened, or vice versa).

@blackbaud-sky-savage
Copy link
Collaborator

Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: 3c72e95
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/283300709

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: 971e631
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/283302020

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 93217ce
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/283313342

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 5e5f19b
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/283319227

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: ae134e7
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/283324364

(Please note that this is a fully automated comment.)

@blackbaud-sky-savage
Copy link
Collaborator

Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 1ac1dfa
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux2/builds/283346305

(Please note that this is a fully automated comment.)

@Blackbaud-SteveBrush Blackbaud-SteveBrush merged commit f3140ba into blackbaud:master Oct 4, 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