Feat/restruturacao geral#2
Conversation
✅ Deploy Preview for prodmais ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@copilot resolve the merge conflicts in this pull request |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
This PR performs a broad restructuring to move legacy public PHP pages to a modular “View/Pages” architecture, modernizes front-end assets, and adjusts Docker/Elasticsearch defaults for a container-first workflow.
Changes:
- Replaced legacy PHP page implementations (login/forgot/reset/init) with thin entrypoints that delegate to
src/View/Pages/.... - Introduced new JS modules (
ApiService, sharedState) and refreshed the global CSS theme. - Updated Docker/runtime configuration (Elasticsearch hostnames, compose files, scripts) and removed legacy/broken pages + large documentation/test assets.
Reviewed changes
Copilot reviewed 78 out of 1094 changed files in this pull request and generated 11 comments.
Show a summary per file
| File | Description |
|---|---|
| public/redefinir-senha.php | Replaced legacy reset password page with View/Page entrypoint. |
| public/login.php | Replaced legacy login implementation with View/Page entrypoint. |
| public/esqueci-senha.php | Replaced legacy forgot password page with View/Page entrypoint. |
| public/init_elasticsearch.php | Added View/Page entrypoint for Elasticsearch initialization. |
| public/projetos_broken.php | Removed legacy/broken projects page. |
| public/ppg_broken.php | Removed legacy/broken PPG page. |
| public/index_old_backup.php | Removed obsolete redirect backup file. |
| public/js/modules/State.js | Added shared state + DOM element getters for new UI modules. |
| public/js/modules/API.js | Added fetch-based API service wrapper for search/filters/stats. |
| public/css/umc-theme.css | Updated theme variables/components (glass, shadows, search styles, animations). |
| public/api/upload_and_index.php | Refactored batch upload/index to use ProdmaisUMC\LattesImporter with buffered JSON output. |
| public/.htaccess | Avoid HTTPS redirect when running on localhost. |
| .htaccess | Avoid HTTPS redirect when running on localhost (root). |
| config/config_umc.php | Changed Elasticsearch host to Docker service name. |
| config/config.php | Changed Elasticsearch host to Docker service name. |
| Dockerfile | Adjusted PHP extensions, DocumentRoot, .htaccess overrides, composer install, and data dirs. |
| docker-compose.yml | Updated MySQL host port and simplified bind mount. |
| docker-compose.prod.yml | Added production compose definition for OCI-style deployment. |
| .env.production | Added production environment values for compose. |
| plugins/filtro-titulos/plugin.php | Added example plugin using a HookManager filter. |
| plugins/exemplo-estatisticas/plugin.php | Added example (commented) plugin demonstrating extensibility. |
| README.md | Rewrote README to reflect modular architecture + Docker workflow. |
| INICIAR.ps1 | Added script to build/start Docker stack and probe services. |
| PARAR.ps1 | Added script to stop Docker stack. |
| VERIFICAR.ps1 | Added script to check Docker/containers/services readiness. |
| REBUILD.ps1 | Added script to rebuild Docker images/containers. |
| INICIAR_LOCAL.ps1 | Added script to run without Docker (PHP/MySQL/Elasticsearch on host). |
| LIMPAR_REPOSITORIO.ps1 | Added script to remove large/generated artifacts from Git history/index. |
| prepare-deploy.ps1 | Removed old deploy-prep script. |
| data/db.json | Removed sample JSON DB data file. |
| cypress.config.js | Removed Cypress configuration. |
| cypress/support/e2e.js | Removed Cypress support commands. |
| cypress/e2e/01-dashboard.cy.js | Removed Cypress E2E test. |
| cypress/e2e/02-login-admin.cy.js | Removed Cypress E2E test. |
| cypress/e2e/03-pesquisadores.cy.js | Removed Cypress E2E test. |
| cypress/e2e/04-exportacao.cy.js | Removed Cypress E2E test. |
| cypress/e2e/05-api.cy.js | Removed Cypress E2E test. |
| cypress/e2e/05-demo-completa.cy.js | Removed Cypress demo test. |
| cypress/e2e/06-apresentacao-completa.cy.js | Removed Cypress presentation demo test. |
| docs/videos/README.md | Removed videos documentation. |
| docs/TESTES_CYPRESS.md | Removed Cypress testing guide. |
| docs/TESTES_CORRIGIDOS.md | Removed test report doc. |
| docs/SUCESSO_IMPORTACAO.md | Removed import success report doc. |
| docs/ROTEIRO_DEMONSTRACAO.md | Removed demo script doc. |
| docs/RELATORIO_FINAL.md | Removed final report doc. |
| docs/RELATORIO_APRESENTACAO.md | Removed presentation report doc. |
| docs/PRODUCAO_READY.md | Removed production readiness checklist doc. |
| docs/INTEGRACAO_CONCLUIDA.md | Removed integration-complete doc. |
| docs/INICIO_RAPIDO.md | Removed quickstart doc. |
| docs/GUIA_TESTE_RAPIDO.md | Removed quick test guide. |
| docs/GUIA_RAPIDO_DEMO.md | Removed demo deploy quick guide. |
| docs/DEPLOY_RESUMO.md | Removed deploy summary doc. |
| docs/DEPLOY_RENDER.md | Removed Render deploy guide. |
| docs/DEPLOY_RAILWAY.md | Removed Railway deploy guide. |
| docs/DEPLOY_GUIA_RAPIDO.md | Removed quick deploy guide. |
| docs/DEPLOY_ALTERNATIVAS.md | Removed hosting alternatives doc. |
| docs/DEPLOY_000WEBHOST.md | Removed 000webhost deploy guide. |
| docs/CORRECAO_404_INFINITYFREE.md | Removed InfinityFree 404 fix doc. |
| docs/CHECKLIST_APRESENTACAO.md | Removed presentation checklist doc. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…flicts Co-authored-by: Matheus904-12 <67837282+Matheus904-12@users.noreply.github.com>
Merge conflicts resolved in commit 88be1bb. Conflicts resolved:
|
- Add .env.production to .gitignore so credentials are never committed - Remove .env.production from git tracking (git rm --cached) - Add .env.production.example with safe placeholder defaults and documentation Agent-Logs-Url: https://github.com/Matheus904-12/Prodmais/sessions/5be17477-51ac-4752-9c12-ff7fbd010349 Co-authored-by: Matheus904-12 <67837282+Matheus904-12@users.noreply.github.com>
- API.js: add response.ok checks to fetchFilterOptions, fetchResearchers, fetchStatistics - API.js: URL-encode field parameter in fetchFilterOptions with encodeURIComponent - docker-compose.prod.yml: remove full repo bind-mount (.:/var/www/html) from production container; keep only writable runtime paths (data/ and logs/) Agent-Logs-Url: https://github.com/Matheus904-12/Prodmais/sessions/79433ac5-7229-4b3b-9604-8f317554a553 Co-authored-by: Matheus904-12 <67837282+Matheus904-12@users.noreply.github.com>
The branch has no current merge conflicts — they were already resolved in commit |
No description provided.