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

Contrib > Flyout permalink #1638

Merged
merged 25 commits into from
May 11, 2018
Merged

Conversation

Blackbaud-SteveBrush
Copy link
Member

Original contribution: #1520

@codecov-io
Copy link

codecov-io commented Apr 18, 2018

Codecov Report

Merging #1638 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1638      +/-   ##
==========================================
+ Coverage   99.98%   99.98%   +<.01%     
==========================================
  Files         395      395              
  Lines        8139     8145       +6     
  Branches     1196     1198       +2     
==========================================
+ Hits         8138     8144       +6     
  Misses          1        1
Impacted Files Coverage Δ
src/modules/flyout/flyout.module.ts 100% <100%> (ø) ⬆️
src/modules/flyout/flyout.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 3e1d1c6...36a9262. Read the comment docs.

@@ -37,4 +37,8 @@ export class SkyFlyoutAdapterService {
this.renderer.addClass(header.nativeElement, 'sky-flyout-help-shim');
}
}

public navigateToUrl(url: string) {
this.windowRef.getWindow().location.href = url;

Choose a reason for hiding this comment

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

Do we want this to always be the behavior? What if I'm already in the SPA where the destination link resides? Clicking the link would cause a full page refresh when instead I would think we'd want to do SPA navigation instead.

@Blackbaud-BobbyEarl
Copy link

Friendly reminder about @Blackbaud-PaulCrowder's feedback.

Related to that, can we talk through the expected functionality for the "View Record" button? If it's always just a URL that we'll navigate to, I don't think a button (semantically, not visually) is the right choice as users wouldn't be able to "Open in new tab."

@Blackbaud-SteveBrush
Copy link
Member Author

@Blackbaud-BobbyEarl That's a great point. I would also add, that even if this is an internal route, it should be an anchor too. I'll make those changes.

@Blackbaud-SteveBrush
Copy link
Member Author

@Blackbaud-BobbyEarl This is ready for another look. @Blackbaud-PaulCrowder Thoughts?

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.

LGTM. Non-blocking feedback.

  1. The anchor used when permalink.route is present is probably a good candidate for skyAppLink, but we'd have to work out exposing that outside of builder first (assuming we even want to).

  2. Showing a working example using the route.command + route.extras would probably be beneficial to add to the demo.

@Blackbaud-BobbyEarl
Copy link

@Blackbaud-PaulCrowder has @Blackbaud-SteveBrush addressed your requested changes?

[ngIf]="config.permalink?.route">
<a
class="sky-btn sky-btn-default sky-flyout-btn-permalink"
(click)="navigate(config.permalink.route)">

Choose a reason for hiding this comment

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

There's no href attribute on the anchor tag here, so right-clicking and selecting "Open in new tab" won't work. Is there a way to use the routerLink directive here instead, which handles updating the href attribute?

Copy link
Member

@Blackbaud-PaulCrowder Blackbaud-PaulCrowder left a comment

Choose a reason for hiding this comment

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

See inline comments

@Blackbaud-SteveBrush Blackbaud-SteveBrush merged commit e14eb39 into master May 11, 2018
@Blackbaud-SteveBrush Blackbaud-SteveBrush deleted the contrib-flyout-header-button branch May 11, 2018 18:59
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.

6 participants