Skip to content

Add contagem/turno/planejamento/ocupacao features, robust import/export, layout and UI improvements - #6

Open
hhhthiti wants to merge 5 commits into
codex/create-product-crud-with-reporting-wptc9sfrom
codex/fix-import-function-and-update-layout-du0fxh
Open

Add contagem/turno/planejamento/ocupacao features, robust import/export, layout and UI improvements#6
hhhthiti wants to merge 5 commits into
codex/create-product-crud-with-reporting-wptc9sfrom
codex/fix-import-function-and-update-layout-du0fxh

Conversation

@hhhthiti

@hhhthiti hhhthiti commented Mar 7, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Add richer warehouse workflows for counting, end-of-shift reconciliation and planning to better reflect physical operations (contagem, conferência de turno, planejamento e ocupação).
  • Improve resilience of imports/exports and offline settings by persisting metadata locally and handling pasted tables/CSV variants.
  • Provide a clearer visual inspection of layout and structures and a dark theme for usability in different environments.
  • Centralize SKU metadata (fardos_por_palete) to allow conversions and accurate fardos estimations across exports and reports.

Description

  • Introduce storage helpers (storageGet, storageSet, storageGetJSON) and persist maps/snapshots (wmss_contagem_map, wmss_turno_snapshots, wmss_fracionado_map, wmss_turno_ultima_planilha_sku) and a theme toggle with wmss_theme handling.
  • Add loading of product metadata with loadProdutos and use getFardosPorPalete across features to compute fardos and detect missing SKU data.
  • Implement Contagem functionality: UI, position generation (getContagemPositions), entries management (getContagemEntries, saveContagemEntries), computation (computeContagem, estimateLayersFromTotal), import from sheet (importContagemFromPlanilha), apply to consulta (applyContagemToConsulta), export (exportContagemExcel) and helpers for side visibility and preloading.
  • Implement Turno (end-of-shift) comparison: sheet upload (handleTurnoSubmit), consolidate/comparison logic, local snapshots, and export to Excel/PDF (exportTurnoResultadoExcel, exportTurnoResultadoPDF).
  • Replace simple import flow with robust parsers and synchronization modes: mapImportRow, parsePastedTable, processImportRows, and an admin paste form (handleAdminPasteSubmit) supporting aggressive sync.
  • Rework layout rendering with blueprint and structures: gerarLayoutVisual, renderSemanticLayout, structures aggregation and PDF export via exportarLayoutPDF.
  • Add planning and occupancy features: setupPlanejamento, renderPlanejamentoTable, getOccupiedByWarehouse, renderOcupacao, exportOcupacaoResumoPDF, plus rules and capacity constants.
  • Enhance exports to include adjusted stock rows and flags for incomplete pallets via buildEstoqueExportRows and update exportPlanilhaEspelho / export buttons to use enriched data and warn about missing SKU fardos.
  • Various UI/UX changes in index.html and styles.css: new tabs and sections, forms, controls (file picker, admin paste, contagem controls, turno history), layout container additions (estruturasGrid, semanticLayout), and full dark-mode CSS tokens and layout styles.
  • Miscellaneous refinements: normalization helpers (normalizeAreaCode, normalizeText), area/parsing utilities (parseAreaForLayout, getAreaVariants), fracionado handling in handleEstoqueSubmit, safer Supabase client creation and bulk loadAll updates.

Testing

  • No automated tests were added or executed as part of this change, the project contains no unit/CI tests for these features at the moment.

Codex Task

@netlify

netlify Bot commented Mar 10, 2026

Copy link
Copy Markdown

Deploy Preview for testetesta ready!

Name Link
🔨 Latest commit a30d3f2
🔍 Latest deploy log https://app.netlify.com/projects/testetesta/deploys/69b1c780e8cbf500084206f0
😎 Deploy Preview https://deploy-preview-6--testetesta.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.

@vercel

vercel Bot commented Apr 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
wmss Ready Ready Preview, Comment Apr 9, 2026 6:19pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant