Skip to content

LR-CI: fix Rust 1.95 lints and standard-font menu hints - #3136

Closed
r3d42-git wants to merge 3 commits into
storytold:mainfrom
r3d42-git:r3d/upstream-ci-readiness
Closed

r3d42-git wants to merge 3 commits into
storytold:mainfrom
r3d42-git:r3d/upstream-ci-readiness

Conversation

@r3d42-git

@r3d42-git r3d42-git commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

With optional craft-fonts unset, runtime menu-path hints can render U+25B8 (▸), which the bundled fallback faces do not supply. Egui's strict missing-glyph policy panics in the all-view accessibility test. Use the supported → separator in those runtime hints and migrate their locale source keys; all 140 translated values are preserved exactly.

Also simplify four equivalent expressions rejected by Rust 1.95 Clippy: the export preset-depth guard (the exact #2544 fix), empty-rule-group cleanup, identical macOS menu branches, and the current main's neighbour-prefetch texture guard. No behavior, lint policy, dependency, font provider, test skip, rendering process, or catalog setting is changed by this PR.

Current-main synchronization — 28 October 2026

Merged upstream main at 59a5d00c608dd4dc4b3c0d9cd4e914e81aa86ce5, preserving the published commits. Kept the upstream Clippy refactors and moved the two affected hint changes into their extracted helpers rather than restoring the old large functions. The neighbour-prefetch guard is an additional one-line prerequisite found by the local CI run on this base. #3198 duplicates the original three lint corrections; this PR additionally covers the new guard and fonts-off runtime hints.

Validation

Full cargo xtask ci passes all eight gates on the merged source with Rust 1.95, no temporary overlays, and no craft-fonts input. The test run includes the strict all-view accessibility regression, native Apple M5 Max Metal, and WebAssembly checks. Environment-dependent corpus, font, and model skips are reported explicitly; these are local results, separate from hosted GitHub checks.

An independent JSON audit against current main confirms that only 140 locale source keys changed and every translation value is unchanged. No installed app, personal photo library, or private photograph was used for this synchronization.

Update — 1 November 2026: this CI prerequisite has been superseded by #3362, #3295 and #3413. #2675 and #3138 remain independent camera-calibration proposals and no longer require this PR to merge. The optional menu-hint separator cleanup was not adopted upstream. The implementation and validation above describe the historical branch state.

Summary by CodeRabbit

  • Style
    • Updated menu paths and navigation instructions across the app and its translations to use a consistent right arrow (→) separator instead of a triangular arrow (▸). Meaning and functionality are unchanged.

@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 8f3412c and aba3509.

Files selected for processing: 9
  • crates/engine/src/denoise/model.rs
  • crates/ui-egui/src/dialogs/import/task.rs
  • crates/ui-egui/src/dialogs/settings/general.rs
  • crates/ui-egui/src/menus/run.rs
  • crates/ui-egui/src/panels/compare.rs
  • crates/ui-egui/src/panels/detail.rs
  • crates/ui-egui/src/panels/detail/masks.rs
  • crates/ui-egui/src/panels/grid.rs
  • crates/ui-egui/src/panels/mask_effects.rs
Files skipped from review as they are similar to previous changes: 8
  • crates/ui-egui/src/dialogs/settings/general.rs
  • crates/ui-egui/src/panels/detail/masks.rs
  • crates/ui-egui/src/panels/compare.rs
  • crates/ui-egui/src/dialogs/import/task.rs
  • crates/engine/src/denoise/model.rs
  • crates/ui-egui/src/panels/mask_effects.rs
  • crates/ui-egui/src/panels/grid.rs
  • crates/ui-egui/src/menus/run.rs

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

Walkthrough

The pull request replaces ▸ with → in application messages, engine errors, UI text, and localization entries. It also adds or clarifies documentation and rewrites several conditions that retain their described behavior.

Changes: Text and Condition Updates

Layer / File(s) Summary
Menu-path separators and related documentation
apps/lightcraft/src/*, crates/engine/src/*, crates/ui-egui/src/*, crates/ui-egui/locales/*
Application, engine, UI, and localization menu paths use → instead of ▸. Documentation comments are added or clarified. Translated wording and placeholders are generally unchanged.
Equivalent condition rewrites
apps/lightcraft/src/native_menu.rs, crates/engine/src/cmd/export.rs, crates/ui-egui/src/dialogs/rules_editor/rules_move.rs, crates/ui-egui/src/panels/detail.rs
The native-menu condition groups Quit, About, and Settings handling. The export-depth, empty-group cleanup, and texture checks are rewritten without described behavior changes.

Priority: Low

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

Change: Bug fix

Suggested reviewers: nledford, claude

Merge Risk: Minimal · up to aba35

The changes are limited to menu text and behavior-preserving condition rewrites, with no identified merge-blocking risk.

Pre-merge checks: Passed 4
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly summarizes both main changes: Rust 1.95 lint fixes and standard-font menu hint updates.
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.
Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

Retain the upstream function extractions and move the supported menu hints into their new helpers. Simplify the new neighbour-prefetch guard for Rust 1.95 without changing its behavior.

Co-authored-by: OpenAI Codex <noreply@openai.com>
@r3d42-git

Copy link
Copy Markdown
Contributor Author

Updated against main (59a5d00c), resolved merge conflicts and preserved upstream refactors. Local cargo xtask ci passes all eight gates. The PR description now includes the updated validation details.

@r3d42-git

Copy link
Copy Markdown
Contributor Author

Closing the superseded CI prerequisite package: #3362 covers the export/rule-group/prefetch cleanups, #3295 the native-menu cleanup, and #3413 handles the fonts-off accessibility audit. The optional menu-hint separator cleanup was not adopted upstream. #2675 and #3138 remain open and no longer require this PR to merge.

@r3d42-git r3d42-git closed this Nov 1, 2026
@r3d42-git
r3d42-git deleted the r3d/upstream-ci-readiness branch November 1, 2026 17:44
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.

1 participant