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

Passive progress indicator #2013

Merged
merged 14 commits into from
Sep 26, 2018
Merged

Conversation

blackbaud-conorwright
Copy link
Contributor

Implemented a passive progress indicator mode
Fixed sizing of progress indicator steps

Resolves: #2004

@codecov-io
Copy link

codecov-io commented Sep 20, 2018

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2013      +/-   ##
==========================================
+ Coverage   99.94%   99.94%   +<.01%     
==========================================
  Files         418      418              
  Lines        8919     8939      +20     
  Branches     1326     1334       +8     
==========================================
+ Hits         8914     8934      +20     
  Misses          5        5
Impacted Files Coverage Δ
...progress-indicator/progress-indicator.component.ts 100% <100%> (ø) ⬆️
...ndicator-item/progress-indicator-item.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 1ef4d42...b0041e1. Read the comment docs.

Copy link
Contributor

@Blackbaud-AlexKingman Blackbaud-AlexKingman left a comment

Choose a reason for hiding this comment

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

Just a few comments for you. Otherwise looks good!

<div *ngIf="!isHorizontal || isActive"
class="sky-progress-indicator-item-heading"
[ngClass]="{
'sky-text-success': isComplete && !isActive && !isHorizontal,
Copy link
Contributor

Choose a reason for hiding this comment

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

This ngClass has an awful lot of conditionals - should we move this to the component so it can be covered with tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved

</div>
</div>
<div *ngIf="!isHorizontal || isActive"
<div *ngIf="!(isHorizontal || isPassive) || isPassive && !isLastItem || isActive"
Copy link
Contributor

Choose a reason for hiding this comment

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

Same thing here. We have a lot of logic in both the <div> and the ngClass. Should the logic be moved to our component?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved

>
</sky-progress-indicator-item>
<sky-progress-indicator-item
title=""
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this last step show some sort of text? Since this is a demo, I'm wondering if might mislead consumers and make them think a piece of programming is necessary to make this text show.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alright, I put in "HIDDEN TITLE". That way if they look at the code it may be more clear.

@blackbaud-conorwright blackbaud-conorwright merged commit 17ad26b into master Sep 26, 2018
@blackbaud-conorwright blackbaud-conorwright deleted the passive-progress-indicator branch September 26, 2018 14:45
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.

3 participants