Repository navigation
[NAE-2468] UI/UX fixes & improvements #356
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 all 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 |
|---|---|---|
|
|
@@ -9,4 +9,5 @@ export interface ToolbarConfig { | |
| toolbarLogo?: string; | ||
| profileUrl?: string; | ||
| loginUrl?: string; | ||
| color?: string; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,21 +71,23 @@ | |
| <mat-icon color="warn">close</mat-icon> | ||
| {{ 'tasks.view.cancel' | translate}} | ||
| </button> | ||
| <div class="mat-menu-item-look" *ngIf="canOverflow && showTableSection"> | ||
| <mat-divider *ngIf="canOverflow && showTableSection"></mat-divider> | ||
| <div class="header-menu-row header-menu-toggle" (click)="clickStop($event)" | ||
| *ngIf="canOverflow && showTableSection"> | ||
|
Check warning on line 76 in projects/netgrif-components/src/lib/header/header.component.html
|
||
| <mat-slide-toggle | ||
| [formControl]="overflowControl">{{ 'headers.overflowMode' | translate}}</mat-slide-toggle> | ||
| </div> | ||
| <div class="mat-menu-item-look mat-menu-item-height" (click)="clickStop($event)" | ||
| <div class="header-menu-row header-menu-field" (click)="clickStop($event)" | ||
| *ngIf="canOverflow && showTableSection && overflowControl.value"> | ||
|
Check warning on line 81 in projects/netgrif-components/src/lib/header/header.component.html
|
||
| <mat-form-field appearance="outline"> | ||
| <mat-form-field appearance="outline" subscriptSizing="dynamic"> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: set -eu
printf '%s\n' '--- material dependency references ---'
rg -n --hidden --glob '!node_modules' --glob '!dist' --glob '!build' '"@angular/material"|"@angular/cdk"|"@angular/core"' package.json projects/*/package.json package-lock.json npm-shrinkwrap.json yarn.lock pnpm-lock.yaml 2>/dev/null || true
printf '%s\n' '--- changed template at head ---'
git show f074b09beab9c30856729361e7f214ca786c1d18:projects/netgrif-components/src/lib/header/header.component.html | nl -ba | sed -n '68,98p'
printf '%s\n' '--- template diff against merge base ---'
git diff --unified=20 d87dbd875048a02119b874601bd6c14d5cd2957a f074b09beab9c30856729361e7f214ca786c1d18 -- projects/netgrif-components/src/lib/header/header.component.html
printf '%s\n' '--- manifest files ---'
git ls-tree -r --name-only f074b09beab9c30856729361e7f214ca786c1d18 | rg '(^|/)(package(-lock)?\.json|npm-shrinkwrap\.json|yarn\.lock|pnpm-lock\.yaml)$' || trueRepository: netgrif/components Length of output: 7549 🏁 Script executed: set -eu
printf '%s\n' '--- material dependency references at reviewed head ---'
git grep -n -E '"@angular/(material|cdk|core)"' f074b09beab9c30856729361e7f214ca786c1d18 -- \
'package.json' '*/package.json' 'package-lock.json' 'npm-shrinkwrap.json' 'yarn.lock' 'pnpm-lock.yaml' || true
printf '%s\n' '--- changed template at reviewed head ---'
git show f074b09beab9c30856729361e7f214ca786c1d18:projects/netgrif-components/src/lib/header/header.component.html | nl -ba | sed -n '74,94p'
printf '%s\n' '--- relevant template diff ---'
git diff --unified=8 d87dbd875048a02119b874601bd6c14d5cd2957a f074b09beab9c30856729361e7f214ca786c1d18 -- projects/netgrif-components/src/lib/header/header.component.htmlRepository: netgrif/components Length of output: 6428 🤖 get_repo_knowledge executed:
Length of output: 1394 🏁 Script executed: set -eu
printf '%s\n' '--- root package context ---'
git show f074b09beab9c30856729361e7f214ca786c1d18:package.json | nl -ba | sed -n '55,95p'
printf '%s\n' '--- netgrif-components package context ---'
git show f074b09beab9c30856729361e7f214ca786c1d18:projects/netgrif-components/package.json | nl -ba | sed -n '1,75p'
printf '%s\n' '--- angular workspace references ---'
git grep -n -E 'netgrif-components|project.json|ng-packagr|build' f074b09beab9c30856729361e7f214ca786c1d18 -- angular.json projects/netgrif-components 2>/dev/null | head -80Repository: netgrif/components Length of output: 17979 Align the Material peer dependency before using
Suggested fix- "@angular/material": "~13.3.1",
+ "@angular/material": "~17.1.0",🤖 Prompt for AI Agents |
||
| <mat-label>{{ 'headers.columnWidth' | translate}}</mat-label> | ||
| <input matInput type="number" [formControl]="columnWidthControl"> | ||
| <mat-error *ngIf="!columnWidthControl.valid">{{getErrorMessageWidth()}}</mat-error> | ||
| </mat-form-field> | ||
| </div> | ||
| <div class="mat-menu-item-look mat-menu-item-height" (click)="clickStop($event)" | ||
| <div class="header-menu-row header-menu-field" (click)="clickStop($event)" | ||
| *ngIf="canOverflow && showTableSection && overflowControl.value"> | ||
|
Check warning on line 89 in projects/netgrif-components/src/lib/header/header.component.html
|
||
| <mat-form-field appearance="outline"> | ||
| <mat-form-field appearance="outline" subscriptSizing="dynamic"> | ||
| <mat-label>{{ 'headers.columnCount' | translate}}</mat-label> | ||
| <input matInput type="number" [formControl]="columnCountControl"> | ||
| <mat-error *ngIf="!columnCountControl.valid">{{getErrorMessageCount()}}</mat-error> | ||
|
|
||
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.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: netgrif/components
Length of output: 4700
🏁 Script executed:
Repository: netgrif/components
Length of output: 4078
Handle missing management fields before reading
.value.If a management case omits
login_urlortoolbar_color,getFieldValuecalls.valueon the undefined result offind(...). The error occurs while buildingtoolbarConfig, before dashboard items load. Guard these lookups and return the appropriate login and color fallbacks when either field is absent.🤖 Prompt for AI Agents