-
Notifications
You must be signed in to change notification settings - Fork 0
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 Organizations pages ui and routing #1
Merged
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
69d9f09
basic docker config
6a4fe7f
organizations routing base
79a9ffa
initial organizations pages ui
30c7819
fetch current org
699c8a1
non inventory org pages
ae7b3cc
inventory specific pages
ee38c2c
Merge branch 'main' into feature/organizations-ui
perryr16 fb20549
remove docker config
perryr16 e5dd452
remove duplicate host
perryr16 30ed831
lint
perryr16 064a240
prettier
perryr16 d667d8b
moved navigation to sidebar
crutan 3ab79bf
remove org id from org rotues
perryr16 dbffdeb
prevent nav collapse on /taxlots
perryr16 64f6faa
organization backend now active
crutan 46b8c37
now with async pipe for simpler componentry
crutan ea4c14f
lint - convert from ngIf to control-flow style w/ @if
crutan be13214
basic docker config
0214315
organizations routing base
5adce69
initial organizations pages ui
20d8fc0
fetch current org
02e165e
non inventory org pages
d9ca2ea
inventory specific pages
637d304
remove docker config
perryr16 90e7864
remove duplicate host
perryr16 03835bf
lint
perryr16 1684162
prettier
perryr16 56f62db
moved navigation to sidebar
crutan 85438f7
remove org id from org rotues
perryr16 e201d40
prevent nav collapse on /taxlots
perryr16 53496a7
organization backend now active
crutan ab12411
now with async pipe for simpler componentry
crutan 496cd2d
lint - convert from ngIf to control-flow style w/ @if
crutan c90d15d
revert collapsible component changes for now
crutan c21752c
org cycles page
perryr16 1fac901
re-add forwardRef calls to make the nav components work again
crutan 9c4af32
cycles header
perryr16 ba47045
merge branches
perryr16 982dabf
lint
perryr16 e318361
linter fix for isActive link in the vertical component
crutan 17b97af
update column mapping icon
kflemin e9d145d
lint
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 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,33 @@ | ||
import { HttpClient } from '@angular/common/http' | ||
import { inject, Injectable } from '@angular/core' | ||
import { BehaviorSubject, map } from 'rxjs' | ||
import { OrganizationService } from '@seed/api/organization' | ||
import type { Cycle, ListCyclesResponse } from './cycle.types' | ||
|
||
@Injectable({ providedIn: 'root' }) | ||
export class CycleService { | ||
private _httpClient = inject(HttpClient) | ||
private _organizationService = inject(OrganizationService) | ||
private _cycles = new BehaviorSubject<Cycle[]>([]) | ||
|
||
cycles$ = this._cycles.asObservable() | ||
|
||
get(): void { | ||
// fetch current organization | ||
this._organizationService.currentOrganization$.subscribe(({ org_id }) => { | ||
const url = `/api/v3/cycles/?organization_id=${org_id}` | ||
// fetch cycles | ||
this._httpClient | ||
.get<ListCyclesResponse>(url) | ||
.pipe(map((response) => response.cycles)) | ||
.subscribe({ | ||
next: (cycles) => { | ||
this._cycles.next(cycles) | ||
}, | ||
error: (error) => { | ||
console.error('Error fetching cycles:', error) | ||
}, | ||
}) | ||
}) | ||
} | ||
} |
This file contains 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 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 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 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 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 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 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 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 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,12 @@ | ||
export * from './organizations-access-level-tree/organizations-access-level-tree.component' | ||
export * from './organizations-column-mappings/organizations-column-mappings.component' | ||
export * from './organizations-column-settings/organizations-column-settings.component' | ||
export * from './organizations-cycles/organizations-cycles.component' | ||
export * from './organizations-data-quality/organizations-data-quality.component' | ||
export * from './organizations-derived-columns/organizations-derived-columns.component' | ||
export * from './organizations-email-templates/organizations-email-templates.component' | ||
export * from './organizations-labels/organizations-labels.component' | ||
export * from './organizations-members/organizations-members.component' | ||
export * from './organizations-list/organizations-list.component' | ||
export * from './organizations-nav/organizations-nav.component' | ||
export * from './organizations-settings/organizations-settings.component' |
1 change: 1 addition & 0 deletions
1
...anizations/organizations-access-level-tree/organizations-access-level-tree.component.html
This file contains 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 @@ | ||
<div class="prose">Access Level Tree Content</div> |
14 changes: 14 additions & 0 deletions
14
...rganizations/organizations-access-level-tree/organizations-access-level-tree.component.ts
This file contains 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,14 @@ | ||
import type { OnInit } from '@angular/core' | ||
import { Component } from '@angular/core' | ||
import { MatIconModule } from '@angular/material/icon' | ||
|
||
@Component({ | ||
selector: 'seed-organizations-access-level-tree', | ||
templateUrl: './organizations-access-level-tree.component.html', | ||
imports: [MatIconModule], | ||
}) | ||
export class OrganizationsAccessLevelTreeComponent implements OnInit { | ||
ngOnInit(): void { | ||
console.log('organizations access level tree') | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
.../organizations/organizations-column-mappings/organizations-column-mappings.component.html
This file contains 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,20 @@ | ||
<div class="flex min-w-0 flex-auto flex-col" *transloco="let t"> | ||
<div class="flex space-x-1"> | ||
@for (tab of tabs; track tab) { | ||
<div | ||
class="bg-default relative flex cursor-pointer self-start overflow-hidden rounded-t-xl border border-b-0 pb-1 pl-5 pr-4 pt-2" | ||
[ngClass]="type === tab ? 'z-2' : ['bg-slate-50', 'dark:bg-slate-700']" | ||
(click)="toggleInventoryType(tab)" | ||
matRipple | ||
> | ||
<div class="overflow-hidden"> | ||
<div class="truncate font-medium leading-6">{{ t(tab) }}</div> | ||
</div> | ||
</div> | ||
} | ||
</div> | ||
|
||
<div class="z-1 -mt-px flex-auto border-t pt-4 sm:pt-6"> | ||
<div class="mx-auto w-full max-w-screen-xl">{{ t(type) }} column mappings table</div> | ||
</div> | ||
</div> |
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.
I'd like to create a reusable component to handle the tab logic. You'll see this code repeat a few times