Skip to content

fix: hide navigation header if nothing underneath #1035

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

Merged
merged 12 commits into from
Jul 28, 2021

Conversation

itssharmasandeep
Copy link
Contributor

Description

hide navigation header if there is nothing underneath

Testing

Local Testing done.

Checklist:

  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been merged and published in downstream modules

There was some problem with #1024 so created this new one.

@codecov
Copy link

codecov bot commented Jul 28, 2021

Codecov Report

Merging #1035 (b643c90) into main (c4f70a4) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1035      +/-   ##
==========================================
+ Coverage   85.06%   85.09%   +0.02%     
==========================================
  Files         820      821       +1     
  Lines       16865    16898      +33     
  Branches     2190     2196       +6     
==========================================
+ Hits        14346    14379      +33     
  Misses       2488     2488              
  Partials       31       31              
Impacted Files Coverage Δ
...ents/src/navigation/nav-item/nav-item.component.ts 100.00% <ø> (ø)
...rc/navigation/navigation-list-component.service.ts 100.00% <100.00%> (ø)
...onents/src/navigation/navigation-list.component.ts 86.20% <100.00%> (+1.59%) ⬆️
projects/components/src/public-api.ts 100.00% <100.00%> (ø)

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 c4f70a4...b643c90. Read the comment docs.

@github-actions

This comment has been minimized.

@itssharmasandeep itssharmasandeep merged commit 978312f into main Jul 28, 2021
@itssharmasandeep itssharmasandeep deleted the nav-list-update branch July 28, 2021 17:47
@github-actions
Copy link

Unit Test Results

    4 files  ±0  263 suites  +1   16m 51s ⏱️ +54s
947 tests +2  947 ✔️ +2  0 💤 ±0  0 ❌ ±0 
954 runs  +2  954 ✔️ +2  0 💤 ±0  0 ❌ ±0 

Results for commit 978312f. ± Comparison against base commit c4f70a4.

@@ -11,7 +11,7 @@ import { NavItemLinkConfig } from '../navigation-list.component';
template: `
<ht-link *ngIf="this.config" [paramsOrUrl]="buildNavigationParam | htMemoize: this.config">
<div
*htIfFeature="this.config.features | htFeature as featureState"
*htIfFeature="this.config.featureState$ | async as featureState"
Copy link
Contributor

Choose a reason for hiding this comment

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

ooh.. @itssharmasandeep I think we still need to apply htFeature here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope

Copy link
Contributor Author

Choose a reason for hiding this comment

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

htFeature takes the features which are string[] and convert this to featureState
I am converting this to featureState in the service itself and pass here

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.

3 participants