Files
wordcraft/.github/workflows/spelling-review.yml
T
totoz64 f6f9d65b0e M7: follow the observed Word for Windows proofing pane
Observe F7 in the installed Word with synthetic text, then replace the central correction form with a right-side task pane. Show sentence context, directly clickable suggestion cards and ignore/dictionary links. Use the existing pane host, palette and original icons; copy no Microsoft assets.

Keep per-window state and clear targets on document switch. Adapt UI tests, pseudo-localization exemptions and light/dark previews. Record observed measurements and remaining feature differences. Local cargo xtask ci was attempted but cargo is absent; exact-head hosted checks and visual comparison remain required.
2026-10-26 10:16:49 +01:00

57 lines
2.0 KiB
YAML

name: Spelling review preview
on:
pull_request:
paths:
- 'crates/ui-egui/src/proofing_pane.rs'
- 'crates/ui-egui/src/panes.rs'
- 'crates/engine/src/cmd/review.rs'
- '.github/workflows/spelling-review.yml'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: spelling-review-preview-${{ github.ref }}
cancel-in-progress: true
jobs:
preview:
runs-on: ubuntu-24.04
timeout-minutes: 45
env:
CARGO_INCREMENTAL: '0'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- name: Install build and software-rendering dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
pkg-config libxkbcommon-dev libwayland-dev libx11-dev libxcursor-dev libxrandr-dev \
libxi-dev libgtk-3-dev libfontconfig1-dev libfreetype-dev libvulkan1 mesa-vulkan-drivers
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec
with:
components: rustfmt
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0
- name: Formatting
id: formatting
continue-on-error: true
run: cargo fmt --all -- --check
- name: Proofing navigation regression
run: cargo test --locked -p wordcraft-engine --lib spelling_review_dialog_navigation
- name: Correction form regressions
run: cargo test --locked -p wordcraft-ui-egui --lib spelling_review_dialog -- --skip preview
- name: Render light and dark correction forms
run: cargo test --locked -p wordcraft-ui-egui --lib spelling_review_dialog_preview -- --ignored --nocapture
- name: Save visual review artifacts
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: spelling-review-preview
path: spelling-review-*.png
if-no-files-found: error
- name: Require formatting success
if: steps.formatting.outcome != 'success'
run: exit 1