Repository navigation
fix(demo): sync the extension demo data with the Dart demo - #11
Merged
Merged
Conversation
The extension's DEMO_* data had drifted from lib/api/demo_data.dart: the popup showed a 3.32 overall average against the app's 3.87, with other grades, subjects, June-dated messages, absences and homework. The extension copy now mirrors the Dart one, including the message attachments and the ellenőrző notes. fixtures/demo/demo_summary.json is generated from the Dart demo, and both test/demo_sync_test.dart and extension/test/demo_sync.test.mjs check their copy against it, so the two can no longer drift apart unnoticed. DemoData.getAverages() is now worked out from the demo grades instead of hand-typed values that disagreed with them (Matematika 4.30 vs 4.52). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Flutter 3.50.0 became the stable release after the last green run and deprecates package:flutter/material.dart in favour of package:material_ui. flutter analyze fails on those 38 infos, so every PR's desktop app check fails regardless of its changes. Pin the version that last passed until the app moves to material_ui. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What changed
extension/shared/kreta_api.js): theDEMO_*data now mirrorslib/api/demo_data.dart, the reference copy that the website previews also show. That covers the grades, subjects, class averages, timetable rooms and topics, messages with their attachments (Visegrad_programterv.pdf,Szuloi_nyilatkozat.docx,Versenykiiras_2026.pdf), ellenőrző notes, absences, homework, exams and teachers. Dates are relative to now or to the school year, the same way the Dart demo works them out.fixtures/demo/demo_summary.jsonis generated from the Dart demo.test/demo_sync_test.dartandextension/test/demo_sync.test.mjsboth reduce their copy to the same summary and compare it with the fixture. Running the Dart test withPALA_UPDATE_DEMO_FIXTURE=1regenerates the fixture after an intended change.DemoData.getAverages()is now worked out from the demo grades withGradeRulesand rounded to two decimals. Its hand-typed values disagreed with the grades (Matematika 4.30 vs 4.52); a new test intest/demo_data_test.dartchecks they agree.Why
The two demo copies had drifted apart: the app showed an overall average of 3.87 and the extension popup 3.32, with different grades and June-dated messages. AGENTS.md rule 7 says both copies must match. Both now show 3.87.
For reviewers
Checks
dart analyze --fatal-infos lib bin test: no issuesdart test: 173 passednode --check extension/shared/kreta_api.js: OKnode --test extension/test/*.test.mjs: 50 passed🤖 Generated with Claude Code