Commit graph

2,471 commits

Author SHA1 Message Date
Hakan Seven
ab2e7b508d version update 2026-03-31 00:39:03 +03:00
Hakan Seven
a88542a69a Fix ribbon active state, polar snap, FILLET pick mode, and arc preview plane
- Deactivate ribbon tool highlight when command ends (issue #1)
- Reset last_point on new command dispatch to fix polar snap offset (issue #2)
- FILLET/CHAMFER: disable text input during entity pick so clicks reach viewport (issue #3)
- Dropdown icon buttons now use RibbonToolClick so they highlight blue when active
- FILLET/CHAMFER: AutoCAD-style sub-step UX — typing R/D + Enter prompts for value
- Fix FILLET arc preview plane: arc was rendering in XZ instead of XY
- Bump version to 0.1.1

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 00:31:28 +03:00
Hakan Seven
468633c1fe Co-locate CadCommand impls with their ribbon toolbar modules
Each command implementation is now in the same file as its ribbon
tool definition. Groups moved to a dedicated groups/ toolbar folder.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 23:21:29 +03:00
Hakan Seven
bdde862597 Split large files: ribbon widgets and scene render/selection
- ribbon.rs → ribbon/mod.rs + ribbon/widgets.rs
  Extracted all rendering helpers, button styles, colour constants,
  layout constants and dropdown position calculators into widgets.rs.

- scene/mod.rs → scene/mod.rs + scene/selection.rs + scene/render.rs
  Moved SelectionState into selection.rs; moved CameraState, Primitive,
  shader::Program/Primitive impls, render_style and resolve_pattern
  into render.rs, reducing mod.rs from 1323 to ~1030 lines.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 23:07:43 +03:00
Hakan Seven
ed9cbc2092 Refactor src/main.rs into modular src/app/ structure
Split the 4500-line main.rs into focused submodules under src/app/:
- mod.rs: H7CAD struct, Message enum, boot/new/run
- document.rs: DocumentTab, HistorySnapshot, HistoryState
- helpers.rs: pure helper functions
- history.rs: undo/redo logic
- properties.rs: properties panel logic
- layers.rs: layer sync
- commands.rs: dispatch_command
- cmd_result.rs: apply_cmd_result
- view.rs: view, subscription, tab bar
- update.rs: update message handler

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 22:44:32 +03:00
Hakan Seven
854f07517e Remove redundant Flatpak README 2026-03-22 20:27:23 +03:00
Hakan Seven
a8089f7c74 Rename flatpak-release.yml to release.yml 2026-03-22 18:36:48 +03:00
Hakan Seven
803f5a005c Add Windows build job to release workflow 2026-03-22 18:35:45 +03:00
Hakan Seven
55bac2a1cb Add README with installation and build instructions 2026-03-22 18:31:46 +03:00
Hakan Seven
ba587e99ec Use gh release upload instead of action for flatpak bundle 2026-03-22 18:16:11 +03:00
Hakan Seven
5a3b92831f Add contents:write permission to Flatpak release workflow 2026-03-22 17:54:38 +03:00
Hakan Seven
536ae5394c Add workflow_dispatch trigger to Flatpak release workflow 2026-03-22 17:38:24 +03:00
Hakan Seven
2b769c3055 Fix CI manifest source paths 2026-03-22 17:35:22 +03:00
Hakan Seven
95d4a2d7c3 Add Flatpak release workflow and CI manifest 2026-03-22 17:31:06 +03:00
Hakan Seven
f52b4661d6 Fix Flathub lint errors in manifest and metainfo 2026-03-22 16:49:56 +03:00
Hakan Seven
c11b28956a fp commit 2026-03-22 15:58:13 +03:00
Hakan Seven
ff84a5e197 flatpak 2026-03-22 15:48:10 +03:00
Hakan Seven
10c40f7ca0
Add Patreon username to FUNDING.yml
Added Patreon username for funding support.
2026-03-22 15:10:36 +03:00
Hakan Seven
4e0b2087b0
Update README with project image
Add an image to the README file.
2026-03-22 14:59:08 +03:00
Hakan Seven
d2fdac7f1e first commit 2026-03-22 14:56:27 +03:00
Hakan Seven
d52c6440ff
Initial commit 2026-03-22 14:53:51 +03:00