Commit Graph

112 Commits

Author SHA1 Message Date
42e4396064 Refactor Scontainers management
- Removed legacy Scontainers controller and view files, transitioning to a new controller structure.
- Introduced ScontainersController to handle CRUD operations with improved dependency injection.
- Created ScontainersRepository for database interactions, encapsulating logic for container management.
- Updated container edit and list views to utilize new templating system.
- Added unit tests for ScontainersRepository and ScontainersController to ensure functionality.
- Enhanced form handling for container editing, including validation and error management.
2026-02-12 23:54:56 +01:00
36fe8412e7 refactor articles_archive to DI controller and table-list 2026-02-12 23:53:05 +01:00
0ac74b6cf4 refactor newsletter module and disable prepare/user templates 2026-02-12 23:26:28 +01:00
76287923e8 refactor layouts module to domain/di and prepare 0.256 release 2026-02-12 22:54:47 +01:00
5e9b998043 Release 0.255: migrate remaining Languages usages to repository DI 2026-02-12 22:28:57 +01:00
a02f718a41 refactor languages module to domain/controller and release 0.254 update package 2026-02-12 22:10:37 +01:00
2ecc4fd9be refactor users module to domain/controller and release 0.253 update package 2026-02-12 21:44:40 +01:00
336891276d Add new controllers for file management and product archiving
- Introduced FilemanagerController to handle file manager access and URL generation.
- Added ProductArchiveController for managing archived products, including listing and unarchiving functionality.
- Implemented Site class with methods for finalizing admin login and handling special actions.
- Created ShopProduct control class for managing product operations, including mass editing, product duplication, and image handling.
- Added necessary methods for product management, including saving, deleting, and changing product statuses.
2026-02-11 00:26:01 +01:00
6dd3f7b4d4 Add release 0.252 update artifacts 2026-02-11 00:12:08 +01:00
f94e18be54 Fix update package version to 0.252 2026-02-11 00:11:58 +01:00
f9f2ddd3bb Refactor admin lists and migrate legacy archive/filemanager controllers 2026-02-11 00:03:07 +01:00
fe4e98d9bd ver. 0.251 - migrate Dictionaries to Domain/Controller and remove legacy classes 2026-02-10 00:04:32 +01:00
3bab9f9e8a feat: enhance image preview functionality with improved event handling and state management 2026-02-09 18:23:49 +01:00
211081121f ver 0.250: migrate settings to form-edit and cleanup legacy settings classes 2026-02-08 20:13:01 +01:00
3c50440cb2 feat: implement new universal form edit system and remove legacy banner classes 2026-02-08 18:12:54 +01:00
926b6fcbca Release 0.249: banner edit fixes and thumbnail popup 2026-02-08 17:29:52 +01:00
0b80524d71 Release 0.248: auto-submit table filters on change 2026-02-08 02:04:08 +01:00
09f90107dc feat: update PHPUnit commands in composer.json and improve update instructions format 2026-02-08 02:00:02 +01:00
9a72d92e13 Release 0.247: improve delete confirmation dialog 2026-02-08 01:58:59 +01:00
bbf0c075b8 Release 0.246: migrate banners list to new table 2026-02-08 01:53:22 +01:00
d709a3df7b Release 0.245: refactor articles list and update package 2026-02-08 01:35:13 +01:00
4aea594477 fix: Update PHPUnit result cache to reflect latest test outcomes 2026-02-07 00:52:57 +01:00
919294d1f7 feat: Update version to 0.244 and refactor article_save and article_delete methods in ArticleRepository 2026-02-06 19:57:01 +01:00
efd93dede3 feat: Migrate article_save and article_delete to Domain Architecture
Move article save/delete logic from monolithic factory to ArticleRepository
with DI-based controller actions, following the established refactoring pattern.

