Skip to content
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

Feature/assets 387 umbau user UI uebersicht #408

Merged
merged 2 commits into from
Feb 13, 2025

Conversation

TIL-EBP
Copy link
Contributor

@TIL-EBP TIL-EBP commented Feb 6, 2025

resolves #387

@TIL-EBP TIL-EBP requested a review from daniel-va February 6, 2025 15:31
@TIL-EBP TIL-EBP force-pushed the feature/assets-387-umbau-user-ui-uebersicht branch 2 times, most recently from d297b73 to 774db20 Compare February 10, 2025 06:37
Copy link
Contributor

@daniel-va daniel-va left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Squash them commits!

@@ -85,18 +85,19 @@ export class UsersComponent implements OnInit, OnDestroy, AfterViewInit {
this.activeFilters$.next(activeFilters);
}

private filterUsersBySearchTerm(user: User, searchTerm: string) {
private matchUsersBySearchTerm(user: User, searchTerm: string): boolean {
const searchTermLowerCase = searchTerm.toLowerCase();
return Object.entries(user).some(([key, value]) => {
if (key === 'roles') {
return Array.from((value as Map<number, string>).keys()).some((id) =>
this.workgroups.get(id)?.name.toLowerCase().includes(searchTerm.toLowerCase())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
this.workgroups.get(id)?.name.toLowerCase().includes(searchTerm.toLowerCase())
this.workgroups.get(id)?.name.toLowerCase().includes(searchTermLowerCase)

@@ -85,18 +85,19 @@ export class UsersComponent implements OnInit, OnDestroy, AfterViewInit {
this.activeFilters$.next(activeFilters);
}

private filterUsersBySearchTerm(user: User, searchTerm: string) {
private matchUsersBySearchTerm(user: User, searchTerm: string): boolean {
const searchTermLowerCase = searchTerm.toLowerCase();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could just reuse the same variable, but its up to you :)

Suggested change
const searchTermLowerCase = searchTerm.toLowerCase();
searchTerm = searchTerm.toLowerCase();

@TIL-EBP TIL-EBP force-pushed the feature/assets-387-umbau-user-ui-uebersicht branch from 9fbc0bc to f9e085b Compare February 13, 2025 16:04
Copy link

@TIL-EBP TIL-EBP merged commit 2b8979e into develop Feb 13, 2025
8 of 9 checks passed
@TIL-EBP TIL-EBP deleted the feature/assets-387-umbau-user-ui-uebersicht branch February 13, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Umbau UI User Übersicht
2 participants