refactor(frontend): rename booklore-ui to frontend

- Frontend path:
  - rename the tracked Angular app tree from `booklore-ui/` to `frontend/`
  - preserve file contents during the move so this commit stays focused on the path change itself
- Frontend docs:
  - update the moved frontend README and contribution guide where they refer to the renamed folder
  - keep those edits limited to path references introduced by the directory rename
This commit is contained in:
James Cox
2026-04-22 17:26:39 -04:00
committed by Zach Yale
parent c99aa87877
commit 874b013f75
1493 changed files with 3 additions and 3 deletions
@@ -0,0 +1,35 @@
<div class="multi-book-fetch-container">
<div class="panel-header">
<div class="header-icon-wrapper">
<i class="pi pi-sync header-icon"></i>
</div>
<div class="header-text">
<h2 class="panel-title">Metadata Refresh Options</h2>
<p class="panel-description">{{ booksToShow.length }} books selected</p>
</div>
<p-button
icon="pi pi-times"
[rounded]="true"
[text]="true"
severity="secondary"
(click)="dialogRef.close()"
class="close-button">
</p-button>
</div>
<div class="dialog-content">
<div class="book-list-section">
<div class="book-list-container">
<ul class="book-list">
@for (book of booksToShow; track book.id) {
<li>
<span class="book-id">#{{ book.id }}</span>: {{ book.metadata?.title || 'Untitled' }}
</li>
}
</ul>
</div>
</div>
<app-metadata-fetch-options></app-metadata-fetch-options>
</div>
</div>
@@ -0,0 +1,72 @@
@use '../../../../shared/styles/panel-shared' as panel;
:host {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
}
.multi-book-fetch-container {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
}
.panel-header {
@include panel.panel-header;
flex-shrink: 0;
}
.dialog-content {
flex: 1;
display: flex;
flex-direction: column;
overflow-y: auto;
min-height: 0;
padding: 1.5rem;
background: var(--card-background);
border: 1px solid var(--border-color);
border-top: none;
border-radius: 0 0 10px 10px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.book-list-section {
flex-shrink: 0;
margin-bottom: 1rem;
}
.book-list-container {
max-height: 6rem;
overflow: auto;
border: 1px solid #6b7280;
border-radius: 0.25rem;
padding: 0.5rem;
font-size: 0.875rem;
}
.book-list {
list-style-type: disc;
padding-left: 1.25rem;
li {
margin-bottom: 0.25rem;
&:last-child {
margin-bottom: 0;
}
}
}
.book-id {
color: #9ca3af;
}
::ng-deep app-metadata-fetch-options {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
}
@@ -0,0 +1,45 @@
import {Component, effect, inject} from '@angular/core';
import {MetadataRefreshType} from '../../model/request/metadata-refresh-type.enum';
import {MetadataRefreshOptions} from '../../model/request/metadata-refresh-options.model';
import {DynamicDialogConfig, DynamicDialogRef} from 'primeng/dynamicdialog';
import {BookService} from '../../../book/service/book.service';
import {AppSettingsService} from '../../../../shared/service/app-settings.service';
import {Book} from '../../../book/model/book.model';
import {FormsModule} from '@angular/forms';
import {MetadataFetchOptionsComponent} from '../metadata-options-dialog/metadata-fetch-options/metadata-fetch-options.component';
import {Button} from 'primeng/button';
@Component({
selector: 'app-multi-book-metadata-fetch-component',
standalone: true,
templateUrl: './multi-book-metadata-fetch-component.html',
styleUrl: './multi-book-metadata-fetch-component.scss',
imports: [MetadataFetchOptionsComponent, FormsModule, Button],
})
export class MultiBookMetadataFetchComponent {
bookIds!: number[];
booksToShow: Book[] = [];
metadataRefreshType!: MetadataRefreshType;
currentMetadataOptions!: MetadataRefreshOptions;
private dynamicDialogConfig = inject(DynamicDialogConfig);
dialogRef = inject(DynamicDialogRef);
private bookService = inject(BookService);
private appSettingsService = inject(AppSettingsService);
expanded = false;
constructor() {
this.bookIds = this.dynamicDialogConfig.data.bookIds;
this.metadataRefreshType = this.dynamicDialogConfig.data.metadataRefreshType;
this.booksToShow = this.bookService.getBooksByIds(this.bookIds);
effect(() => {
const settings = this.appSettingsService.appSettings();
if (settings) {
this.currentMetadataOptions = settings.defaultMetadataRefreshOptions;
}
});
}
}