Skip to content

Use curved paper-plane trails for practice and loading - #71

Draft
TraSh9178 wants to merge 2 commits into
mainfrom
fix/paper-plane-flight
Draft

TraSh9178 wants to merge 2 commits into
mainfrom
fix/paper-plane-flight

Conversation

@TraSh9178

Copy link
Copy Markdown
Owner

Changes

  • Put the ExamPilot paper plane on a curved dashed practice trail, with a stop for each question and a short flight when moving forward or back.
  • Center the shared loading flight over a softly blurred login or learning area. Keep the plane still when reduced motion is requested.

Review

  • Run the Windows and Linux test matrix on this pull request.
  • Verify the two visual changes in a browser preview before merging.

@k086-cloud

Copy link
Copy Markdown
Collaborator

Checked this draft locally at a40ed1a (no database, no API key). It needs a merge from main first, and one thing should be looked at on the deployed app.

1. Conflicts with main (blocking)

pages/2_Practice_Center.py conflicts with main since #74. With #70 it also conflicts in tests/test_paper_shell.py. Please merge main in (and decide the order with #70).

2. The loading veil: check it on the deployed app

The veil (52% paper colour plus a 3px blur over the whole learning area) is shown whenever stSpinner or stStatusWidgetRunningIcon is in the page. Locally it never appeared for ordinary clicks (opening a course, choosing scope pills, confirming the scope): Streamlit only shows the running icon when a run takes a while, and local runs are short. On the deployed app, runs that save to the account take longer. Please check there that choosing an answer or a confidence pill does not blur the page for a moment. If it does, lengthen the delay (now .16s) or tie the veil to stSpinner only.

3. One requirement to confirm

The request for the loader was a paper plane flying back and forth in place of the round spinner. This draft replaces that with a single flight along a curve that fades out and restarts, over a blurred page. Fine if that is agreed; please confirm it in the group before merging.

What works (checked)

On this branch the practice page renders the curved trail with the plane at the first stop and one stop per question (three for a three-question mock exam), with no error.

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.

2 participants