Skip to content

fix(desktop): support AVIF and remove inactive spellcheck - #186

Merged
bketelsen merged 2 commits into
mainfrom
fix/native-rendering
Nov 11, 2026
Merged

bketelsen merged 2 commits into
mainfrom
fix/native-rendering

Conversation

@bketelsen

@bketelsen bketelsen commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Decode AVIF in native image tabs, reading views, and live-preview embeds using the pure-Go gav1d decoder, within the existing image size and per-view limits. Remove the ineffective native Spellcheck control and saved preference; ADR-0040 records the decision. The web preference is unchanged.

Closes #150. Closes #151.

Risk tier

Risk tier: 3 — matched L1 paths internal/desktop/reading/view.go and internal/desktop/editor/live.go. AVIF uses the same byte, header-pixel, and decoded-view limits as other images. Only the decoder registration and supported extension are added to these paths. The new module is version-pinned and the Flatpak sources regenerated.

Docs housekeeping

ADR-0040 starts from the ADR template, is indexed, and links both ways with the design, UI spec and desktop plan.

Verification

  • mise exec -- make check and make desktop-build passed.
  • A generated 4×3 AVIF decodes at the expected size; corrupt input is rejected. Removing decoder registration makes the regression fail with image: unknown format.
  • Existing image byte/pixel-budget tests pass.

Merge order

Stacked on #185; merge that PR first, then retarget this PR to main. Preserve ancestry with merge commits, or rebase the remaining branches after a squash merge. Full order: #181 → #182 → #183 → #184 → #185 → #186 → #188 → #187 → #189 → #190.
The final branch contains the combined fixes. CI and Flatpak workflows were dispatched on that branch because PR CI is restricted to a main base.

@github-actions github-actions Bot added level:L1 Read every line risk:high Touches a path in .github/risk-paths.json labels Nov 11, 2026
# Conflicts:
#	docs/specs/ui.md
#	internal/desktop/reading/view_test.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:L1 Read every line risk:high Touches a path in .github/risk-paths.json

Projects

None yet

Development

Successfully merging this pull request may close these issues.

desktop: decode AVIF images desktop: spellcheck

1 participant