Skip to content

chore: resolve fix-now TODO markers and record the triage - #319

Draft
ddfreiling wants to merge 7 commits into
Notalib:mainfrom
ddfreiling:chore/todo-triage-fixes
Draft

ddfreiling wants to merge 7 commits into
Notalib:mainfrom
ddfreiling:chore/todo-triage-fixes

Conversation

@ddfreiling

Copy link
Copy Markdown
Member

Summary

A TODO/FIXME triage classified 54 markers. This PR resolves the fix-now and delete classes and records the rest in docs/plans/todo-triage-2026-11.md, with ready-to-file issue titles and bodies.

Change

  • Web: Peripherals ignores key events from input, textarea, select and contenteditable targets (both keydown and keyup), with a Jest test.
  • Android: removed the debug asset listing in FlutterReadiumPlugin.onAttachedToEngine and its now-unused helper; nothing else called it.
  • Dart: the unsupported-platform placeholder now reads "ReadiumReaderWidget is not supported on ".
  • Cleanup: main-thread (Android) and LCP (iOS) TODOs became plain comments; two Flutter template TODOs removed from the example gradle file; the platform-interface test stub returns a neutral value. AppDelegate.swift:20 is left alone.
  • Docs: triage table, proposed issues G1-G9 and three upstream candidates, linked from docs/plans/README.md.
  • Changelog: fragments for the web key guard and the unsupported-platform message.

Verification

  • bin/format, bin/analyze: pass.
  • Web: npm run typecheck, npm run lint, full Jest suite (28 suites, 432 tests): pass.
  • Android: ktlint --format on both Kotlin files, ./gradlew :flutter_readium:compileDebugKotlin from example/android: pass.
  • bin/changelog check: pass.

Not covered

  • The key guard was not exercised in a browser; the Jest test uses mock events under the node environment.
  • The Android edit was compiled, not run on a device. The iOS comment change was not built.
  • The upstream issue search and open issues/PRs were not cross-checked (GitHub was unreachable during triage).
  • docs/plans/README.md is also edited by the docs/plans-housekeeping branch; expect a trivial merge in a different section.
  • The branch has three commits: the web fix, the triage doc plus fragments, and the code cleanups (a staging slip left the cleanups out of the second commit; squash if you prefer).

🤖 Generated with Claude Code

ddfreiling and others added 5 commits November 9, 2026 20:51
Arrow keys, Space and Enter turned pages even when focus was in an
input, textarea, select or contenteditable element. Peripherals now
skips key events whose target is one of those, resolving the TODO in
onkeydown.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
- Android: remove the debug asset listing (and its helper) from
  FlutterReadiumPlugin.onAttachedToEngine; nothing else used it.
- Dart: the unsupported-platform placeholder now reads
  "ReadiumReaderWidget is not supported on <os>".
- Reword the Android main-thread and iOS LCP markers as plain
  comments, drop two Flutter template TODOs in the example gradle
  file, and use a neutral stub value in the platform-interface test.
- Add docs/plans/todo-triage-2026-11.md with the per-marker table and
  the proposed GitHub issues, linked from docs/plans/README.md.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The previous commit on this branch holds the triage doc, the web
key guard and the changelog fragments; its staging missed these edits.

- Android: remove the debug asset listing (and its helper) from
  FlutterReadiumPlugin.onAttachedToEngine; nothing else used it.
- Dart: the unsupported-platform placeholder now reads
  "ReadiumReaderWidget is not supported on <os>".
- Reword the Android main-thread and iOS LCP markers as plain
  comments, drop two Flutter template TODOs in the example gradle
  file, and use a neutral stub value in the platform-interface test.
- Link the triage doc from docs/plans/README.md.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The mock handler's switch answered openPublication, ttsEnable and
goForward, but no test calls them; every call the tests make falls
through to null. Replace it with a handler that records the call and
returns null.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
closePublication nulls the locator, reader-status and narration-sync
streams so the next access re-subscribes and native clears its buffers.
Nothing pinned that; the existing close test only covers the external
playback stream, which deliberately persists.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@ddfreiling ddfreiling added the maintenance Issues that are maintenance related. They do not need immediate review priority label Nov 10, 2026
ddfreiling and others added 2 commits November 16, 2026 10:27
LCP support is coming in a separate PR that touches this line.
Rewording it here would only cause a merge conflict. The triage
doc now lists the marker as "keep".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's Notalib#371 reworked the web Peripherals key handling and already
covers this branch's form-field guard (plus buttons, modifier keys
and teardown). Take main's Peripherals.ts and test, drop the now
redundant changelog fragment, and point the triage entry at Notalib#371.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Issues that are maintenance related. They do not need immediate review priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant