-
Notifications
You must be signed in to change notification settings - Fork 11
fix: common project should not depend on components project #1258
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,8 +3,7 @@ import { Title } from '@angular/platform-browser'; | |
| import { Router, UrlSegment } from '@angular/router'; | ||
| import { RouterTestingModule } from '@angular/router/testing'; | ||
| import { IconType } from '@hypertrace/assets-library'; | ||
| import { APP_TITLE } from '@hypertrace/common'; | ||
| import { NavItemType } from '@hypertrace/components'; | ||
| import { APP_TITLE, NavItemType } from '@hypertrace/common'; | ||
|
||
| import { patchRouterNavigateForTest } from '@hypertrace/test-utils'; | ||
| import { createServiceFactory, mockProvider, SpectatorService } from '@ngneat/spectator/jest'; | ||
| import { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,13 +14,13 @@ import { | |
| UrlSegment, | ||
| UrlTree | ||
| } from '@angular/router'; | ||
| import { NavItemConfig, NavItemType } from '@hypertrace/components'; | ||
| import { uniq } from 'lodash-es'; | ||
| import { from, Observable, of } from 'rxjs'; | ||
| import { distinctUntilChanged, filter, map, share, skip, startWith, switchMap, take, tap } from 'rxjs/operators'; | ||
| import { isEqualIgnoreFunctions, throwIfNil } from '../utilities/lang/lang-utils'; | ||
| import { Dictionary } from '../utilities/types/types'; | ||
| import { APP_TITLE, HtRoute } from './ht-route'; | ||
| import { NavItemConfig, NavItemType } from './navigation.config'; | ||
|
||
|
|
||
| @Injectable({ providedIn: 'root' }) | ||
| export class NavigationService { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should remove this type safety. We only support few size options. Moving the method to a new service would solve this.