commit melhorias compras3
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-22 10:56:58 +02:00
parent 4fac443dda
commit efd97e265b
130 changed files with 8917 additions and 363 deletions
+38
View File
@@ -0,0 +1,38 @@
{
"date": "2026-11-22",
"status": "partial_benchmark_increment_installed_in_authorized_pilot",
"features": [
"Unsaved changes: same-origin links and programmatic GET departures offer save, discard or continue; reload has native prompt; safe-save opt-in retained",
"GET search form submission does not prompt for its own filter values; other edited forms remain protected",
"Procurement cross-module search: requisitions, orders and suppliers; native scope and permissions; independent pagination; literal wildcard handling",
"Completed approval elapsed-time metrics: complete native decisions only, filters and all pages; unknown dates and inconsistent chronology excluded explicitly"
],
"tests": {
"sqlite_search_and_reports": {"passed": 17, "assertions": 527},
"postgres_search_and_reports_including_current_access_regression": {"passed": 18, "assertions": 530, "isolated_database_removed": true},
"frontend_complete": {"passed": 124, "files": 22},
"typescript": "passed",
"phpstan": "passed: zero errors",
"scoped_frontend_format_and_lint": "passed",
"private_build": "passed: benchmark-candidate-20261122",
"pilot_http": {"passed": 16, "business_commands": false}
},
"installation": "benchmark-pilot-installation.json",
"authorization": "benchmark-pilot-authorization.json",
"visual_blocker": "window is minimized; call activate_window, refresh with get_window, then retry get_window_state",
"pending": [
"Persisting incomplete requisitions: existing required schema and document values must be adapted without fictitious financial totals",
"Browser back/forward preservation is not demonstrated by the departure guards",
"Global search coverage beyond the three current procurement sources, saved searches and document content",
"Advanced spend and out-of-contract analysis beyond the approval duration increment",
"Mobile menu clipping diagnosis and full visual review",
"Print preview of existing order and receipt",
"Enterprise acceptance"
],
"corrections_during_validation": [
"HTTP tests isolated from pilot Vite manifest; new page then privately compiled and installed with authorization",
"PostgreSQL read-only runner mode now exits before unrelated FX concurrency work; final 18-test run and cleanup passed",
"Own GET filter submissions distinguished from loss of another form's edits, with regression test"
],
"business_operations_performed": false
}
@@ -0,0 +1,39 @@
{
"date": "2026-11-22",
"status": "approved",
"environment": "http://127.0.0.1:8005",
"scope": "company_details_schema_and_benchmark_assets",
"migration_hashes": {
"2026_11_22_000001_add_company_details_to_tenants.php": "47477a97242f5b0b30e130853b91c463e5257cac250aee662a5b681fe544b923"
},
"candidate": "storage/framework/testing/benchmark-candidate-20261122",
"manifest_sha256": "4c8c11cc7a5908ae7c12fcd74073b728fc0adec0faff041f4546a50ab4bd05ee",
"previous_manifest_sha256": "31ae1a57572bd509381fc29512b09d7d3bf9b33f5f3671db2db04186f03ba50e",
"assets_verified": 150,
"database_effect": "One nullable JSON column tenants.company_details; existing rows remain null; no real company values imported.",
"asset_effect": [
"Company institution, bank account and establishment forms",
"Unsaved navigation protection",
"Cross-module procurement search",
"Elapsed completed approval metrics"
],
"safeguards": [
"Confirm pilot connection and existing role against private settings",
"Consistent backup and restore under the same role before migration",
"Compare all previous rows and columns and configuration bytes",
"Apply only the named migration; no generic migrate or seed",
"Copy verified chunks first; switch manifest last; retain old chunks and previous manifest"
],
"recovery": "Preserve the old manifest and verified database backup. Before any data entry, the new column is empty; do not drop it after real entries. Restore data only by a separately reviewed recovery procedure.",
"excluded": [
"SGF changes",
"Inventory conversion activation",
"Per-order limit activation outside QA",
"MFA activation",
"Business operations",
"People formalization",
"Company data values or bank validation",
"Enterprise acceptance"
],
"owner_decision": "Autorizar instalação delimitada no piloto"
}
+105
View File
@@ -0,0 +1,105 @@
{
"environment": "http://127.0.0.1:8005",
"result": "passed",
"results": [
{
"role": "admin",
"path": "/compras/pesquisa",
"status": 200,
"component": "search/procurement"
},
{
"role": "admin",
"path": "/compras/pesquisa?q=REQ",
"status": 200,
"component": "search/procurement"
},
{
"role": "admin",
"path": "/administracao/parametrizacao",
"status": 200,
"component": "company/parameters"
},
{
"role": "admin",
"path": "/relatorios",
"status": 200,
"component": "reports/procurement"
},
{
"role": "procurement",
"path": "/compras/pesquisa",
"status": 200,
"component": "search/procurement"
},
{
"role": "procurement",
"path": "/compras/pesquisa?q=REQ",
"status": 200,
"component": "search/procurement"
},
{
"role": "procurement",
"path": "/administracao/parametrizacao",
"status": 403,
"component": null
},
{
"role": "procurement",
"path": "/relatorios",
"status": 200,
"component": "reports/procurement"
},
{
"role": "finance",
"path": "/compras/pesquisa",
"status": 200,
"component": "search/procurement"
},
{
"role": "finance",
"path": "/compras/pesquisa?q=REQ",
"status": 200,
"component": "search/procurement"
},
{
"role": "finance",
"path": "/administracao/parametrizacao",
"status": 403,
"component": null
},
{
"role": "finance",
"path": "/relatorios",
"status": 200,
"component": "reports/procurement"
},
{
"role": "warehouse",
"path": "/compras/pesquisa",
"status": 200,
"component": "search/procurement"
},
{
"role": "warehouse",
"path": "/compras/pesquisa?q=REQ",
"status": 200,
"component": "search/procurement"
},
{
"role": "warehouse",
"path": "/administracao/parametrizacao",
"status": 403,
"component": null
},
{
"role": "warehouse",
"path": "/relatorios",
"status": 403,
"component": null
}
],
"business_commands": false,
"session_context_only": true,
"visual_review": false
}
@@ -0,0 +1,17 @@
{
"environment": "http://127.0.0.1:8005",
"scope": "company_details_schema_and_benchmark_assets",
"schema_installed": true,
"backup": "C:/laragon/data/sgf-tempo/backups/compras-benchmark-20261122-081527-08caf0/before.dump",
"backup_sha256": "a71ce9ffbae8b4b58c1998f81bdec8bc51cee24ecaaf89db901e533fe284271d",
"restored_tables_checked": 115,
"previous_tables_preserved": 114,
"migration_delta": 1,
"new_values_empty": true,
"same_restore_role": true,
"assets_installed": true,
"settings_preserved": true,
"manifest_sha256": "4c8c11cc7a5908ae7c12fcd74073b728fc0adec0faff041f4546a50ab4bd05ee",
"assets_verified": 150,
"restore_database_removed": true
}
+38
View File
@@ -0,0 +1,38 @@
{
"date": "2026-11-22",
"status": "pending_specific_authorization",
"environment": "http://127.0.0.1:8005",
"scope": "company_details_schema_and_benchmark_assets",
"migration_hashes": {
"2026_11_22_000001_add_company_details_to_tenants.php": "47477a97242f5b0b30e130853b91c463e5257cac250aee662a5b681fe544b923"
},
"candidate": "storage/framework/testing/benchmark-candidate-20261122",
"manifest_sha256": "4c8c11cc7a5908ae7c12fcd74073b728fc0adec0faff041f4546a50ab4bd05ee",
"previous_manifest_sha256": "31ae1a57572bd509381fc29512b09d7d3bf9b33f5f3671db2db04186f03ba50e",
"assets_verified": 150,
"database_effect": "One nullable JSON column tenants.company_details; existing rows remain null; no real company values imported.",
"asset_effect": [
"Company institution, bank account and establishment forms",
"Unsaved navigation protection",
"Cross-module procurement search",
"Elapsed completed approval metrics"
],
"safeguards": [
"Confirm pilot connection and existing role against private settings",
"Consistent backup and restore under the same role before migration",
"Compare all previous rows and columns and configuration bytes",
"Apply only the named migration; no generic migrate or seed",
"Copy verified chunks first; switch manifest last; retain old chunks and previous manifest"
],
"recovery": "Preserve the old manifest and verified database backup. Before any data entry, the new column is empty; do not drop it after real entries. Restore data only by a separately reviewed recovery procedure.",
"excluded": [
"SGF changes",
"Inventory conversion activation",
"Per-order limit activation outside QA",
"MFA activation",
"Business operations",
"People formalization",
"Company data values or bank validation",
"Enterprise acceptance"
]
}
@@ -0,0 +1,23 @@
{
"environment": "http://127.0.0.1:8005",
"result": "passed",
"cause": "Generator originally emitted CRLF on Windows; Git eol=lf changed the final line ending while the configured hash preserved the approved CRLF artifact.",
"before_sha256": "8dc719c5961a50d59d56582dcb48463d67b9201aec77dafa8daf8005588de7ad",
"restored_approved_sha256": "28530f11f528e6f715396991e1294872c7e6a8b260d08a84e7d8fe17e5920457",
"source_sha256_unchanged": "70996d9a9133785a848de90bedb4bf685e24d8f823cd153c0adc43eac642a292",
"semantic_content_unchanged": true,
"records_preserved": 20407,
"selectable_preserved": 9678,
"integrity_check_disabled": false,
"configured_hash_changed": false,
"deterministic_binary_generation": true,
"git_preserves_exact_bytes": true,
"python_regressions": 2,
"geography_feature_tests": 17,
"geography_assertions": 150,
"http_checks": 24,
"top_level_options_per_profile": 11,
"business_commands": false,
"visual_selector_recovered": true,
"screenshot": "docs/proofs/screenshots/commercial-geography-restored-20261122.jpg"
}
@@ -0,0 +1,19 @@
{
"status": "approved",
"authorized_by": "Tempo — proprietário, nesta conversa",
"decision_date": "2026-11-22",
"decision": "autorizo todas as solicitações",
"environment": "http://127.0.0.1:8005",
"scope": "commercial_schema_and_assets",
"proposal": "docs/plano-entregas-sgc.md — Próxima etapa proposta — instalação comercial delimitada no piloto 8005",
"migration_hashes": {
"2026_11_21_000001_create_quotation_exchange_rates.php": "09bac87b702137955fa5caff8f977c4124c534458a656471f209eae26dd9dcfc",
"2026_11_21_000002_add_supplier_bank_account_keys.php": "b1ce78ac221a0c220c4e166d6514d7b183637513409f46e97ccd84b8d7d67499"
},
"manifest_sha256": "238f343ff567e17a44234dd49a02e3985952e98233642647669a621ad39bfb19",
"business_operations": false,
"grants_or_accounts": false,
"sgf_or_shared_inventory_activation": false,
"mfa_or_people_formalization": false,
"isolated_visual_review": true
}
+152
View File
@@ -0,0 +1,152 @@
{
"environment": "http://127.0.0.1:8005",
"result": "passed",
"results": [
{
"role": "admin",
"path": "administrative-geography",
"status": 200,
"topLevelOptions": 11
},
{
"role": "admin",
"path": "/requisicoes",
"status": 200,
"component": "requisitions/index"
},
{
"role": "admin",
"path": "/cotacoes",
"status": 200,
"component": "quotations/index"
},
{
"role": "admin",
"path": "quotation-detail",
"status": 200,
"exchangeAvailable": true
},
{
"role": "admin",
"path": "/fornecedores",
"status": 200,
"component": "suppliers/index"
},
{
"role": "admin",
"path": "supplier-bank-detail",
"status": 200,
"multiAccountsAvailable": true
},
{
"role": "admin",
"path": "/compras/fornecimento",
"status": 200,
"component": "supply/index"
},
{
"role": "admin",
"path": "/compras/acordos/vigencia",
"status": 200,
"component": "supply/agreement-followup"
},
{
"role": "procurement",
"path": "administrative-geography",
"status": 200,
"topLevelOptions": 11
},
{
"role": "procurement",
"path": "/requisicoes",
"status": 200,
"component": "requisitions/index"
},
{
"role": "procurement",
"path": "/cotacoes",
"status": 200,
"component": "quotations/index"
},
{
"role": "procurement",
"path": "quotation-detail",
"status": 200,
"exchangeAvailable": true
},
{
"role": "procurement",
"path": "/fornecedores",
"status": 200,
"component": "suppliers/index"
},
{
"role": "procurement",
"path": "supplier-bank-detail",
"status": 200,
"multiAccountsAvailable": true
},
{
"role": "procurement",
"path": "/compras/fornecimento",
"status": 200,
"component": "supply/index"
},
{
"role": "procurement",
"path": "/compras/acordos/vigencia",
"status": 200,
"component": "supply/agreement-followup"
},
{
"role": "finance",
"path": "administrative-geography",
"status": 200,
"topLevelOptions": 11
},
{
"role": "finance",
"path": "/requisicoes",
"status": 200,
"component": "requisitions/index"
},
{
"role": "finance",
"path": "/cotacoes",
"status": 200,
"component": "quotations/index"
},
{
"role": "finance",
"path": "quotation-detail",
"status": 200,
"exchangeAvailable": true
},
{
"role": "finance",
"path": "/fornecedores",
"status": 200,
"component": "suppliers/index"
},
{
"role": "finance",
"path": "supplier-bank-detail",
"status": 200,
"multiAccountsAvailable": true
},
{
"role": "finance",
"path": "/compras/fornecimento",
"status": 200,
"component": "supply/index"
},
{
"role": "finance",
"path": "/compras/acordos/vigencia",
"status": 200,
"component": "supply/agreement-followup"
}
],
"business_commands": false,
"session_context_only": true
}
@@ -0,0 +1,17 @@
{
"environment": "http://127.0.0.1:8005",
"scope": "commercial_schema_and_assets",
"schema_installed": true,
"backup": "C:/laragon/data/sgf-tempo/backups/compras-commercial-20261122-070804-c75bf6/before.dump",
"backup_sha256": "6b0e8a28a6a2cfe1b037b1c02e2ffc0afe39d329be34a625eb9a6d97f3e3f705",
"restored_tables_checked": 114,
"previous_tables_preserved": 113,
"migration_delta": 2,
"new_values_empty": true,
"same_restore_role": true,
"assets_installed": true,
"settings_preserved": true,
"manifest_sha256": "238f343ff567e17a44234dd49a02e3985952e98233642647669a621ad39bfb19",
"assets_verified": 149,
"restore_database_removed": true
}
+32
View File
@@ -0,0 +1,32 @@
{
"environment": "http://127.0.0.1:8005",
"review_date": "2026-11-22",
"scope": "directed installed-delta review",
"browser": "Microsoft Edge via computer-use skill",
"native_existing_demo_entry_used": true,
"business_forms_submitted": false,
"business_operations": false,
"new_accounts_or_grants": false,
"checks": {
"dashboard_and_procurement_context": "passed",
"help_opens_contextual_guide": "passed",
"local_help_search_currency_eight_results": "passed",
"foreign_currency_guidance_preserves_explicit_frozen_rate": "passed",
"help_escape_close_after_animation": "passed",
"unsaved_synthetic_form_text_preserved_after_help": "passed",
"unsaved_test_text_cleared_without_submission": "passed",
"existing_quotation_comparison_and_fx_panel": "passed",
"long_profile_label_contained_after_css_fix": "passed",
"supplier_directory_geography_recovered": "passed",
"supplier_detail_links_to_bank_workflow": "passed",
"independent_bank_accounts_action_visible": "passed"
},
"screenshots": [
"docs/proofs/screenshots/commercial-quotes-header-20261122.jpg",
"docs/proofs/screenshots/commercial-geography-restored-20261122.jpg"
],
"full_product_visual_acceptance": false,
"enterprise_acceptance": false,
"remaining_validation": ["all other journeys", "mobile interaction", "complete print review", "enterprise acceptance"],
"excluded_activations_unchanged": ["shared inventory", "contract limits outside QA", "SGF", "MFA", "People formalization"]
}
@@ -0,0 +1,11 @@
{
"previous_manifest": "238f343ff567e17a44234dd49a02e3985952e98233642647669a621ad39bfb19",
"change": "truncate long profile label in existing account header",
"manifest": "31ae1a57572bd509381fc29512b09d7d3bf9b33f5f3671db2db04186f03ba50e",
"environment": "http://127.0.0.1:8005",
"assets_verified": 149,
"authorization": "Owner approved installation and visual review; necessary presentation correction within that review",
"scope": "visual_header_overflow_correction",
"backup": "C:\\laragon\\www\\compras\\storage\\framework\\testing\\manifest-before-visual-correction-20261122.json",
"database_changes": false
}
+24
View File
@@ -0,0 +1,24 @@
{
"date": "2026-11-22",
"product": "SGC / Compras",
"source": "C:/Mac/Home/Documents/TEMPO/Portal Tempo/Servicos Tempo/Compras/Dados da empresa.docx",
"source_contents": "Field labels with empty values; no real company or account values imported.",
"user_clarification": "One company can hold multiple bank accounts, a headquarters and branches.",
"status": "installed_in_authorized_pilot_2026_11_22_visual_review_pending",
"installation_proof": "benchmark-pilot-installation.json",
"entry": "/administracao/parametrizacao",
"storage": "tenants.company_details: institution fields, bank_accounts[] and establishments[] with stable UUIDs",
"controls": ["current administrator", "tenant scoping", "company lock", "optimistic organization version", "atomic before/after audit", "one identified headquarters", "distinct row identifiers", "no financial activation"],
"tests": {
"organization_configuration": {"passed": 24, "assertions": 255, "database": "isolated SQLite memory"},
"company_details_and_journey_help_frontend": {"passed": 10},
"typescript": "passed",
"phpstan": "passed: zero errors",
"pint": "passed scoped",
"frontend_format_and_lint": "passed scoped",
"diff_check": "passed",
"private_build": "passed: storage/framework/testing/company-details-candidate-20261122"
},
"pending": ["visual browser review", "real company values absent from the supplied document"],
"business_data_changed": false
}
@@ -0,0 +1,42 @@
{
"date": "2026-11-22",
"status": "approved",
"environment": "http://127.0.0.1:8005",
"scope": "incomplete_requisition_schema_and_search_assets",
"migration_hashes": {
"2026_11_22_000002_allow_incomplete_requisition_drafts.php": "5d1caaac0a0d21efb46974fc226168910b16391724e6642994859e893e8cd893"
},
"candidate": "storage/framework/testing/draft-preparation-candidate-20261122",
"manifest_sha256": "c2203372527050e083f6cc0aab47a1e08534015d692b3a8781a26ddf65109c23",
"previous_manifest_sha256": "4c8c11cc7a5908ae7c12fcd74073b728fc0adec0faff041f4546a50ab4bd05ee",
"assets_verified": 150,
"schema_effects": [
"Allow NULL for requisitions.cost_center_id, needed_by, justification, subtotal_minor, tax_minor and total_minor; preserve all existing values",
"Add nullable JSON requisitions.draft_input; existing rows remain NULL",
"Add PostgreSQL check requisitions_complete_before_submission; pending/approved documents require complete header amounts and no draft_input"
],
"functional_effects": [
"Save and recover incomplete preparation with unknown amounts distinguished from zero",
"Reject incomplete submission before budget reservations and approvals",
"Complete the same draft using existing calculations, native version and operation receipts",
"Search seven procurement sources with native permissions"
],
"safeguards": [
"Confirm pilot database and role from private settings",
"Consistent backup and same-role restore before applying the exact migration",
"Compare all prior rows and columns before and after upgrade on restore and pilot",
"Verify the database check constraint and empty draft_input immediately after migration",
"Copy verified chunks first and replace manifest last; retain previous manifest and chunks"
],
"recovery": "Do not downgrade after incomplete drafts have been saved. Migration rollback refuses to discard them or replace missing values. Preserve current schema/code and backup for reviewed recovery. No automatic restoration over subsequent user changes.",
"excluded": [
"Business operations and sample submissions in pilot",
"Real company data imports",
"SGF changes",
"Inventory conversion or per-order limit activation",
"MFA activation",
"People formalization",
"Enterprise acceptance"
],
"owner_decision": "autorizo"
}
@@ -0,0 +1,74 @@
{
"environment": "http://127.0.0.1:8005",
"result": "passed",
"results": [
{
"role": "admin",
"path": "/compras/pesquisa?q=TEST",
"status": 200,
"sources": [
"requests",
"orders",
"suppliers",
"equipment",
"stock",
"warehouses",
"receipts"
]
},
{
"role": "admin",
"path": "/requisicoes/criar",
"status": 200,
"incompleteDraftsAvailable": true
},
{
"role": "admin",
"path": "/relatorios",
"status": 200
},
{
"role": "procurement",
"path": "/compras/pesquisa?q=TEST",
"status": 200,
"sources": [
"requests",
"orders",
"suppliers",
"equipment",
"stock",
"warehouses",
"receipts"
]
},
{
"role": "finance",
"path": "/compras/pesquisa?q=TEST",
"status": 200,
"sources": [
"requests",
"orders",
"suppliers",
"equipment",
"stock",
"warehouses",
"receipts"
]
},
{
"role": "warehouse",
"path": "/compras/pesquisa?q=TEST",
"status": 200,
"sources": [
"requests",
"equipment",
"stock",
"warehouses",
"receipts"
]
}
],
"business_commands": false,
"session_context_only": true,
"visual_review": false
}
@@ -0,0 +1,17 @@
{
"environment": "http://127.0.0.1:8005",
"scope": "incomplete_requisition_schema_and_search_assets",
"schema_installed": true,
"backup": "C:/laragon/data/sgf-tempo/backups/compras-drafts-20261122-084458-74a797/before.dump",
"backup_sha256": "9125f73df78fbdfc6fb32953d54fa57a2f768a6a254df99b635899b4c9db9d13",
"restored_tables_checked": 115,
"previous_tables_preserved": 114,
"migration_delta": 1,
"new_values_empty": true,
"same_restore_role": true,
"assets_installed": true,
"settings_preserved": true,
"manifest_sha256": "c2203372527050e083f6cc0aab47a1e08534015d692b3a8781a26ddf65109c23",
"assets_verified": 150,
"restore_database_removed": true
}
@@ -0,0 +1,41 @@
{
"date": "2026-11-22",
"status": "pending_specific_authorization",
"environment": "http://127.0.0.1:8005",
"scope": "incomplete_requisition_schema_and_search_assets",
"migration_hashes": {
"2026_11_22_000002_allow_incomplete_requisition_drafts.php": "5d1caaac0a0d21efb46974fc226168910b16391724e6642994859e893e8cd893"
},
"candidate": "storage/framework/testing/draft-preparation-candidate-20261122",
"manifest_sha256": "c2203372527050e083f6cc0aab47a1e08534015d692b3a8781a26ddf65109c23",
"previous_manifest_sha256": "4c8c11cc7a5908ae7c12fcd74073b728fc0adec0faff041f4546a50ab4bd05ee",
"assets_verified": 150,
"schema_effects": [
"Allow NULL for requisitions.cost_center_id, needed_by, justification, subtotal_minor, tax_minor and total_minor; preserve all existing values",
"Add nullable JSON requisitions.draft_input; existing rows remain NULL",
"Add PostgreSQL check requisitions_complete_before_submission; pending/approved documents require complete header amounts and no draft_input"
],
"functional_effects": [
"Save and recover incomplete preparation with unknown amounts distinguished from zero",
"Reject incomplete submission before budget reservations and approvals",
"Complete the same draft using existing calculations, native version and operation receipts",
"Search seven procurement sources with native permissions"
],
"safeguards": [
"Confirm pilot database and role from private settings",
"Consistent backup and same-role restore before applying the exact migration",
"Compare all prior rows and columns before and after upgrade on restore and pilot",
"Verify the database check constraint and empty draft_input immediately after migration",
"Copy verified chunks first and replace manifest last; retain previous manifest and chunks"
],
"recovery": "Do not downgrade after incomplete drafts have been saved. Migration rollback refuses to discard them or replace missing values. Preserve current schema/code and backup for reviewed recovery. No automatic restoration over subsequent user changes.",
"excluded": [
"Business operations and sample submissions in pilot",
"Real company data imports",
"SGF changes",
"Inventory conversion or per-order limit activation",
"MFA activation",
"People formalization",
"Enterprise acceptance"
]
}
+41
View File
@@ -0,0 +1,41 @@
{
"date": "2026-11-22",
"status": "installed_in_pilot_with_specific_authorization_visual_acceptance_pending",
"authorization": "draft-preparation-pilot-authorization.json",
"installation": "draft-preparation-pilot-installation.json",
"pilot_http": "draft-preparation-pilot-http.json",
"behavior": [
"Incomplete input is saved against the existing native requisition, using the same owner, version, operation receipts and audit",
"Unknown header and money values remain NULL, never zero or invented defaults",
"Recover the saved partial lines in the editor; completion clears draft_input and reuses native exact calculations",
"Submission rejects incomplete input before creating approvals or budget reservations",
"PostgreSQL check constraint prevents direct progression of incomplete records into pending or approved states",
"Earlier complete catalogue line identities are retained during partial edits, but are hidden as current line values until preparation is completed",
"Provided invalid values, cross-company cost centres, foreign authors and stale versions remain rejected",
"Rollback refuses to discard incomplete preparation; no automatic restoration over later user data"
],
"search_expansion": {
"sources": ["requests", "orders", "suppliers", "equipment", "stock", "warehouses", "receipts"],
"native_permissions_and_department_scope": true,
"pilot_read_only_http_proof": "search-expansion-http.json",
"frontend_description_update_in_private_candidate": true
},
"validation": {
"postgres_integrated": {"passed": 52, "assertions": 1347, "isolated_database_removed": true, "log": "storage/logs/draft-preparation-pg-final.txt"},
"sqlite_drafts_and_automatic_purchases": {"passed": 26, "skipped_postgres_specific_constraint_test": 1, "assertions": 308, "log": "storage/logs/draft-preparation-sqlite-final.txt"},
"frontend": {"passed": 126, "files": 23, "log": "storage/logs/draft-preparation-frontend.txt"},
"typescript": "passed",
"phpstan": "passed: zero errors",
"frontend_scoped_format_and_lint": "passed",
"private_build": "passed: draft-preparation-candidate-20261122",
"diff_check": "passed"
},
"migration_safety": {
"existing_postgresql_rows_preserved_in_round_trip": true,
"legacy_validation_retained_while_column_is_absent": true,
"sqlite": "Only empty test schemas are migrated. Populated SQLite schema changes are refused before mutation to preserve foreign references; populated migration is tested on operational PostgreSQL."
},
"proposal": "draft-preparation-pilot-proposal.json",
"pending": ["real browser interaction and back/forward preservation", "global search remaining sources and saved searches", "remaining advanced analytics", "mobile and print preview", "enterprise acceptance"],
"pilot_business_operations_performed": false
}
+470
View File
@@ -0,0 +1,470 @@
{
"environment": "http://127.0.0.1:8005",
"scope": "existing authorised records only",
"rows": [
{
"role": "admin",
"path": "/ordens",
"status": 200,
"component": "purchases/index",
"visible_page_records": 1
},
{
"role": "admin",
"path": "/recepcoes",
"status": 200,
"component": "receipts/index",
"visible_page_records": 1
},
{
"role": "admin",
"path": "/stock",
"status": 200,
"component": "stock/index",
"visible_page_records": 0
},
{
"role": "admin",
"path": "/stock/requisicoes",
"status": 200,
"component": "stock/requests",
"visible_page_records": 0
},
{
"role": "admin",
"path": "/equipamentos",
"status": 200,
"component": "equipment/index",
"visible_page_records": 0
},
{
"role": "admin",
"path": "/orcamentos",
"status": 200,
"component": "budgets/index",
"visible_page_records": 0
},
{
"role": "admin",
"path": "/facturas",
"status": 200,
"component": "invoices/index",
"visible_page_records": 0
},
{
"role": "admin",
"path": "/pagamentos",
"status": 200,
"component": "payments/index",
"visible_page_records": 0
},
{
"role": "admin",
"path": "/planeamento",
"status": 200,
"component": "planning/index",
"visible_page_records": 0
},
{
"role": "admin",
"path": "/revisao-compras",
"status": 200,
"component": "purchase-controls/index",
"visible_page_records": 0
},
{
"role": "admin",
"path": "/relatorios",
"status": 200,
"component": "reports/procurement",
"visible_page_records": 2
},
{
"role": "admin",
"path": "/relatorios/medidas-fornecedores",
"status": 200,
"component": "reports/supplier-improvements",
"visible_page_records": 1
},
{
"role": "admin",
"path": "/compras/fornecimento?view=calendar",
"status": 200,
"component": "supply/index",
"visible_page_records": 0
},
{
"role": "admin",
"path": "/compras/fornecimento?view=imports",
"status": 200,
"component": "supply/index",
"visible_page_records": 0
},
{
"role": "admin",
"path": "/compras/acordos/vigencia",
"status": 200,
"component": "supply/agreement-followup",
"visible_page_records": 0
},
{
"role": "admin",
"path": "/pessoas",
"status": 200,
"component": "people/index",
"visible_page_records": 0
},
{
"role": "admin",
"path": "/pessoas/tarefas",
"status": 200,
"component": "workflow/tasks",
"visible_page_records": null
},
{
"role": "admin",
"path": "/pessoas/relatorios",
"status": 200,
"component": "people/reports",
"visible_page_records": 0
},
{
"role": "admin",
"path": "/pessoas/cadastro",
"status": 200,
"component": "people/registry",
"visible_page_records": null
},
{
"role": "procurement",
"path": "/ordens",
"status": 200,
"component": "purchases/index",
"visible_page_records": 1
},
{
"role": "procurement",
"path": "/recepcoes",
"status": 200,
"component": "receipts/index",
"visible_page_records": 1
},
{
"role": "procurement",
"path": "/stock",
"status": 200,
"component": "stock/index",
"visible_page_records": 0
},
{
"role": "procurement",
"path": "/stock/requisicoes",
"status": 403,
"component": null,
"visible_page_records": 0
},
{
"role": "procurement",
"path": "/equipamentos",
"status": 200,
"component": "equipment/index",
"visible_page_records": 0
},
{
"role": "procurement",
"path": "/orcamentos",
"status": 403,
"component": null,
"visible_page_records": 0
},
{
"role": "procurement",
"path": "/facturas",
"status": 403,
"component": null,
"visible_page_records": 0
},
{
"role": "procurement",
"path": "/pagamentos",
"status": 403,
"component": null,
"visible_page_records": 0
},
{
"role": "procurement",
"path": "/planeamento",
"status": 200,
"component": "planning/index",
"visible_page_records": 0
},
{
"role": "procurement",
"path": "/revisao-compras",
"status": 200,
"component": "purchase-controls/index",
"visible_page_records": 0
},
{
"role": "procurement",
"path": "/relatorios",
"status": 200,
"component": "reports/procurement",
"visible_page_records": 2
},
{
"role": "procurement",
"path": "/relatorios/medidas-fornecedores",
"status": 200,
"component": "reports/supplier-improvements",
"visible_page_records": 1
},
{
"role": "procurement",
"path": "/compras/fornecimento?view=calendar",
"status": 200,
"component": "supply/index",
"visible_page_records": 0
},
{
"role": "procurement",
"path": "/compras/fornecimento?view=imports",
"status": 403,
"component": null,
"visible_page_records": 0
},
{
"role": "procurement",
"path": "/compras/acordos/vigencia",
"status": 200,
"component": "supply/agreement-followup",
"visible_page_records": 0
},
{
"role": "finance",
"path": "/ordens",
"status": 200,
"component": "purchases/index",
"visible_page_records": 1
},
{
"role": "finance",
"path": "/recepcoes",
"status": 200,
"component": "receipts/index",
"visible_page_records": 1
},
{
"role": "finance",
"path": "/stock",
"status": 200,
"component": "stock/index",
"visible_page_records": 0
},
{
"role": "finance",
"path": "/stock/requisicoes",
"status": 403,
"component": null,
"visible_page_records": 0
},
{
"role": "finance",
"path": "/equipamentos",
"status": 200,
"component": "equipment/index",
"visible_page_records": 0
},
{
"role": "finance",
"path": "/orcamentos",
"status": 200,
"component": "budgets/index",
"visible_page_records": 0
},
{
"role": "finance",
"path": "/facturas",
"status": 200,
"component": "invoices/index",
"visible_page_records": 0
},
{
"role": "finance",
"path": "/pagamentos",
"status": 200,
"component": "payments/index",
"visible_page_records": 0
},
{
"role": "finance",
"path": "/planeamento",
"status": 200,
"component": "planning/index",
"visible_page_records": 0
},
{
"role": "finance",
"path": "/revisao-compras",
"status": 200,
"component": "purchase-controls/index",
"visible_page_records": 0
},
{
"role": "finance",
"path": "/relatorios",
"status": 200,
"component": "reports/procurement",
"visible_page_records": 2
},
{
"role": "finance",
"path": "/relatorios/medidas-fornecedores",
"status": 200,
"component": "reports/supplier-improvements",
"visible_page_records": 1
},
{
"role": "finance",
"path": "/compras/fornecimento?view=calendar",
"status": 200,
"component": "supply/index",
"visible_page_records": 0
},
{
"role": "finance",
"path": "/compras/fornecimento?view=imports",
"status": 403,
"component": null,
"visible_page_records": 0
},
{
"role": "finance",
"path": "/compras/acordos/vigencia",
"status": 200,
"component": "supply/agreement-followup",
"visible_page_records": 0
},
{
"role": "warehouse",
"path": "/ordens",
"status": 403,
"component": null,
"visible_page_records": 0
},
{
"role": "warehouse",
"path": "/recepcoes",
"status": 200,
"component": "receipts/index",
"visible_page_records": 1
},
{
"role": "warehouse",
"path": "/stock",
"status": 200,
"component": "stock/index",
"visible_page_records": 0
},
{
"role": "warehouse",
"path": "/stock/requisicoes",
"status": 200,
"component": "stock/requests",
"visible_page_records": 0
},
{
"role": "warehouse",
"path": "/equipamentos",
"status": 200,
"component": "equipment/index",
"visible_page_records": 0
},
{
"role": "warehouse",
"path": "/orcamentos",
"status": 403,
"component": null,
"visible_page_records": 0
},
{
"role": "warehouse",
"path": "/facturas",
"status": 403,
"component": null,
"visible_page_records": 0
},
{
"role": "warehouse",
"path": "/pagamentos",
"status": 403,
"component": null,
"visible_page_records": 0
},
{
"role": "warehouse",
"path": "/planeamento",
"status": 200,
"component": "planning/index",
"visible_page_records": 0
},
{
"role": "warehouse",
"path": "/revisao-compras",
"status": 200,
"component": "purchase-controls/index",
"visible_page_records": 0
},
{
"role": "warehouse",
"path": "/relatorios",
"status": 403,
"component": null,
"visible_page_records": 0
},
{
"role": "warehouse",
"path": "/relatorios/medidas-fornecedores",
"status": 403,
"component": null,
"visible_page_records": 0
},
{
"role": "warehouse",
"path": "/compras/fornecimento?view=calendar",
"status": 403,
"component": null,
"visible_page_records": 0
},
{
"role": "warehouse",
"path": "/compras/fornecimento?view=imports",
"status": 403,
"component": null,
"visible_page_records": 0
},
{
"role": "warehouse",
"path": "/compras/acordos/vigencia",
"status": 403,
"component": null,
"visible_page_records": 0
}
],
"print_paths": [
"/ordens/1/imprimir",
"/recepcoes/1/imprimir"
],
"business_commands": false,
"visual_review": {
"status": "incomplete",
"mobile_width_px": 390,
"last_mobile_height_px": 559,
"menu_clipping": "observed; cause not isolated; not accepted",
"print_preview": "not reviewed in this round",
"browser_connector_error": "The browser access host is unavailable",
"native_window_error": "window is minimized; call activate_window, refresh with get_window, then retry get_window_state",
"recovery_interruption": "user input was detected in this window; call get_window_state before continuing",
"business_operations_performed": false
}
}
+18
View File
@@ -0,0 +1,18 @@
{
"date": "2026-11-22",
"status": "implemented_in_qa_disabled_in_pilot",
"scope": "Optional supplier invoice reference group in procurement search",
"activation": "procurement_search.finance_metadata_enabled=false by default; enabled only in isolated tests",
"access": "Current Admin/Finance actor; native invoice order visibility and tenant scope",
"returned_fields": ["id", "title", "detail", "href"],
"not_returned": ["amounts", "bank details", "private snapshots", "payment data"],
"navigation": "/facturas?invoice_id={id}, existing native focus route",
"validation": {
"sqlite": {"passed": 6, "assertions": 204},
"postgres": {"passed": 6, "assertions": 204, "isolated_database_removed": true, "log": "storage/logs/invoice-search-pg.txt"},
"pint": "passed scoped"
},
"pending": ["Update search interface description and help before enabling this optional group", "Install the reviewed next candidate and explicitly enable the optional group", "Visual review"],
"financial_report_basis_chosen": false,
"business_operations_in_pilot": false
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

+59
View File
@@ -0,0 +1,59 @@
{
"environment": "http://127.0.0.1:8005",
"result": "passed",
"results": [
{
"role": "admin",
"status": 200,
"sources": [
"requests",
"orders",
"suppliers",
"equipment",
"stock",
"warehouses",
"receipts"
]
},
{
"role": "procurement",
"status": 200,
"sources": [
"requests",
"orders",
"suppliers",
"equipment",
"stock",
"warehouses",
"receipts"
]
},
{
"role": "finance",
"status": 200,
"sources": [
"requests",
"orders",
"suppliers",
"equipment",
"stock",
"warehouses",
"receipts"
]
},
{
"role": "warehouse",
"status": 200,
"sources": [
"requests",
"equipment",
"stock",
"warehouses",
"receipts"
]
}
],
"business_commands": false,
"session_context_only": true,
"visual_review": false
}