Skip to content

fix(adapters): parse wolfxl plain-string fill colors - #46

Merged
wolfiesch merged 1 commit into
masterfrom
fix/wolfxl-adapter-cf-color
Sep 8, 2026
Merged

wolfiesch merged 1 commit into
masterfrom
fix/wolfxl-adapter-cf-color

Conversation

@wolfiesch

@wolfiesch wolfiesch commented Sep 8, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Triage follow-up to the 2026-09-08 competitor snapshot (PR #45). WolfXL exposes PatternFill.fgColor as a plain ARGB string where openpyxl returns a Color object, so _color_to_hex returned None for every wolfxl conditional-format rule and the read lane dropped all format expectations.

  • _color_to_hex now accepts the plain-string spelling alongside Color objects.
  • New regression test: CF read returns format: {"bg_color": "#FFFF00"}.

Paired with SynthGL/wolfxl fix/write-mode-local-sheet-id (print-title and named-range scope corruption), wolfxl now scores 3/3 read and write on conditional_formatting, named_ranges, and page_setup, and 21/21 features overall on the fidelity lane.

Verification

  • uv run --no-sync ruff check . clean
  • uv run --no-sync mypy clean (151 files)
  • Full suite: 1271 passed, 79 skipped, 6 xfailed
  • excelbench benchmark -t fixtures/excel -a wolfxl: 21/21 features 3/3 (pivot_tables N/A)

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

WolfXL exposes PatternFill fgColor as a plain ARGB string where
openpyxl returns a Color object, so _color_to_hex returned None for
every wolfxl conditional-format rule and the fidelity read lane
dropped all format expectations (wolfxl scored 0/3 on
conditional_formatting in the 2026-09-08 snapshot).

Accept the plain-string spelling alongside Color objects.

Verification: wolfxl conditional_formatting now 3/3 read and write
against the fixed wolfxl tree; full suite green.
@wolfiesch
wolfiesch merged commit b65866c into master Sep 8, 2026
6 checks passed
@wolfiesch
wolfiesch deleted the fix/wolfxl-adapter-cf-color branch September 8, 2026 07:58
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