- ArticleRepository: add save() with 9 private helpers, archive() method
- ArticlesController: add save() and delete() actions with DI
- Factory methods delegate to repository (backward compatibility)
- Router: add article_save/article_delete action mappings
- Old controls methods marked @deprecated
- 59 tests, 123 assertions passing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 19:52:22 +01:00
6c21b835da feat: Implement cleanup methods for nonassigned article files and images in ArticleRepository 2026-02-06 08:57:22 +01:00
e33978e1bb feat: Refactor article handling and introduce ArticleRepository
- Introduced Domain\Article\ArticleRepository for better data access.
- Migrated article_edit functionality to admin\Controllers\ArticlesController.
- Updated admin\factory\Articles::article_details() to use the new repository.
- Marked legacy methods in admin\controls as @deprecated for clarity.
- Updated changelog and versioning to reflect changes in version 0.242.
2026-02-06 08:41:34 +01:00
f1c7019cc5 Refactor code structure for improved readability and maintainability 2026-02-06 01:45:58 +01:00
8e5d0c6854 Merge branch 'main' of https://git.project-pro.pl/Project-Pro/shopPRO 2026-02-05 23:33:08 +01:00
1c88f8adfa Add new settings and cache repository files, update admin settings controller and templates
- Introduced new `SettingsRepository` and `CacheRepository` classes in the `autoload\Domain` namespace.
- Updated `SettingsController` in the `admin\Controllers` namespace to enhance settings management.
- Added new templates for settings in `admin\templates\settings` and `admin\templates\site`.
- Improved overall structure and organization of settings-related files.
2026-02-05 23:32:48 +01:00
471173f45b Remove deleted files 2026-02-05 09:58:27 +01:00
3a7be21432 Add new version 0.238 zip file containing updated ProductRepository and Product class files 2026-02-05 01:53:28 +01:00
16cccac782 Dodano obsługę duplikatów zamówień w Apilo oraz zaktualizowano dokumentację i wersję do 0.236 2026-02-04 22:30:36 +01:00
43aebc166f Add new update package version 0.235 to autoload admin 2026-01-27 23:47:10 +01:00
Roman Pyrih
e31074506c NEW. Dodanie opcji typ pola własnego 2026-01-20 11:33:18 +01:00
5b02b65665 Dodano obsługę plików PDF w regułach dostępu w pliku .htaccess 2026-01-17 21:30:48 +01:00
149627ef69 Update structure 2026-01-15 13:51:21 +01:00
Roman Pyrih
366329d326 Image uploader test 2026-01-14 15:24:55 +01:00
4918dfe71b Zaktualizowano plik ver_0.232.zip w folderze aktualizacji 2026-01-04 22:13:27 +01:00
9eecf6b415 Add new columns to producer and product language tables
- Added 'data' column to 'pp_shop_producer_lang' table for additional metadata storage.
- Added 'security_information' column to 'pp_shop_products_langs' table to enhance product security details.
2026-01-04 21:22:40 +01:00
5489d92211 Dodano reguły dostępu dla plików: thumb.php, ajax.php, upload-product-images.php, upload-product-files.php, upload-articles-files.php oraz upload-articles-images.php w pliku .htaccess 2026-01-01 21:02:46 +01:00
0afbb8acde Usunięto logowanie do pliku w metodzie set_as_paid w klasie Order 2025-12-28 12:40:36 +01:00
99686b462f Zamień logowanie do pliku na komentarz w metodzie logSummary 2025-12-28 11:27:54 +01:00
aab31a9877 Usunięto nieużywane logowanie płatności w klasie Order oraz usunięto pliki .DS_Store z katalogów autoload i templates 2025-12-28 11:06:04 +01:00
d4fe312cb6 Refactor cookie handling for user authentication; implement secure payload structure and cleanup invalid cookies 2025-12-16 23:34:54 +01:00
290aa31aa7 Add two-factor authentication fields to pp_users table and update .htaccess for security
- Added columns for two-factor authentication (2FA) in the pp_users table:
  - twofa_enabled (TINYINT)
  - twofa_email (VARCHAR)
  - twofa_code_hash (VARCHAR)
  - twofa_expires_at (DATETIME)
  - twofa_sent_at (DATETIME)
  - twofa_failed_attempts (INT)
- Updated the twofa_enabled and twofa_email for user with id 0.
- Enhanced .htaccess to disable directory listing, block execution of sensitive files, and prevent serving hidden files.
2025-12-11 23:57:22 +01:00
3cb792936e Dodaj obsługę błędu dla zamówień z transportem ORLEN PACZKA bez podanego punktu odbioru 2025-10-26 23:16:47 +01:00
a4300b2947 Refactor file manager key handling in article, banner, and producer edit templates; remove unnecessary .DS_Store files 2025-10-01 09:03:03 +02:00
681a8e837f Zaktualizowano plik ver_0.230.zip w folderze aktualizacji 2025-09-28 18:36:11 +02:00
d903f9fc55 Refactor code structure for improved readability and maintainability 2025-09-28 18:27:48 +02:00
17d69ac9df Refactor URL pattern matching and improve image loading for product thumbnails 2025-09-10 23:08:38 +02:00