Revert "frontend: Refactor user management components and update routes"

This reverts commit f677b18879bb13acf063de6a3366059a3a49d3ed.
This commit is contained in:
juancarmore 2026-02-17 17:40:50 +01:00
parent 90a1c6fde9
commit ac3a728591
7 changed files with 74 additions and 30 deletions

View File

@ -3,5 +3,5 @@ export * from './config/config.component';
export * from './console/console.component';
export * from './embedded/embedded.component';
export * from './overview/overview.component';
export * from './users/users.component';
export * from './users-permissions/users-permissions.component';

View File

@ -1,10 +1,12 @@
<div class="ov-page-container ov-mb-xxl">
<div class="page-header">
<div class="title">
<mat-icon class="material-symbols-outlined ov-users">group</mat-icon>
<h1>Users</h1>
<mat-icon class="material-symbols-outlined ov-users-permissions">passkey</mat-icon>
<h1>Users & Permissions</h1>
</div>
<p class="subtitle">Manage your users, control access, and register new accounts.</p>
<p class="subtitle">
Manage who can access your video meeting rooms and control their permissions.
</p>
</div>
@if (isLoading()) {
@ -78,8 +80,8 @@
<div class="form-field-header">
<h3>Administrator Password</h3>
<p class="field-description">
Update your administrator password to keep your account secure. We recommend using a
strong, unique password.
Update your administrator password to keep your account secure.
We recommend using a strong, unique password.
</p>
</div>
@ -137,10 +139,7 @@
>
<mat-icon>{{ showNewPassword() ? 'visibility_off' : 'visibility' }}</mat-icon>
</button>
<mat-hint
>Minimum 5 characters. We recommend using letters, numbers, and
symbols</mat-hint
>
<mat-hint>Minimum 5 characters. We recommend using letters, numbers, and symbols</mat-hint>
@if (getNewPasswordError()) {
<mat-error>{{ getNewPasswordError() }}</mat-error>
}
@ -188,6 +187,50 @@
</button>
</mat-card-actions>
</mat-card>
<!-- Access & Permissions Section -->
<!-- <mat-card class="section-card access-section">
<mat-card-header>
<div mat-card-avatar>
<mat-icon class="section-icon">security</mat-icon>
</div>
<mat-card-title>Access & Permissions</mat-card-title>
</mat-card-header>
<mat-divider class="section-divider"></mat-divider>
<mat-card-content>
<form [formGroup]="accessSettingsForm" (ngSubmit)="onSaveAccessSettings()"> -->
<!-- Authentication for joining room -->
<!-- <div class="form-section">
<div class="form-field-header">
<h3>Authentication for joining room</h3>
</div>
<p class="field-description">Choose which users must authenticate for joining room.</p>
<mat-form-field subscriptSizing="dynamic" appearance="outline" class="auth-select-field">
<mat-label>Select...</mat-label>
<mat-select formControlName="authModeToAccessRoom">
@for (option of authModeOptions; track option.value) {
<mat-option [value]="option.value">{{ option.label }}</mat-option>
}
</mat-select>
</mat-form-field>
</div>
</form>
</mat-card-content>
<mat-card-actions>
<button
mat-button
type="submit"
(click)="onSaveAccessSettings()"
[disabled]="!hasAccessSettingsChanges()"
class="primary-button"
>
Save configuration
</button>
</mat-card-actions>
</mat-card> -->
</div>
}
</div>

View File

@ -24,7 +24,7 @@ import { NotificationService } from '../../../../shared/services/notification.se
import { AuthService } from '../../../auth/services/auth.service';
@Component({
selector: 'ov-users',
selector: 'ov-users-permissions',
imports: [
MatCardModule,
MatButtonModule,
@ -38,10 +38,10 @@ import { AuthService } from '../../../auth/services/auth.service';
ReactiveFormsModule
// ProFeatureBadgeComponent
],
templateUrl: './users.component.html',
styleUrl: './users.component.scss'
templateUrl: './users-permissions.component.html',
styleUrl: './users-permissions.component.scss'
})
export class UsersComponent implements OnInit {
export class UsersPermissionsComponent implements OnInit {
isLoading = signal(true);
showCurrentPassword = signal(false);

View File

@ -23,19 +23,6 @@ export const consoleChildRoutes: DomainRouteConfig[] = [
},
...roomsConsoleRoutes,
...recordingsConsoleRoutes,
{
route: {
path: 'users',
loadComponent: () => import('../pages/users/users.component').then((m) => m.UsersComponent)
},
navMetadata: {
label: 'Users',
route: 'users',
icon: 'group',
iconClass: 'ov-users material-symbols-outlined',
order: 4
}
},
{
route: {
path: 'embedded',
@ -46,6 +33,20 @@ export const consoleChildRoutes: DomainRouteConfig[] = [
route: 'embedded',
icon: 'code_blocks',
iconClass: 'material-symbols-outlined ov-developer-icon',
order: 4
}
},
{
route: {
path: 'users-permissions',
loadComponent: () =>
import('../pages/users-permissions/users-permissions.component').then((m) => m.UsersPermissionsComponent)
},
navMetadata: {
label: 'Users & Permissions',
route: 'users-permissions',
icon: 'passkey',
iconClass: 'ov-users-permissions material-symbols-outlined',
order: 5
}
},

View File

@ -24,7 +24,7 @@
--ov-meet-icon-rooms: var(--ov-meet-color-primary); // video_chat, meeting_room
--ov-meet-icon-recordings: var(--ov-meet-color-accent); // video_library, play_circle
--ov-meet-icon-developer: var(--ov-meet-color-warning); // code, api
--ov-meet-icon-users: #37b953; // group, manage_accounts
--ov-meet-icon-users-permissions: #e05200; // group, manage_accounts
--ov-meet-icon-settings: var(--ov-meet-color-secondary); // settings, tune
// --ov-meet-icon-about: var(--ov-meet-color-info); // info, security, help

View File

@ -107,8 +107,8 @@
@include layout.ov-theme-transition;
}
.ov-users {
color: var(--ov-meet-icon-users) !important;
.ov-users-permissions {
color: var(--ov-meet-icon-users-permissions) !important;
overflow: none;
@include layout.ov-theme-transition;
}