Skip to content

Feat/restruturacao geral#2

Merged
Matheus904-12 merged 11 commits into
mainfrom
feat/restruturacao-geral
Apr 24, 2026
Merged

Feat/restruturacao geral#2
Matheus904-12 merged 11 commits into
mainfrom
feat/restruturacao-geral

Conversation

@Matheus904-12

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings April 24, 2026 21:57
@netlify

netlify Bot commented Apr 24, 2026

Copy link
Copy Markdown

Deploy Preview for prodmais ready!

Name Link
🔨 Latest commit 13d99ef
🔍 Latest deploy log https://app.netlify.com/projects/prodmais/deploys/69ebf204f130de00081cfbfd
😎 Deploy Preview https://deploy-preview-2--prodmais.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Matheus904-12

Copy link
Copy Markdown
Owner Author

@copilot resolve the merge conflicts in this pull request

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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, shared State) 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.

Comment thread .env.production Outdated
Comment thread Dockerfile Outdated
Comment thread docker-compose.prod.yml Outdated
Comment thread config/config_umc.php
Comment thread config/config.php
Comment thread public/js/modules/API.js
Comment thread public/api/upload_and_index.php
Comment thread public/api/upload_and_index.php
Comment thread public/api/upload_and_index.php
Comment thread plugins/filtro-titulos/plugin.php
…flicts

Co-authored-by: Matheus904-12 <67837282+Matheus904-12@users.noreply.github.com>

Copilot AI commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Merge conflicts resolved in commit 88be1bb.

Conflicts resolved:

  • config/config.php — kept the Docker elasticsearch host from this branch and properly placed the database config block from main (it had been misplaced inside the elasticsearch.hosts array in main)
  • public/index_umc.php — kept this branch's refactored modular version
  • src/UmcFunctions.php — kept this branch's updated module paths (Infrastructure/Domain/Core structure)
  • data/logs.sqlite, vendor/composer/* — kept this branch's deletions (modify/delete conflicts)

- 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>

Copilot AI commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

The branch has no current merge conflicts — they were already resolved in commit 88be1bb (merged main into this branch). The branch is up to date with origin/main.

@Matheus904-12 Matheus904-12 merged commit 40d40a1 into main Apr 24, 2026
6 checks passed
@Matheus904-12 Matheus904-12 deleted the feat/restruturacao-geral branch June 10, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants