-
+
+
+
+ System Configuration
+
+
+
+
+
+
+
+
+ Manage Metadata Configuration
+
-
Manage Library
-
+
+
+
+
+
+
+
+ Manage Application Preferences
+
+
+
+
+
+
+
+
+
+ Access Task Manager
+
+
+
+
+
+
+
+
+
+ Manage Icons
+
+
+
-
-
-
-
-
+
+
+
+ Administration
+
+
+
+
+
+
+
+
+ Full Administrator Access
+
-
Email Book
-
-
-
-
-
-
-
-
-
- Delete Book
-
-
-
-
-
-
-
-
-
- Access OPDS
-
-
-
-
-
-
-
-
-
- KOReader Sync
-
-
-
-
-
-
-
-
-
- Kobo Sync
-
-
-
-
diff --git a/booklore-ui/src/app/features/settings/user-management/create-user-dialog/create-user-dialog.component.scss b/booklore-ui/src/app/features/settings/user-management/create-user-dialog/create-user-dialog.component.scss
index 4fb55fbdd..bd84b637e 100644
--- a/booklore-ui/src/app/features/settings/user-management/create-user-dialog/create-user-dialog.component.scss
+++ b/booklore-ui/src/app/features/settings/user-management/create-user-dialog/create-user-dialog.component.scss
@@ -1,6 +1,6 @@
.create-user-dialog {
- width: 650px;
- max-width: 650px;
+ width: 800px;
+ max-width: 800px;
display: flex;
flex-direction: column;
@@ -11,6 +11,7 @@
}
.panel-header {
+ position: relative;
display: flex;
align-items: center;
gap: 1rem;
@@ -52,6 +53,12 @@
}
}
+ ::ng-deep .close-button {
+ position: absolute;
+ top: 0.75rem;
+ right: 0.75rem;
+ }
+
@media (max-width: 480px) {
padding: 1rem;
@@ -73,13 +80,18 @@
font-size: 0.8rem;
}
}
+
+ ::ng-deep .close-button {
+ top: 0.5rem;
+ right: 0.5rem;
+ }
}
}
.form-container {
display: flex;
flex-direction: column;
- gap: 2rem;
+ gap: 1.5rem;
padding: 2rem;
background: var(--card-background);
border: 1px solid var(--border-color);
@@ -121,7 +133,7 @@
display: flex;
align-items: center;
gap: 0.5rem;
- margin: 0 0 0.5rem 0;
+ margin: 0 0 0.75rem 0;
font-size: 1rem;
font-weight: 600;
color: var(--text-color);
@@ -132,6 +144,18 @@
font-size: 1.125rem;
}
}
+
+ &.basic-info-section {
+ .form-fields-grid {
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ gap: 1rem;
+
+ @media (max-width: 640px) {
+ grid-template-columns: 1fr;
+ }
+ }
+ }
}
.form-field {
@@ -173,6 +197,52 @@
}
}
+.permissions-container {
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ gap: 1rem;
+
+ @media (max-width: 768px) {
+ grid-template-columns: 1fr;
+ }
+}
+
+.permission-group {
+ display: flex;
+ flex-direction: column;
+ gap: 0.75rem;
+ padding: 1rem;
+ border: 1px solid var(--border-color);
+ border-radius: 8px;
+
+ .permission-group-title {
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ font-size: 0.875rem;
+ font-weight: 600;
+ color: var(--text-color);
+ margin: 0 0 0.5rem 0;
+ text-transform: uppercase;
+ letter-spacing: 0.025em;
+
+ i {
+ color: var(--primary-color);
+ font-size: 1rem;
+ }
+ }
+
+ .permission-group-items {
+ display: flex;
+ flex-direction: column;
+ gap: 0.5rem;
+ }
+
+ &.full-width {
+ grid-column: 1 / -1;
+ }
+}
+
.permission-item {
display: flex;
align-items: center;
diff --git a/booklore-ui/src/app/features/settings/user-management/create-user-dialog/create-user-dialog.component.ts b/booklore-ui/src/app/features/settings/user-management/create-user-dialog/create-user-dialog.component.ts
index 9b9061495..2bc581cec 100644
--- a/booklore-ui/src/app/features/settings/user-management/create-user-dialog/create-user-dialog.component.ts
+++ b/booklore-ui/src/app/features/settings/user-management/create-user-dialog/create-user-dialog.component.ts
@@ -21,7 +21,7 @@ import {DynamicDialogRef} from 'primeng/dynamicdialog';
Checkbox,
MultiSelectModule,
Button
-],
+ ],
templateUrl: './create-user-dialog.component.html',
styleUrl: './create-user-dialog.component.scss'
})
@@ -53,6 +53,14 @@ export class CreateUserDialogComponent implements OnInit {
permissionAccessOpds: [false],
permissionSyncKoreader: [false],
permissionSyncKobo: [false],
+ permissionManageMetadataConfig: [false],
+ permissionAccessBookdrop: [false],
+ permissionAccessLibraryStats: [false],
+ permissionAccessUserStats: [false],
+ permissionAccessTaskManager: [false],
+ permissionManageEmailConfig: [false],
+ permissionManageGlobalPreferences: [false],
+ permissionManageIcons: [false],
permissionAdmin: [false],
});
}
diff --git a/booklore-ui/src/app/features/settings/user-management/user-management.component.scss b/booklore-ui/src/app/features/settings/user-management/user-management.component.scss
index 13991e2ca..7ae72e25e 100644
--- a/booklore-ui/src/app/features/settings/user-management/user-management.component.scss
+++ b/booklore-ui/src/app/features/settings/user-management/user-management.component.scss
@@ -440,3 +440,294 @@
.text-center {
text-align: center;
}
+
+::ng-deep .user-dialog {
+ .p-dialog {
+ border-radius: 10px;
+ overflow: hidden;
+ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
+ }
+
+ .p-dialog-header {
+ position: relative;
+ display: flex;
+ align-items: center;
+ gap: 1rem;
+ padding: 1.5rem;
+ background: var(--p-content-background);
+ border-bottom: 1px solid var(--p-content-border-color);
+ border-radius: 10px 10px 0 0;
+
+ .p-dialog-title {
+ display: flex;
+ align-items: center;
+ gap: 0.75rem;
+ font-size: 1.125rem;
+ font-weight: 600;
+ color: var(--p-text-color);
+ margin: 0;
+
+ &::before {
+ content: '\e923';
+ font-family: 'primeicons';
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 40px;
+ height: 40px;
+ background: var(--p-primary-color);
+ color: var(--p-primary-contrast-color);
+ border-radius: 8px;
+ font-size: 1.25rem;
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
+ }
+ }
+
+ .p-dialog-header-icons {
+ position: absolute;
+ top: 1rem;
+ right: 1rem;
+
+ .p-dialog-header-close {
+ width: 2rem;
+ height: 2rem;
+ border-radius: 50%;
+ transition: all 0.2s;
+ color: var(--p-text-muted-color);
+
+ &:hover {
+ background: var(--p-surface-100);
+ color: var(--p-text-color);
+ }
+
+ &:focus {
+ box-shadow: 0 0 0 2px var(--p-focus-ring-color);
+ }
+ }
+ }
+ }
+
+ .p-dialog-content {
+ padding: 1.5rem;
+ background: var(--p-content-background);
+ }
+
+ .p-dialog-footer {
+ padding: 1rem 1.5rem;
+ background: var(--p-content-background);
+ border-top: 1px solid var(--p-content-border-color);
+ border-radius: 0 0 10px 10px;
+ }
+}
+
+.dialog-form {
+ display: flex;
+ flex-direction: column;
+ gap: 1.25rem;
+}
+
+.form-field {
+ display: flex;
+ flex-direction: column;
+ gap: 0.5rem;
+
+ label {
+ font-size: 0.875rem;
+ font-weight: 600;
+ color: var(--p-text-color);
+ margin-bottom: 0.25rem;
+ }
+
+ input,
+ ::ng-deep .p-password {
+ width: 100%;
+ }
+
+ ::ng-deep .p-inputtext,
+ ::ng-deep .p-password-input {
+ padding: 0.75rem;
+ font-size: 0.9375rem;
+ border: 1px solid var(--p-content-border-color);
+ border-radius: 6px;
+ background: var(--p-content-background);
+ color: var(--p-text-color);
+ transition: all 0.2s;
+
+ &:hover {
+ border-color: var(--p-primary-color);
+ }
+
+ &:focus {
+ outline: none;
+ border-color: var(--p-primary-color);
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-primary-color) 20%, transparent);
+ }
+
+ &::placeholder {
+ color: var(--p-text-muted-color);
+ }
+ }
+}
+
+.error-message {
+ display: flex;
+ align-items: flex-start;
+ gap: 0.75rem;
+ padding: 0.875rem 1rem;
+ background: color-mix(in srgb, #ef4444 12%, var(--p-content-background));
+ border: 1px solid color-mix(in srgb, #ef4444 30%, transparent);
+ border-left: 3px solid #ef4444;
+ border-radius: 6px;
+ color: #ef4444;
+ font-size: 0.875rem;
+ font-weight: 500;
+
+ .pi {
+ font-size: 1.125rem;
+ flex-shrink: 0;
+ margin-top: 0.125rem;
+ }
+
+ span {
+ line-height: 1.5;
+ flex: 1;
+ }
+}
+
+.dialog-actions {
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+ gap: 0.75rem;
+
+ ::ng-deep .p-button {
+ padding: 0.75rem 1.5rem;
+ font-weight: 600;
+ font-size: 0.9375rem;
+ border-radius: 6px;
+ transition: all 0.2s;
+ min-width: 120px;
+
+ &.p-button-outlined {
+ border-width: 1px;
+ background: transparent;
+
+ &:hover {
+ background: var(--p-surface-100);
+ }
+
+ &:focus {
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--p-primary-color) 20%, transparent);
+ }
+ }
+
+ &:not(.p-button-outlined) {
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
+
+ &:hover {
+ box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
+ transform: translateY(-1px);
+ }
+
+ &:active {
+ transform: translateY(0);
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
+ }
+
+ &:focus {
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--p-primary-color) 20%, transparent),
+ 0 2px 4px rgba(0, 0, 0, 0.1);
+ }
+ }
+
+ .p-button-label {
+ font-weight: 600;
+ }
+
+ .p-button-icon {
+ font-size: 1rem;
+ }
+ }
+}
+
+@media (max-width: 480px) {
+ ::ng-deep .user-dialog {
+ .p-dialog {
+ width: 95vw !important;
+ max-width: 95vw !important;
+ margin: 0.5rem;
+ border-radius: 8px;
+ }
+
+ .p-dialog-header {
+ padding: 1rem;
+
+ .p-dialog-title {
+ font-size: 1rem;
+
+ &::before {
+ width: 36px;
+ height: 36px;
+ font-size: 1.125rem;
+ }
+ }
+
+ .p-dialog-header-icons {
+ top: 0.75rem;
+ right: 0.75rem;
+
+ .p-dialog-header-close {
+ width: 1.75rem;
+ height: 1.75rem;
+ }
+ }
+ }
+
+ .p-dialog-content {
+ padding: 1rem;
+ }
+
+ .p-dialog-footer {
+ padding: 0.875rem 1rem;
+ }
+ }
+
+ .dialog-form {
+ gap: 1rem;
+ }
+
+ .form-field {
+ label {
+ font-size: 0.8125rem;
+ }
+
+ ::ng-deep .p-inputtext,
+ ::ng-deep .p-password-input {
+ padding: 0.625rem;
+ font-size: 0.875rem;
+ }
+ }
+
+ .error-message {
+ padding: 0.75rem;
+ font-size: 0.8125rem;
+ gap: 0.5rem;
+
+ .pi {
+ font-size: 1rem;
+ }
+ }
+
+ .dialog-actions {
+ flex-direction: column-reverse;
+ width: 100%;
+ gap: 0.5rem;
+
+ ::ng-deep .p-button {
+ width: 100%;
+ min-width: unset;
+ justify-content: center;
+ padding: 0.625rem 1.25rem;
+ }
+ }
+}
diff --git a/booklore-ui/src/app/shared/services/dialog-launcher.service.ts b/booklore-ui/src/app/shared/services/dialog-launcher.service.ts
index 08fedcbf4..e9ef82ee7 100644
--- a/booklore-ui/src/app/shared/services/dialog-launcher.service.ts
+++ b/booklore-ui/src/app/shared/services/dialog-launcher.service.ts
@@ -47,7 +47,8 @@ export class DialogLauncherService {
openDashboardSettingsDialog(): DynamicDialogRef | null {
return this.openDialog(DashboardSettingsComponent, {
- header: 'Configure Dashboard',
+ showHeader: false,
+ styleClass: 'dynamic-dialog-minimal',
});
}