Skip to content
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

Add types for animation in policy-add-members #3180

Merged
merged 1 commit into from
Mar 23, 2020

Conversation

SEAjamieD
Copy link
Contributor

🔩 Description: What code changed, and why?

This branch adds a type description for the animation changes in the add-members component.

⛓️ Related Resources

👍 Definition of Done

Errors showing here related to policy-add-members.component are gone

src/app/modules/policy/add-members/policy-add-members.component.html:43:46
src/app/modules/policy/add-members/policy-add-members.component.html:66:46
error TS2339: Property 'triggerValue' does not exist on type 'PolicyAddMembersComponent'.
[@dropInAnimation]="{ value: triggerValue, params: { height: 88.2422 }}" >

👟 How to Build and Test the Change

build components/automate-ui-devproxy
make serve

✅ Checklist

📷 Screenshots, if applicable

Signed-off-by: seajamied <jdegnan@chef.io>
@SEAjamieD SEAjamieD requested a review from msorens March 23, 2020 18:26
@SEAjamieD SEAjamieD self-assigned this Mar 23, 2020
@msorens
Copy link
Contributor

msorens commented Mar 23, 2020

FYI: To see the "before" situation--where this actually throws a compile error--you need to pull in this commit: c18c9be.

@SEAjamieD SEAjamieD merged commit 7e1eb32 into ms/angular-9-followup Mar 23, 2020
@SEAjamieD SEAjamieD deleted the jamie/angular-9-followup-fixes branch March 23, 2020 19:54
msorens pushed a commit that referenced this pull request Mar 25, 2020
Signed-off-by: seajamied <jdegnan@chef.io>
msorens pushed a commit that referenced this pull request Mar 27, 2020
Signed-off-by: seajamied <jdegnan@chef.io>
msorens pushed a commit that referenced this pull request Mar 27, 2020
Signed-off-by: seajamied <jdegnan@chef.io>
msorens added a commit that referenced this pull request Mar 31, 2020
* Turn on template checking

Signed-off-by: michael sorens <msorens@chef.io>

* Fix mismatched function signature

error TS2554: Expected 0 arguments, but got 1
<input chefInput formControlName="newPassword" type="password" (keyup)="handlePasswordInput($event)" />

Signed-off-by: michael sorens <msorens@chef.io>

* Fix incompatible types

error TS2367: This condition will always return 'false' since the types 'CredentialTypes' and 'string' have no overlap.
<ng-container *ngIf="credential.type === 'ssh'">

Signed-off-by: michael sorens <msorens@chef.io>

* Cast AbstractControl to FormGroup

error TS2339: Property 'controls' does not exist on type 'AbstractControl'.
<div class="field" *ngIf="form.controls['end'].controls['include'].value">

Signed-off-by: michael sorens <msorens@chef.io>

* Add missing trackBy function

error TS2339: Property 'trackBy' does not exist on type 'SearchBarFilterBarComponent'.
<span *ngFor="let filter of filters; index as i; trackBy: trackBy;">

Signed-off-by: michael sorens <msorens@chef.io>

* Change symbol used in template to public

error TS2341: Property 'selectedStatus$' is private and only accessible within class 'ServiceGroupsComponent'.
<h3>None of the service groups returned {{ selectedStatus$ | async }}</h3>

Signed-off-by: michael sorens <msorens@chef.io>

* Accept Date type in datetime pipe

Handful of these errors due to feeding in a data type that was not present:

error TS2345: Argument of type 'Date' is not assignable to parameter of type 'string | Moment'.
    Run succeeded {{ nodeRun.endTime | datetime: RFC2822 }}

Signed-off-by: michael sorens <msorens@chef.io>

* Remove browser warning

This browser console warning occurs on DataFeed page and Notifications page:

 core.js:12557 Can't bind to 'contrasting-background' since it isn't a known property of 'chef-page-header'.

Signed-off-by: michael sorens <msorens@chef.io>

* Correct invalid expression

error TS2365: Operator '>' cannot be applied to types 'boolean' and 'number'.
50       <li *ngIf="inputText !== '' && delayForNoSuggestions && !filterValues.length > 0" class="no-category-items">

Signed-off-by: michael sorens <msorens@chef.io>

* Add types for animation in policy-add-members (#3180)

Signed-off-by: seajamied <jdegnan@chef.io>

* Event feed guitar strings template error

The incorrect type of parameter was being passed to the zoombutton.

Signed-off-by: Lance Finfrock <lfinfrock@chef.io>

* Jamie/angular 9 followup fixes 2 (#3189)

* Fix status type on reporting component

Signed-off-by: seajamied <jdegnan@chef.io>

* Add types to reporting summary

Signed-off-by: seajamied <jdegnan@chef.io>

* Add disconnected group to initial model and type for disconnected services

Signed-off-by: seajamied <jdegnan@chef.io>

* Add stronger typing to report data service and reporting component

Signed-off-by: seajamied <jdegnan@chef.io>

* Inprove import and add more strong typing

Signed-off-by: seajamied <jdegnan@chef.io>

* Follow-on unit test fixes

Signed-off-by: michael sorens <msorens@chef.io>

* Fix failing job-form e2e specs

Signed-off-by: Scott Christopherson <scott@chef.io>

Co-authored-by: Jamie D <jamie.degnan@gmail.com>
Co-authored-by: Lance Finfrock <lfinfrock@chef.io>
Co-authored-by: Scott Christopherson <scott@chef.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants