Commit Graph
6 Commits
Author SHA1 Message Date
Ewald f9a72d2507 Refactor SQLite facade and introduce FTS schema management
- Delegated column validation and repair functions to transaction_manager.
- Introduced new schema management helpers for full-text search (FTS) in schema_fts.py.
- Added schema_sql.py for SQL constants and identifier safety helpers.
- Implemented vector embeddings schema repair in schema_vec.py.
- Updated tests to accommodate changes in function signatures and behavior.
2026-04-09 17:14:22 +02:00
MajoorWaldi 4411c72e4e Refactor test imports and clean up unused code across multiple test files
- Removed unnecessary imports from various test files to improve readability and maintainability.
- Added new settings for the Generated Feed display in the settingsFeed.js file.
- Introduced a new configuration file for Pyright type checking.
2026-03-28 13:26:28 +01:00
MajoorWaldi c7f93f0eab Refactor and optimize various components
- Improved URL parameter handling in `appendAssetFilterQueryParams` for better readability and maintainability.
- Added error handling for performance marks in `startTimer` to prevent potential issues.
- Enhanced `setRuntimeStatePatch` to avoid modifying blocked keys in the runtime state.
- Introduced hard caps on recent file and execution start tracking to prevent memory growth.
- Reduced workflow cache size to limit memory usage.
- Implemented safe escaping for asset IDs in `findAssetElement` to mitigate XSS risks.
- Ensured proper grid reference invalidation during asset manager panel cleanup.
- Enhanced debounce utility with cancel and flush methods for better control.
- Updated SQLite facade to improve error handling and schema population.
- Simplified custom roots store error messages for clarity.
- Added validation for upload filenames to prevent reserved names and control characters.
- Improved path resolution logic to avoid race conditions with symlinks.
- Enhanced health check routes with raw socket peer IP validation for security.
- Added collision handling in staging file resolution to prevent infinite loops.
- Updated tests to reflect changes in query building and validation logic.
2026-03-21 16:20:26 +01:00
MajoorWaldi d6c4e4d966 feat: Enhance geninfo extraction for upscalers and samplers
- Introduced `_effective_sampler_sinks` to deduplicate and manage sampler sinks effectively.
- Updated `_apply_multi_sink_sampler_fields` to handle multiple samplers and chained passes.
- Added `_extract_upscaler_geninfo_fallback` to build geninfo payloads for upscaler-only workflows.
- Implemented `_extract_cached_text_from_linked_node` to improve prompt extraction from ShowText nodes.
- Enhanced `_trace_scheduler_sigmas` to resolve linked steps for scheduler configurations.
- Added PNG text chunk reading functionality to extract prompts and workflows when EXIF data is missing.
- Created `upscaler_extractor.py` for dedicated upscaler workflow extraction helpers.
- Improved test coverage for sampler pipelines and upscaler extraction logic.
2026-03-08 23:48:19 +01:00
MajoorWaldi a6d5095fb9 Add initial test suite and configuration for Vitest
- Created package.json to manage project dependencies and scripts for testing.
- Added test_scan_flow_integration.py to test incremental scanning and file removal functionality.
- Added test_search_flow_integration.py to test indexing and searching capabilities.
- Introduced vitest.config.mjs for Vitest configuration to set up the testing environment.
2026-02-26 11:24:27 +01:00
MajoorWaldi 75261d636c Add comprehensive tests for SQLite facade, metadata extractors, and security helpers
- Introduced unit tests for SQLite facade helpers, including schema validation, query building, and async operations.
- Added integration tests for basic SQLite queries and transaction handling.
- Implemented additional tests for metadata extraction functions, focusing on dimension handling, EXIF data, and video metadata.
- Created tests for security core helpers, covering environment variable checks, IP validation, and CSRF protection.
- Included compatibility tests for route exports to ensure proper functionality.
2026-02-26 07:01:43 +01:00