Phase 118 complete: - migration 20260512_000109 adds single global Fakturownia settings row - FakturowniaIntegrationRepository simplified to one-instance API - FakturowniaIntegrationController + edit view collapsed to one settings page - Integrations hub shows Fakturownia as single instance - Invoice config delegated flow always uses global integration_id Note: shared routes/web.php and DOCS/* updates from Phase 118 are bundled into the follow-up feat(121+122) commit because Phase 121/122 modified the same files; hunk-level split was not performed. Co-Authored-By: Claude <noreply@anthropic.com>
2.7 KiB
2.7 KiB
Phase 118 Plan 01 Summary - Fakturownia Single Instance
Status
APPLY complete on 2026-05-12 13:47. Ready for UNIFY.
Implemented
- Added
database/migrations/20260512_000109_fakturownia_single_instance.sql. - Converted
FakturowniaIntegrationRepositoryto one global settings row withgetSettings(),saveSettings(),getIntegrationId(),getCredentials(), and compatibility wrappers. - Simplified
FakturowniaIntegrationControllerto one settings page plus save/test actions. - Replaced Fakturownia multi-account list UI with a single configuration form and test panel.
- Updated integrations hub to show Fakturownia as one instance.
- Updated delegated invoice config save flow to always use the global Fakturownia
integration_id. - Removed the invoice config account selector and replaced it with global Fakturownia status.
- Updated
DOCS/DB_SCHEMA.md,DOCS/ARCHITECTURE.md, andDOCS/TECH_CHANGELOG.md. - Updated
.paul/codebase/db_schema.md,.paul/codebase/architecture.md, and.paul/codebase/tech_changelog.md.
Verification
- PASS:
C:\xampp\php\php.exe -lfor changed PHP classes androutes/web.php. - PASS:
C:\xampp\php\php.exe -lfor changed PHP views. - PASS: static search found no active UI links for adding/deleting Fakturownia accounts; legacy
/newand/editroutes redirect to the global settings page. - BLOCKED:
C:\xampp\php\php.exe bin\migrate.phpcould not connect to local MySQL (SQLSTATE[HY000] [2002]target actively refused connection). - SKIPPED: PHPUnit is not available in
vendor/bin. - SKIPPED:
sonar-scanneris not available in PATH.
Environment Gaps
- Run
C:\xampp\php\php.exe bin\migrate.phpafter local MySQL/XAMPP is running. - Manually verify
/settings/integrations,/settings/integrations/fakturownia, save/test Fakturownia settings, and local/delegated invoice config edit. - Live Fakturownia API test still requires valid credentials and network access.
Files Changed
database/migrations/20260512_000109_fakturownia_single_instance.sqlsrc/Modules/Settings/FakturowniaIntegrationRepository.phpsrc/Modules/Settings/FakturowniaIntegrationController.phpsrc/Modules/Settings/IntegrationsHubController.phpsrc/Modules/Settings/InvoiceConfigRepository.phpsrc/Modules/Settings/InvoiceConfigController.phpsrc/Modules/Accounting/InvoiceService.phpresources/views/settings/fakturownia.phpresources/views/settings/fakturownia-edit.phpresources/views/settings/accounting-invoice-edit.phproutes/web.phpDOCS/DB_SCHEMA.mdDOCS/ARCHITECTURE.mdDOCS/TECH_CHANGELOG.md.paul/codebase/db_schema.md.paul/codebase/architecture.md.paul/codebase/tech_changelog.md