Skip to content

Start page, clear units, version in the title, diameter sign in TrueType text - #31

Merged
withshalom merged 3 commits into
mainfrom
claude/3d-commits-main-branch-pol5un
Nov 19, 2026
Merged

withshalom merged 3 commits into
mainfrom
claude/3d-commits-main-branch-pol5un

Conversation

@withshalom

Copy link
Copy Markdown
Member

What changes for users

  • Start page, as AutoCAD's Start tab. DraftCraft now starts on it when nothing is opened:
    • New drawing: Metric (millimeters) or Imperial (inches). The choice is remembered in MEASUREINIT for later plain News, and the current one is outlined.
    • Open... and Open sample drawing.
    • Workspace picker.
    • Recent drawings, as before.
  • Units are clear. The status bar's units control shows the unit as well as the format (mm · Decimal, in · Architectural), with a tooltip that spells it out. Its menu switches the common units (mm, cm, m, in, ft, unitless) as well as the format.
  • Version is visible. The title row and the desktop's window title read DraftCraft 2.2.0 Plan.dwg (… Start on the Start page). The Start page shows "Version 2.2.0" at body size.
  • Diameter sign fixed. %%c (⌀, U+2300) in a TrueType style such as Arial drew the missing-glyph box: almost no TrueType font has U+2300, and the fallback fonts didn't either. It now draws the same font's own Ø (or ∅).

Tests

New tests:

  • crates/fonts/tests/diameter_sign.rs failed before the fix and passes after.
  • Units label tests in chrome/units.rs.
  • the_start_page_new_drawing_is_in_the_chosen_units_and_remembers_them, run from an empty session as the desktop app starts. It covers a bug found while clicking through the real app: SETVAR needed a drawing open.
  • the_window_title_names_the_version_and_the_drawing.

What ran:

  • cargo clippy -p draftcraft-ui-egui --all-targets -D warnings
  • cargo test -p draftcraft-ui-egui
  • cargo test -p draftcraft-fonts
  • The desktop app on a virtual display, with screenshots of the Start page, Metric New, the title and the status bar.

cargo xtask ci was still running when this was opened; I'll report its result here.

Italian translations and CHANGELOG.md lines are included.


Generated by Claude Code

…ype text

- DraftCraft starts on the Start page, as AutoCAD does: New drawing in Metric
  (millimeters) or Imperial (inches), remembered in MEASUREINIT; Open; Open
  sample drawing; a Workspace picker.
- The status bar's units control names the unit with the format (mm · Decimal)
  and switches the common units directly.
- The window title shows the version with the drawing: DraftCraft 2.2.0  Plan.dwg.
- ⌀ (%%c) in a TrueType font without U+2300 draws the font's own Ø (or ∅)
  instead of the missing-glyph box; regression test diameter_sign.rs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F67RssNr67uM2HRS3vdet4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F67RssNr67uM2HRS3vdet4
window_frame is desktop-only; the title text the ribbon shows moves to chrome,
and only the desktop sets the OS window title. cargo xtask ci passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F67RssNr67uM2HRS3vdet4

Copy link
Copy Markdown
Member Author

cargo xtask ci result: all 7 steps pass on 7556d72 (fmt, clippy, test, i18n, assets, layers, wasm).

The first full run failed at wasm. The title text lived in window_frame, which isn't compiled for the web build. 7556d72 moves window_title into chrome and sets the desktop window title only off wasm.

The version is now 2.2.1 (cargo xtask version set 2.2.1), and the notes are under ## 2.2.1 in CHANGELOG.md.


Generated by Claude Code

@withshalom
withshalom marked this pull request as ready for review November 19, 2026 19:25
@withshalom
withshalom merged commit b3dd122 into main Nov 19, 2026
5 checks passed
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.

2 participants