Skip to content

Commit

Permalink
feat(workflows): ui review
Browse files Browse the repository at this point in the history
  • Loading branch information
Xaviju committed Sep 29, 2023
1 parent ee5255d commit 3e90c35
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
<tg-ui-breadcrumb
*ngIf="workflows.length > 1"
[hideLastCrumb]="editStatusFormOpened"
[crumbs]="[t('commons.kanban'), t('kanban.workflows'), workflow.name]"
[crumbs]="[
t('commons.kanban'),
t('kanban.workflows').charAt(0).toLocaleUpperCase() +
t('kanban.workflows').slice(1),
workflow.name
]"
[accent]="true">
</tg-ui-breadcrumb>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ Copyright (c) 2023-present Kaleidos INC
}

tg-kanban-header {
margin-block-end: var(--spacing-20);
min-block-size: var(--spacing-40);
}
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ ul {
margin-block: 0;
margin-inline-end: var(--spacing-8);
margin-inline-start: var(--spacing-16);
padding-block: var(--spacing-4);
padding-inline-start: var(--spacing-8);
}

Expand All @@ -201,8 +200,9 @@ ul {
@mixin ellipsis;

block-size: var(--spacing-28);
display: inline-block;
display: flex;
inline-size: 100%;
padding-block: 0;

&:hover {
background: var(--color-gray90);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[@mainNavContainer]="menuState"
class="main-nav-container-inner">
<!-- visibility: hidden prevent focus in the project menu when the setting menu is visible -->

{{ showProjectSettings }}
<tg-project-navigation-menu
[collapsed]="collapsed"
[class.collapsed]="collapsed"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,20 @@ import {
transition,
trigger,
} from '@angular/animations';
import { CommonModule } from '@angular/common';
import {
AfterViewInit,
ChangeDetectionStrategy,
Component,
DestroyRef,
ElementRef,
HostBinding,
HostListener,
inject,
Input,
OnInit,
DestroyRef,
} from '@angular/core';
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
import {
ActivatedRoute,
ActivatedRouteSnapshot,
Expand All @@ -37,10 +39,8 @@ import { RxState } from '@rx-angular/state';
import { Project } from '@taiga/data';
import { Subject } from 'rxjs';
import { LocalStorageService } from '~/app/shared/local-storage/local-storage.service';
import { ProjectNavigationSettingsComponent } from './components/project-navigation-settings/project-navigation-settings.component';
import { CommonModule } from '@angular/common';
import { ProjectNavigationMenuComponent } from './components/project-navigation-menu/project-navigation-menu.component';
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
import { ProjectNavigationSettingsComponent } from './components/project-navigation-settings/project-navigation-settings.component';

const collapseMenuAnimation = '200ms ease-out';
const openMenuAnimation = '200ms ease-in';
Expand Down Expand Up @@ -258,6 +258,7 @@ export class ProjectNavigationComponent implements OnInit, AfterViewInit {
}

public openSettings() {
console.log(1);
this.showProjectSettings = true;
void this.router.navigate([
'project',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ const routes: Routes = [
'~/app/modules/project/feature-overview/project-feature-overview.module'
).then((m) => m.ProjectFeatureOverviewModule),
},
{
path: ':slug',
loadChildren: () =>
import(
'~/app/modules/project/feature-overview/project-feature-overview.module'
).then((m) => m.ProjectFeatureOverviewModule),
},
{
path: 'overview',
loadChildren: () =>
Expand Down Expand Up @@ -56,39 +63,31 @@ const routes: Routes = [
).then((m) => m.ProjectFeatureViewSetterModule),
canDeactivate: [CanDeactivateGuard],
},
{
path: ':slug',
loadChildren: () =>
import(
'~/app/modules/project/feature-overview/project-feature-overview.module'
).then((m) => m.ProjectFeatureOverviewModule),
},
{
path: ':slug/kanban',
redirectTo: ':slug/kanban/main',
pathMatch: 'full',
},
{
path: ':slug/new-workflow',
path: ':slug/kanban/:workflow',
loadChildren: () =>
import(
'~/app/modules/project/feature-new-workflow/project-feature-new-workflow.module'
).then((m) => m.ProjectFeatureNewWorkflowModule),
'~/app/modules/project/feature-view-setter/project-feature-view-setter.module'
).then((m) => m.ProjectFeatureViewSetterModule),
canDeactivate: [CanDeactivateGuard],
data: {
newKanban: true,
kanban: true,
},
},
{
path: ':slug/kanban/:workflow',
path: ':slug/new-workflow',
loadChildren: () =>
import(
'~/app/modules/project/feature-view-setter/project-feature-view-setter.module'
).then((m) => m.ProjectFeatureViewSetterModule),
'~/app/modules/project/feature-new-workflow/project-feature-new-workflow.module'
).then((m) => m.ProjectFeatureNewWorkflowModule),
canDeactivate: [CanDeactivateGuard],
data: {
kanban: true,
reuseComponent: false,
newKanban: true,
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ Copyright (c) 2023-present Kaleidos INC
}

.crumb {
padding: var(--spacing4);
padding: var(--spacing-4);
}

.crumb-divider {
block-size: var(--spacing-8);
inline-size: var(--spacing-8);
}

.accent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@
[class.accent]="isLast && accent">
{{ crumb }}
</span>
<span
<tui-svg
class="crumb-divider"
*ngIf="!(hideLastCrumb && i === crumbs.length - 2) && !isLast">
&gt;
</span>
*ngIf="!(hideLastCrumb && i === crumbs.length - 2) && !isLast"
src="chevron-right"></tui-svg>
</ng-container>
</ng-container>
<ng-container *ngIf="type === 'collapsed'">
Expand Down

0 comments on commit 3e90c35

Please sign in to comment.