Skip to content

Fix font sending before upload starts - #96

Merged
itsthisjustin merged 1 commit into
crosspoint-reader:mainfrom
jcapayne:codex/fix-font-send
Nov 13, 2026
Merged

itsthisjustin merged 1 commit into
crosspoint-reader:mainfrom
jcapayne:codex/fix-font-send

Conversation

@jcapayne

@jcapayne jcapayne commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Clicking Send for a saved font threw ReferenceError: family is not defined before the upload job started, so no font data reached the reader. The failure-message argument now uses font.family, which is in scope when the handler runs.

Adds regression tests that click Send and verify the multipart upload's family, filename, and bytes, plus success and upload-failure feedback.

Validation:

  • App suite: 429 tests passed across 32 files.
  • Regression tests reproduced the ReferenceError before the fix.
  • macOS release app built successfully; font sending confirmed on a real reader.
  • iPhone 16 Pro: font sending confirmed successful on a physical device with the organization-signed build. Transfer was slow, but completed successfully.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-13T22:31:21.381537Z
We couldn’t complete this review. Comment @codex review to try again.
fcfe4e9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The send failure message now uses font.family. A new test checks the uploaded font data and the success and failure notifications.

Changes: Reader font upload

Layer / File(s) Summary
Send and verify font upload
app/src/ReaderFonts.jsx, app/src/ReaderFonts.test.jsx
The failure message uses font.family. The test checks the POST payload, success notification, and failure notification with the reader’s response text.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: itsthisjustin

Merge Risk: Minimal · up to fcfe4

This fixes the error that stopped saved fonts from being sent to a reader and adds regression tests. No actionable merge risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: fixing font sending so it works before the upload starts. The raw summary and objectives both describe a fix that changes the failure-message argument to font.family, …
Description check Passed The description states the bug (ReferenceError: family is not defined when clicking Send), the fix (use font.family in the failure-message argument), the added regression tests, and validation steps. …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: fixing font sending so it works before the upload starts. The raw summary and objectives both describe a fix that changes the failure-message argument to font.family, which resolves the ReferenceError. The title is specific and accurate.

Full details: Description check

Explanation

The description states the bug (ReferenceError: family is not defined when clicking Send), the fix (use font.family in the failure-message argument), the added regression tests, and validation steps. These match the raw summary of ReaderFonts.jsx and ReaderFonts.test.jsx.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0947694b-a160-4375-b3a6-5e29a65e8e56
Commits

Reviewing files that changed from the base of the PR and between 1e1294e and fcfe4e9.

Files selected for processing: 2

  • app/src/ReaderFonts.jsx
  • app/src/ReaderFonts.test.jsx

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

Recent review details

Context from checks skipped due to timeout: 2

  • GitHub Check: CodeRabbit
  • GitHub Check: docker (linux/arm64)
Additional comments: 2

app/src/ReaderFonts.jsx: 1

146-146: LGTM!

app/src/ReaderFonts.test.jsx: 1

1-47: LGTM!

@itsthisjustin
itsthisjustin merged commit 9b646d4 into crosspoint-reader:main Nov 13, 2026
5 checks passed
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