Fix macOS table cells hiding their text; Bug report button and report relay #26

Merged
noah merged 5 commits from macos-table-and-bug-report into main 2026-11-04 10:20:16 -07:00
Owner

Two user-reported items.

macOS: values missing until a row is clicked. wxOSX draws custom cells without clipping to the cell, so the segment renderer's oversized zebra fill (which GTK and MSW clip) painted over neighbouring cells. On macOS the zebra is now the table's native alternating rows; plain text uses the theme-aware list text colour. A self-test option, ALKANE_SNAPSHOT=path (macOS), writes a PNG of the window as the app draws it; before/after snapshots on the M1 confirm the fix in light and dark. wx-rs patch 0010.

Bug report button between Export and Settings: type (Bug / UI change / Feature request), text (first line = title), optional recent activity log scrubbed of passwords and tokens. It posts to the report relay, which files the issue here with labels bug/ui/feature + from-app and answers with the issue number. The app holds no token.

Report relay (tools/report-relay): dependency-free Python service, deployed on the Gitea host behind nginx at https://gitea.bluefla.re/alkane-report/ as the scoped alkane-reporter bot (team alkane-reporters: issues write, code read, this repository only). Validation, size and rate limits, second scrub, @mention neutralising. Tests in verify. Deployment recorded in flare-deployment PR #236. End-to-end check filed #25 (closed).

Also folds in #24 (build-gui-macos without --locked) and adds a manual section.

Tested: bug_report unit tests, relay tests (6), clippy as CI runs it, the dialog driven under Xvfb against an unreachable relay and against a local relay with a fake Gitea, and the macOS snapshots.

Generated with Claude Code

https://claude.ai/code/session_01BdKQBRg6YCM1XXQCTnD5GF

Two user-reported items. **macOS: values missing until a row is clicked.** wxOSX draws custom cells without clipping to the cell, so the segment renderer's oversized zebra fill (which GTK and MSW clip) painted over neighbouring cells. On macOS the zebra is now the table's native alternating rows; plain text uses the theme-aware list text colour. A self-test option, ALKANE_SNAPSHOT=path (macOS), writes a PNG of the window as the app draws it; before/after snapshots on the M1 confirm the fix in light and dark. wx-rs patch 0010. **Bug report button** between Export and Settings: type (Bug / UI change / Feature request), text (first line = title), optional recent activity log scrubbed of passwords and tokens. It posts to the report relay, which files the issue here with labels bug/ui/feature + from-app and answers with the issue number. The app holds no token. **Report relay** (tools/report-relay): dependency-free Python service, deployed on the Gitea host behind nginx at https://gitea.bluefla.re/alkane-report/ as the scoped alkane-reporter bot (team alkane-reporters: issues write, code read, this repository only). Validation, size and rate limits, second scrub, @mention neutralising. Tests in verify. Deployment recorded in flare-deployment PR #236. End-to-end check filed #25 (closed). Also folds in #24 (build-gui-macos without --locked) and adds a manual section. Tested: bug_report unit tests, relay tests (6), clippy as CI runs it, the dialog driven under Xvfb against an unreachable relay and against a local relay with a fake Gitea, and the macOS snapshots. Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01BdKQBRg6YCM1XXQCTnD5GF
noah added 5 commits 2026-11-04 10:06:43 -07:00
A release sets the crate version first, which changes the workspace
entries in Cargo.lock; --locked then refuses to build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On macOS several table columns showed no values until a row was
clicked. wxOSX draws custom cells without clipping to the cell, and the
segment renderer paints its zebra background over an oversized rectangle
(a column width either side, 40 px up and down) that GTK and MSW clip
to the cell. On the Mac each cell's fill painted over its neighbours.
Selected rows skip the fill, so their text came back.

On macOS the zebra is now the table's native alternating rows. AppKit
paints them under every cell in the theme's colours, and no row
carries a background attribute, so the renderer never fills. Plain
segment text uses the theme-aware list text colour instead of the
control's foreground colour.

To check rendering without screen-recording permission, the self-test
takes ALKANE_SNAPSHOT=path (macOS) and writes a PNG of the window as
the app draws it (osx_native.mm: cacheDisplayInRect). Before/after
snapshots on the M1 confirm the fix in light and dark appearance.

wx-rs patch 0010. Also folds in PR #24 (build-gui-macos without
--locked).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdKQBRg6YCM1XXQCTnD5GF
A Bug report button between Export and Settings opens a dialog: a type
(Bug, UI change, Feature request), one text box whose first line
becomes the issue title, and "Include the recent activity log
(passwords removed)", ticked by default. Send posts the report to the
report relay (next commit), which files it as an issue in
blueflare/alkane-toolkit. The dialog then shows the issue number, and
Open issue opens it, or shows why the report was not sent with the text
kept.

The app holds no token. A report carries the app version, platform, OS
version, appearance, language and window size, plus the newest 80 log
lines (at most 16 KiB). Before the log leaves the machine,
bug_report::scrub removes values of password/token/secret-like names,
Authorization and Cookie headers, URL passwords and PEM private keys.
The request goes through the system curl, as the other HTTP actions
do. ALKANE_REPORT_URL overrides the relay address for testing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdKQBRg6YCM1XXQCTnD5GF
tools/report-relay is a dependency-free Python service. It takes the
JSON the app's Bug report button sends, validates it (type, text,
context and log sizes), scrubs the log a second time, rate-limits (5
per client IP and 60 in all per hour, 4 in flight), neutralises
@mentions, and files one issue in blueflare/alkane-toolkit with the
labels bug/ui/feature and from-app. It stores nothing and logs one
line per report without its text.

It runs on the Gitea host behind the shared nginx at
https://gitea.bluefla.re/alkane-report/ as the scoped alkane-reporter
bot (team alkane-reporters: issues write, code read, alkane-toolkit
only). See tools/report-relay/README.md. Its tests run in verify's
unit-test step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdKQBRg6YCM1XXQCTnD5GF
Manual: reporting a problem with the Bug report button
verify / verify (pull_request) Successful in 7m39s
source / check (pull_request) Skipped
verify / verify-windows (pull_request) Successful in 5m30s
7f2ea8a8dc
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdKQBRg6YCM1XXQCTnD5GF
noah merged commit 3d1fd36811 into main 2026-11-04 10:20:16 -07:00
noah deleted branch macos-table-and-bug-report 2026-11-04 10:20:16 -07:00
Sign in to join this conversation.