Commit Graph
17 Commits
Author SHA1 Message Date
Balázs Szücs ab96eee5bc refactor(types): replace most usages of 'any' with 'unknown' and improve type safety across services and components (#2050)
* refactor(types): replace most usages of 'any' with 'unknown' and improve type safety across services and components

- Update method signatures, variables, and interfaces to use 'unknown' instead of 'any'
- Refine event and observable typings for better type inference
- Add or adjust explicit types for function parameters and return values
- Update Chart.js tooltip and context typings for chart services
- Improve type safety in Book, BookState, and related models
- Adjust template bindings and method calls to match stricter typings
- Add SecureSrcDirective for secure image loading with fallback and error handling

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* chore(angular): remove proxy configuration from development build settings

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* refactor(book-browser): streamline entity and book state management with reactive streams

- Refactor entity type and entity fetching logic to use observables and combine route params
- Simplify book state handling by consolidating filtering and fetching into a single reactive pipeline
- Remove redundant applySortOption logic and related subscriptions
- Fix book card index binding in template for improved rendering performance
- Ensure proper cleanup of epub rendition in epub-reader component

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* fix(book-browser, book-uploader): improve permission checks and enhance file upload handling

- Use optional chaining for user permission checks in book-browser.component.html to prevent runtime errors when user data is undefined
- Refactor book-uploader.component.ts to pass destination and IDs explicitly to uploadBatch, reconstruct files for strict type handling, and ensure proper upload flow and UI feedback

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* refactor(charts, services): improve type safety for book state validation and update form field checks

- Refactor isValidBookState methods across chart components and services to use type predicates and stricter type checks for BookState
- Update metadata-picker.component to simplify array field checks for authors, categories, moods, and tags
- Adjust magic-shelf-utils to remove unnecessary fallback in object spread
- Update notification-event.service to use correct timeout type for highlightTimeout

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* fix(theme): ensure safe merging of theme properties and improve type definition for themesMap

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* refactor(epub-reader): streamline book and rendition initialization logic

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

---------

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
2026-01-02 18:22:54 -07:00
Aditya Chandel 415207d91d Allow duplicate files both within the same library and across different libraries (#1632) 2025-11-25 04:38:18 -07:00
aditya.chandel d9528af522 Add severity to UI logs 2025-10-15 23:59:20 -06:00
Aditya Chandel 7c9bd56f63 Improve Angular project structure and code organization (#1328) 2025-10-12 02:01:59 -06:00
Aditya Chandel 879d147e84 Improve notifications to display live progress for ongoing batch metadata fetches (#1242) 2025-09-30 14:31:14 -06:00
Aditya Chandel 074d8d6e69 Fix database lockout caused by duplicate files in library (#1102) 2025-09-06 21:22:59 -06:00
aditya.chandel 614af906b7 Set RxStomp reconnect delay to 10 seconds for stable websocket reconnection 2025-08-29 13:03:17 -06:00
aditya.chandel b1508493cf Implement live progress tracking for bulk metadata refresh (remaining books, status, cancel support) 2025-08-10 00:28:20 -06:00
aditya.chandel 116f0c950e Implement interactive metadata review for batch updates, with progress tracking and a unified notification system 2025-07-13 23:32:08 -06:00
adityachandelgit 817b572c08 Implement OIDC authentication 2025-05-14 14:58:20 -06:00
aditya.chandel 377c6ef628 Feature: Improve RxStompConfig and book card menu permissions
• Utilize beforeConnect in RxStompConfig to ensure token retrieval at connection time.
• Dynamically generate the book card menu based on user permissions instead of hiding items.
2025-02-17 01:27:09 -07:00
aditya.chandel 4354a43af7 Make WS work with Auth 2025-02-16 00:32:50 -07:00
aditya.chandel 844b5070aa WIP: Docker 2025-01-22 16:56:18 -07:00
aditya.chandel e07fe2d035 Add quick refresh option 2025-01-18 16:18:37 -07:00
aditya.chandel ce019b3a51 More lint fixes 2025-01-12 20:38:27 -07:00
aditya.chandel d29d59c299 More refactorings, more file re-arrangings 2025-01-12 13:56:36 -07:00
aditya.chandel ef3556cb0c WIP: Rearrange code 2025-01-12 13:38:57 -07:00