Repository navigation
feat(teacher-evaluation-dashboard): add the teacher evaluation analysis Mini App - #210
salvadorfernandezm wants to merge 4 commits into
Conversation
…is Mini App Adds a Mini App that turns a teaching-evaluation workbook into an interactive dashboard: the average and the difference against the historical average by teacher, term, programme and item, the participation rate, the students' written comments, and the anomalies the file itself contains. The Node service reads the workbook with a built-in XLSX reader, so the package has no runtime dependencies and nothing leaves the machine. It ships a synthetic demo workbook; a workbook that does not match the fixed contract is rejected with an explicit message instead of being reshaped.
|
Thanks for the Teacher Evaluation Dashboard PR. I can't merge this version. The built-in XLSX reader calls I reproduced this on the current head Please add a hard cap on decompressed output, and also cap worksheet materialization (row, column, and total size) so a sparse sheet cannot allocate a huge dense array. The same limits need to apply to Root |
…tion column The import was tied to the exact header "Promedio 2026A" and rejected every other column, so a workbook from another round could not be loaded and an edited template could not be imported back. - The column of the period is now found by shape (any "Promedio <period>" header) and the period it carries is shown throughout the page. - Extra columns are ignored and listed as a data note instead of failing the import. - An optional participation-percentage column is used in place of the calculated one, and the difference is reported when both exist. - Participation is counted per group of (course, teacher), so a course that is taught by several teachers keeps the students of each one. - "Descargar plantilla" returns the workbook in use, so it can be edited in a spreadsheet and imported back.
A template reused every semester has to be renamed on every round, and a
misspelled header ("romedio 2027A") was rejected with a message that did not
say which header was wrong.
- "Promedio actual" (or a bare "Promedio") is accepted as the column of the
period; the page then speaks of "Promedio actual" and no period is named.
- A header that is almost "Promedio" is pointed out with the right spelling
when the period column is missing.
- A specific "Promedio <period>" still wins when a generic one is also
present, and "Promedio2027A" without a space is accepted too.
A workbook reused every semester names no period, so the page could not say which round it was showing. A "Período" field next to the title renames it for the headline figure, the legends, the chart titles and the course detail, without touching the file. The value is kept in the browser's local storage and an empty field falls back to the period of the workbook.
Adds Teacher Evaluation Dashboard, a Mini App that turns a teaching-evaluation workbook into an interactive analysis dashboard: the average and the difference against the historical average by teacher, term, programme and item, the participation rate, the students' written comments, and the anomalies the file itself contains. The Node service reads the workbook with a built-in XLSX reader, so the package has no runtime dependencies and nothing leaves the machine.
Tested environment and results
surface.windowand nothing newer. It declares nopermissionsand noenginesbound.Promedio 2027A, with an extra column and a declared participation percentage, was imported and rendered: the page showed the 2027A labels, the extra column was listed as a data note, and the participation was counted per (course, teacher) group. A workbook renamed toPromedio actualwas rendered with that label and no period; a misspelledromedio 2027Awas rejected with a message that names the header and the right spelling.npm run validate:plugins/salvadorfernandezm/teacher-evaluation-dashboard: OK— 0 errors, 0 warnings.What I did not verify
permissionsand the code calls no 3.1.20+ API, so the package should load on clients before 3.1.20 as well, but that is not something I could verify here.npm testreports two failures on this machine, both intest/files.test.mjs: creating a symlink returnsEPERMwithout Developer Mode or administrator rights on Windows. They fail the same way on an unmodified checkout and are unrelated to this package.Remaining
npm run checkwarningsNone for this package.
npm run validatereports 0 errors and 0 warnings forplugins/salvadorfernandezm/teacher-evaluation-dashboard; the warnings it prints belong to other packages in the repository.New access and minimum client version
permissions, calls no Host API, opens no network host, starts no child process, runs no Agent turn, reads no conversation, and calls no tool or Connector. The Node service binds only to the Host-assigned loopback port and serves the page plus its own routes.context.dataDironly — an imported workbook is stored there asimported-source.xlsx, written atomically, and deleted by "Restore original data".surface.window. Not raised above what the package needs, and noenginesbound is declared.Written by MiniMax-M3.1-Flash
The package
plugins/salvadorfernandezm/teacher-evaluation-dashboard/Plugin ID
teacher-evaluation-dashboard— unique in the repository at the time of the pull request.What the dashboard shows
Term, programme, teacher, item and a free-text search over teachers, courses and comments apply at once and recompute every section. The page has light and dark themes and keeps the filter and theme choices in local storage.
The workbook contract
The Node service reads the workbook at startup with a small built-in XLSX reader (ZIP plus
inflateRawplus an XML walk), so the package has no runtime dependencies. The instrument is fixed by contract and never inferred from the file; the shape of the file around it is not:Estadísticawith one row per course and item, with the items numbered1to17.Reactivoholds the number followed by the item text.ID programa,ID especialidad,ID profesor,Semestre,Reactivo,Histórico,Comentarios,ParticiparonandConvocadosare required; common alternative spellings are accepted.Promedio <period>(Promedio 2026A,Promedio 2027A, …). The period is read from that header and shown throughout the page, so the same package analyses any round without being edited. A header that names no period —Promedio actual— is accepted too, so a template can be reused every semester without renaming anything; the page then speaks of "Promedio actual". A file with two period columns is rejected with a message naming both, and a header that looks like a misspelling is pointed out with the right spelling.Participación %) declares the participation of each teacher and is used in place of the calculated one.Padrón(optional) withID,Nombre,Materia,Programa,Especialidad,Semestre. WhenID especialidadis empty in the evaluation sheet, the programme fromPadrónis used.A workbook that does not honour the contract is rejected with an explicit message that names what is missing, so a wrong file never silently produces a wrong dashboard. The page shows the period carried by the workbook, and a Período field next to the title renames it for the whole page — headline figure, legends, chart titles and course detail — without touching the file. The value is kept in the browser's local storage. The same contract validates an imported workbook, and Importar Excel reuses the same parser. Descargar plantilla returns the workbook in use as a download, so it can be edited in a spreadsheet and imported back.
How the numbers are computed
The bundled workbook
miniapp/node/data/estadistica.xlsxis synthetic: 23 courses, 24 teachers, 17 items with their own wording, 21 comments, and the same structural anomalies as a real evaluation file. It carries no real teacher name, student comment, absolute path or credential. The same conclusion was checked by scanning every text file in the package against the names and comments of the source workbook: no match.Accessibility and interface
The interface is in Spanish, matching the workbook and the evaluation context the tool was written for. Charts are inline SVG with no CDN or third-party dependency; the page follows the host's light and dark theme and honours the system preference.