Replace text file uploads with Excel-based system for participant and prize management #2
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.
Replaces the 4-file .txt upload system (2 per company) with a 2-file .xlsx system where a single participants file contains both companies and prizes are shared between them.
Core Changes
xlsxlibrary to parse .xlsx files client-side with flexible column detection by name rather than positionParticipaandAsistióstatus (accepts: True, 1, Si, Yes, case-insensitive), separates by company (Consultatio/Nordelta), deduplicates by DNISorteosinterface from single company to dual-company model with shared prize poolImplementation
Flexible column detection:
Required Excel columns:
Component updates:
carga-listado: Handles Excel parsing, validation, company separationslots-sorteo2023: Iterates through both companies (consultatio,nordelta) sequentiallyversion2023: Passes dual-company data structure to sorteo componentUI
Single upload per file type with participants displayed in grid layout separated by company. Results display maintains separate columns per company with appropriate logos.
Notes
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
fonts.googleapis.comng build --base-href=/app-sorteo/(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.