Repository navigation
Apply deployment branding across the Angular UI #92
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
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
5dc2dfa
scenarios and measure parity plus enhancement
kflemin d4d7d83
fix units and roll ups for measure savings
kflemin 09eb355
customize look of SEED with text and logo, implement dashboard page f…
kflemin a7644ab
Preserve scenarios without measures
Copilot 9884fb8
Fix HTML entity encoding in main.component.html
kflemin 3915dad
Localize sign-up data terms
Copilot 2271612
lint
kflemin 2857cb5
Merge remote-tracking branch 'origin/main' into override-look
Copilot 3f4d41c
update translations
kflemin 338a3bf
Merge branch 'override-look' of github.com:seed-platform/seed-angular…
kflemin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,14 @@ | ||
| export type ConfigResponse = { | ||
| allow_signup: boolean; | ||
| branding: { | ||
| logo_url: string; | ||
| home_hero_image_url: string; | ||
| home_heading: string; | ||
| home_text: string; | ||
| login_heading: string; | ||
| login_text: string; | ||
| home_content_mode: string; | ||
| }; | ||
| hidden_navigation: string[]; | ||
| integrations: { salesforce: boolean; better: boolean }; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,17 @@ | ||
| import { CdkScrollable } from '@angular/cdk/scrolling' | ||
| import { Component, ViewEncapsulation } from '@angular/core' | ||
| import { AsyncPipe } from '@angular/common' | ||
| import { Component, inject, ViewEncapsulation } from '@angular/core' | ||
| import { RouterOutlet } from '@angular/router' | ||
| import { ConfigService } from '@seed/api' | ||
| import { SEEDLoadingBarComponent } from '@seed/components' | ||
| import { SharedImports } from '@seed/directives' | ||
|
|
||
| @Component({ | ||
| selector: 'layout-landing', | ||
| templateUrl: './landing.component.html', | ||
| encapsulation: ViewEncapsulation.None, | ||
| imports: [CdkScrollable, RouterOutlet, SEEDLoadingBarComponent, SharedImports], | ||
| imports: [AsyncPipe, CdkScrollable, RouterOutlet, SEEDLoadingBarComponent, SharedImports], | ||
| }) | ||
| export class LandingLayoutComponent {} | ||
| export class LandingLayoutComponent { | ||
| readonly config$ = inject(ConfigService).config$ | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| import { TestBed } from '@angular/core/testing' | ||
| import { ActivatedRoute, Router } from '@angular/router' | ||
| import { NEVER } from 'rxjs' | ||
| import { ConfigService, VersionService } from '@seed/api' | ||
| import { SeedNavigationService } from '@seed/components' | ||
| import { MediaWatcherService } from '@seed/services' | ||
| import { NavigationService } from 'app/core/navigation/navigation.service' | ||
| import { MainLayoutComponent } from './main.component' | ||
|
|
||
| describe('MainLayoutComponent', () => { | ||
| it('clears nav hover when collapsing and expands on the next click', () => { | ||
| let hovered = true | ||
| const handleMouseLeave = jasmine.createSpy('handleMouseLeave').and.callFake(() => { | ||
| hovered = false | ||
| }) | ||
|
|
||
| TestBed.configureTestingModule({ | ||
| providers: [ | ||
| { provide: MediaWatcherService, useValue: { onMediaChange$: NEVER } }, | ||
| { provide: NavigationService, useValue: { getNavigation: () => [] } }, | ||
| { provide: SeedNavigationService, useValue: { getComponent: () => ({ handleMouseLeave }) } }, | ||
| { provide: VersionService, useValue: { version$: NEVER } }, | ||
| { provide: ConfigService, useValue: { config$: NEVER } }, | ||
| { provide: Router, useValue: { events: NEVER } }, | ||
| { provide: ActivatedRoute, useValue: {} }, | ||
| ], | ||
| }) | ||
|
|
||
| const component = TestBed.runInInjectionContext(() => new MainLayoutComponent()) | ||
| component.navigationAppearance = 'default' | ||
| component.toggleNavigationAppearance() | ||
| expect(component.navigationAppearance).toBe('dense') | ||
| expect(hovered).toBeFalse() | ||
| expect(handleMouseLeave).toHaveBeenCalledTimes(1) | ||
|
|
||
| component.toggleNavigationAppearance() | ||
| expect(component.navigationAppearance).toBe('default') | ||
| expect(handleMouseLeave).toHaveBeenCalledTimes(1) | ||
| }) | ||
| }) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Localized the toggle’s accessible label and tooltip with the existing Transloco
CollapseandExpandkeys. Commit:8404462.