Skip to content

Keep offline slide navigation responsive#16

Merged
merval merged 1 commit into
mainfrom
codex/improve-slide-transition-speed-offline
May 31, 2026
Merged

Keep offline slide navigation responsive#16
merval merged 1 commit into
mainfrom
codex/improve-slide-transition-speed-offline

Conversation

@merval

@merval merval commented May 31, 2026

Copy link
Copy Markdown
Member

Motivation

  • Offline and slow API conditions caused the visible speaker notes to wait for ProPresenter API responses, making slide navigation feel sluggish and tied to network availability.

Description

  • Added local queueing state with pendingSlideTrigger and slideTriggerInFlight to serialize and track background slide trigger work in propresenter_notes/static/app.js.
  • Replaced immediate API calls from thumbnail taps and previous/next with a local-first UX that calls showSlide(...) immediately and enqueues the actual ProPresenter trigger via queueSlideTrigger(...).
  • Implemented queueSlideTrigger, flushSlideTriggerQueue, and sendSlideTrigger to coalesce rapid navigation to the latest requested slide and avoid out-of-order API requests.
  • Simplified trigger(direction) to advance notes locally and queue the API call asynchronously so speaker pace is not blocked by the ProPresenter API.

Testing

  • Ran node --check propresenter_notes/static/app.js to validate the script syntax without errors, which succeeded.
  • Ran the full Python unit test suite with python -m unittest discover -s tests -v, which executed 59 tests and completed successfully (OK).

Codex Task

@merval merval merged commit 61ccefe into main May 31, 2026
1 check passed
@merval merval deleted the codex/improve-slide-transition-speed-offline branch May 31, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant