Implementa importação por planilha e adiciona abas Grade, Dashboard e Status - #3
Open
hhhthiti wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
PATIO.Description
Detalhes de Materiaise mantive o textarea original, adicionando um input de arquivo (#sap-file) para importar.xlsx/.xls/.csvusando a bibliotecaxlsxvia CDN; a rotina de importação suporta texto (TAB) ou arquivo e agrupa pornumeroTransporte(DT). (arquivos modificados:index.html,app.js).Locaiscom upload (#locais-file) e função de parsing que mapeia posições de colunas conforme solicitado (3=DT, 5=LOCAL, 8=CIDADE DESTINO, 10=PESO, 13=NOME TRANSPORTADORA, 15=NOME MOTORISTA, 17-19=PLACAS, 21=AGENDA, 23=FIM AGENDA) e popula aGrade. (arquivos:index.html,app.js).Gradecom colunas solicitadas,Hora Chegadaeditável (<input type="time">) e umselectdestatuscom opções padronizadas e cores (STATUS_OPTIONS/STATUS_COLORS), e a lógica que quando o status viraPATIOinjeta um registro noDashboardcom hora/data do momento;Dashboardpermite edição manual de hora/data posteriormente. (arquivos:index.html,app.js,styles.css).StatuscomVenda TOTAL = 175, tabela Planejado/Realizado/Pend baseada emSTATUS_BASEe gráficos de barra por categoria gerados no DOM; a métrica deGRADEé recalculada a partir deEXPEDIDO + PATIO + CARREGANDOno conjunto destore.grade. (arquivos:index.html,app.js,styles.css).localStoragesob a chavedts-store-v3com estrutura{ dts, grade, dashboard }, adicionei parsing de planilhas viaparseSheetFromFile, e atualizei o CSS para suportar novas tabelas, chips de status e cards de gráfico. (arquivos:app.js,styles.css).Testing
node --check app.jspara verificação estática do arquivo JavaScript e o comando retornou sucesso.Codex Task