Skip to content

Feature/anvil message forward#2232

Open
barna-isaac wants to merge 5 commits into
mainfrom
feature/anvil-message-forward
Open

Feature/anvil message forward#2232
barna-isaac wants to merge 5 commits into
mainfrom
feature/anvil-message-forward

Conversation

@barna-isaac

Copy link
Copy Markdown
Contributor

This forwards marking messages from the Anvil app towards the Isaac backend. This completes the work on recording answers! The PR is ready for review now, but please hold off releasing until the backend (isaacphysics/isaac-api#798) as well as config changes (https://github.com/isaacphysics/isaac-sops-config/pull/23) are merged and released. Without the backend changes, we would flood the user's screen with error messages each time they submitted an answer, although just in this one app: https://isaacscience.org/pages/app_page_mental_maths_overall.

To test this locally, apply the config and api changes locally, and visit the http://localhost:8004/pages/app_page_mental_maths_overall page. Watch out, as there is also a migration to apply. Once you've clicked submit, the answers should be recorded to your local database.

@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 38.88889% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 43.60%. Comparing base (ab44f42) to head (acb3665).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/app/components/content/AnvilApp.tsx 9.09% 10 Missing ⚠️
src/app/state/slices/api/skillsApi.ts 83.33% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2232   +/-   ##
=======================================
  Coverage   43.60%   43.60%           
=======================================
  Files         599      600    +1     
  Lines       25275    25286   +11     
  Branches     8371     8399   +28     
=======================================
+ Hits        11021    11027    +6     
- Misses      14197    14202    +5     
  Partials       57       57           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- use the data alias
- require iframeRef.current, as its abscence means the check for event source could not be performed
- use user.loggedIn in the useEffect parameter, to avoid re-running the effect on a random user field changing. note we can't do the same to page as we reference the entire page object in the type check
@barna-isaac barna-isaac changed the base branch from main to uc-refactor-suggestion June 26, 2026 16:06
@barna-isaac barna-isaac changed the base branch from uc-refactor-suggestion to main June 26, 2026 16:06
@barna-isaac barna-isaac changed the base branch from main to uc-refactor-suggestion June 26, 2026 16:07
@barna-isaac barna-isaac changed the base branch from uc-refactor-suggestion to main June 26, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant