Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,25 @@ The format is based on Keep a Changelog, and this project follows semantic versi
- Documented required docs correction scope for `lockDegrees`, `patternNumber`, and coverage-vs-ply-count semantics, including clarification that feed-rate clamping in planner math is planned, not currently implemented.
- Documented required example updates for compatibility: `examples/rocketry/AvBay(470mm).wind` layer 1 and `examples/rocketry/MainChute(585mm).wind` layer 1 should use `lockDegrees=540` instead of `270`.

## [0.6.2] - 2026-04-07

### Added

- Added stream-domain action hooks (`useConnectionActions`, `useStreamingActions`, `useManualCommandActions`) and consolidated stream feedback helpers for consistent toast/log behavior.
- Added focused integration coverage for stream lifecycle transitions in `streamLifecycle.test.ts`.
- Added shared React UI primitives/utilities including `LayerNumericField`, `numericFields`, `helicalValidation`, `usePreviewGeneration`, and `BaseDialog`.

### Changed

- Completed the v0.6.2 React hotspot cleanup roadmap (Waves A-D), including StreamTab domain decomposition, menu/file orchestration cleanup, and canvas/editor component simplification.
- Standardized store boundaries by moving `projectStore` into `src/stores` and removing StreamTab wrapper path indirection.
- Updated release-facing docs to reflect v0.6.2 as the current release.

### Fixed

- Removed remaining imperative `alert(...)` UI fallback paths in favor of app-level notifications.
- Eliminated final inline-style residue in streaming UI components to keep styling maintainable and class-driven.

## [0.6.1] - 2026-04-07

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

**Plan, simulate, and manufacture composite parts with precision fiber winding.**

[![Version](https://img.shields.io/badge/version-0.6.1-4c7284)](https://github.com/CameronBrooks11/fiberpath/releases)
[![Version](https://img.shields.io/badge/version-0.6.2-4c7284)](https://github.com/CameronBrooks11/fiberpath/releases)
[![License: AGPL-3.0](https://img.shields.io/badge/License-AGPL--3.0-00695C.svg)](LICENSE)
[![Backend CI](https://img.shields.io/github/actions/workflow/status/CameronBrooks11/fiberpath/backend-ci.yml?branch=main&label=Backend%20CI&logo=python&logoColor=white)](https://github.com/CameronBrooks11/fiberpath/actions/workflows/backend-ci.yml)
[![GUI CI](https://img.shields.io/github/actions/workflow/status/CameronBrooks11/fiberpath/gui-ci.yml?branch=main&label=GUI%20CI&logo=react&logoColor=white)](https://github.com/CameronBrooks11/fiberpath/actions/workflows/gui-ci.yml)
Expand Down
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ Tasks for Cam todo:

- [ ] Fix zooming behavior in the plot viewer so it expands the entire image not within the image bounds since this becomes an issue for larger (exceeds bounds) or smaller (impossible to look at properly) images

- [ ] Track Dependabot moderate alert #3 (GHSA-wrw7-89jp-8q8g / glib). Current Tauri GTK stack pins `glib` 0.18.x (`^0.18` via `gtk`), so patched `glib` 0.20.0 cannot be adopted yet. Do not cut v0.6.1 solely for this; re-check after upstream Tauri/GTK dependency line moves to non-vulnerable glib.
- [ ] Track Dependabot moderate alert #3 (GHSA-wrw7-89jp-8q8g / glib). Current Tauri GTK stack pins `glib` 0.18.x (`^0.18` via `gtk`), so patched `glib` 0.20.0 cannot be adopted yet. Do not cut v0.6.2 solely for this; re-check after upstream Tauri/GTK dependency line moves to non-vulnerable glib.

- [ ] Manual cross-platform validation (waived for v0.6.0, required before v1.0 or first public release): Linux `.deb`/`.AppImage` (Ubuntu 22.04, Debian 12, Fedora 39) and macOS `.dmg` (Intel + Apple Silicon) install, bundled CLI discovery, full workflow (validate → plan → simulate → visualize), serial port, file ops, upgrade, and uninstall. See `planning/roadmap-v6.md` Phases 1 & 2 for the full checklist.
2 changes: 1 addition & 1 deletion docs/development/dependency-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Applies to:

- Patch updates: monthly
- Minor updates: quarterly review window
- Major updates: dedicated release slot (for example, a migration-focused release like v0.6.1 or similar)
- Major updates: dedicated release slot (for example, a migration-focused release like v0.6.2 or similar)

## Ownership

Expand Down
2 changes: 1 addition & 1 deletion docs/development/packaging.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ GitHub Actions workflow (`.github/workflows/gui-packaging.yml`) handles full pro
## Future Enhancements

- **Code signing:** macOS (`developer-id`) and Windows (`signtool` + certificate) when credentials available
- **Auto-updates:** Tauri updater for in-app version checks and downloads (planned post-v0.6.1)
- **Auto-updates:** Tauri updater for in-app version checks and downloads (planned post-v0.6.2)
- **Bundle optimization:** Reduce frozen CLI size through dependency analysis
- **Universal macOS binaries:** Single `.dmg` supporting both Intel and Apple Silicon (currently separate builds)

Expand Down
16 changes: 8 additions & 8 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,26 @@ hide:

---

**Latest Release:** [v0.6.1](https://github.com/CameronBrooks11/fiberpath/releases/latest){ target=_blank }
**Latest Release:** [v0.6.2](https://github.com/CameronBrooks11/fiberpath/releases/latest){ target=_blank }

- **Desktop GUI** – Windows, macOS, Linux installers (no Python required)
- **Python Package** – `pip install fiberpath`
- **Source** – Clone and build from GitHub

[:octicons-arrow-right-24: Installation Guide](getting-started.md)

- :material-new-box:{ .lg .middle } **What's New in v0.6.1**
- :material-new-box:{ .lg .middle } **What's New in v0.6.2**

---

GUI styling simplification and release lock-in:
React hotspot cleanup and architectural hardening:

- Consolidated styling around token-first primitives for cleaner, more maintainable UI CSS
- Added stable light/dark theme architecture with system preference fallback and persisted user override
- Removed dead GUI dependencies and aligned styling documentation to actual implementation
- Added automated `useTheme` behavior tests and completed final GUI quality gates (`check:all` + `test`)
- Decomposed stream controls into dedicated action hooks with centralized toast/log policy
- Unified file/menu orchestration through `useFileOperations` and typed menu configuration
- Extracted shared editor/canvas/dialog primitives to reduce component responsibility density
- Removed remaining store/import drift and imperative UI fallback paths

Builds on the v0.6.0 packaging and validation hardening baseline.
Builds on the v0.6.1 styling simplification baseline.

[:octicons-arrow-right-24: Marlin Streaming Guide](guides/marlin-streaming.md)

Expand Down
6 changes: 3 additions & 3 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ sudo apt update
sudo apt install -f # Fix broken dependencies
sudo apt install libwebkit2gtk-4.1-0 libappindicator3-1
# Then retry
sudo dpkg -i fiberpath_0.6.1_amd64.deb
sudo dpkg -i fiberpath_0.6.2_amd64.deb
```

### AppImage Won't Run (Linux)
Expand All @@ -63,8 +63,8 @@ sudo dpkg -i fiberpath_0.6.1_amd64.deb
**Solution:**

```sh
chmod +x fiberpath_0.6.1_amd64.AppImage
./fiberpath_0.6.1_amd64.AppImage
chmod +x fiberpath_0.6.2_amd64.AppImage
./fiberpath_0.6.2_amd64.AppImage
```

**FUSE Requirement:** Some older Linux systems require FUSE for AppImage:
Expand Down
2 changes: 1 addition & 1 deletion fiberpath_gui/docs/architecture/state-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ interface FiberPathProject {

## Store Creation

### Definition (`src/state/projectStore.ts`)
### Definition (`src/stores/projectStore.ts`)

```typescript
import { create } from "zustand";
Expand Down
4 changes: 2 additions & 2 deletions fiberpath_gui/docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ src/
├── lib/
│ ├── schemas.test.ts # 43 tests - Zod schema validation
│ └── validation.test.ts # JSON schema validation (AJV)
├── state/
├── stores/
│ └── projectStore.test.ts # Zustand store actions
├── types/
│ └── converters.test.ts # Type conversion utilities
Expand Down Expand Up @@ -272,7 +272,7 @@ it('should display error message on validation failure', () => {

- Schema validation (`src/lib/schemas.ts`)
- Error handling (`src/lib/validation.ts`)
- State management (`src/state/projectStore.ts`)
- State management (`src/stores/projectStore.ts`)

### Lower Priority (50%+ acceptable)

Expand Down
4 changes: 2 additions & 2 deletions fiberpath_gui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion fiberpath_gui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fiberpath-gui",
"version": "0.6.1",
"version": "0.6.2",
"private": true,
"type": "module",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion fiberpath_gui/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion fiberpath_gui/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fiberpath_gui"
version = "0.6.1"
version = "0.6.2"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion fiberpath_gui/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"frontendDist": "../dist"
},
"productName": "FiberPath GUI",
"version": "0.6.1",
"version": "0.6.2",
"identifier": "com.fiberpath.desktop",
"bundle": {
"active": true,
Expand Down
57 changes: 5 additions & 52 deletions fiberpath_gui/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { FormEvent, useState, useEffect, useMemo } from "react";
import { useState, useEffect } from "react";
import { useShallow } from "zustand/react/shallow";

import { MainLayout } from "./layouts/MainLayout";
import { TabBar, TabId } from "./components/TabBar";
import { MainTab } from "./components/tabs/MainTab";
import { StreamTab } from "./components/tabs/StreamTab";
import { StreamTab } from "./components/StreamTab/StreamTab";
import { MenuBar } from "./components/MenuBar";
import { StatusBar } from "./components/StatusBar";
import { CliHealthWarning } from "./components/CliHealthWarning";
Expand All @@ -22,12 +22,9 @@ import { HoopLayerEditor } from "./components/editors/HoopLayerEditor";
import { HelicalLayerEditor } from "./components/editors/HelicalLayerEditor";
import { SkipLayerEditor } from "./components/editors/SkipLayerEditor";
import { ExportConfirmationDialog } from "./components/dialogs/ExportConfirmationDialog";
import { useProjectStore } from "./state/projectStore";
import { useErrorNotification } from "./contexts/ErrorNotificationContext";
import { useCliHealthContext } from "./contexts/CliHealthContext";
import { createFileOperations } from "./lib/fileOperations";
import { useProjectStore } from "./stores/projectStore";
import { useFileOperations } from "./hooks/useFileOperations";
import { useKeyboardShortcuts } from "./hooks/useKeyboardShortcuts";
import { getRecentFiles } from "./lib/recentFiles";

export default function App() {
// Tab state
Expand All @@ -38,29 +35,14 @@ export default function App() {
project,
activeLayerId,
layers,
newProject,
loadProject,
setFilePath,
clearDirty,
duplicateLayer,
removeLayer,
} = useProjectStore(
useShallow((state) => ({
project: state.project,
activeLayerId: state.project.activeLayerId,
layers: state.project.layers,
newProject: state.newProject,
loadProject: state.loadProject,
setFilePath: state.setFilePath,
clearDirty: state.clearDirty,
duplicateLayer: state.duplicateLayer,
removeLayer: state.removeLayer,
})),
);

// Error notifications
const { showError, showInfo } = useErrorNotification();

// Find active layer
const activeLayer = activeLayerId
? layers.find((l) => l.id === activeLayerId)
Expand All @@ -71,36 +53,7 @@ export default function App() {
const [rightPanelCollapsed, setRightPanelCollapsed] = useState(false);
const [showExportDialog, setShowExportDialog] = useState(false);

// Create file operations handlers (memoized to prevent recreation on every render)
const fileOps = useMemo(
() =>
createFileOperations({
getProject: () => useProjectStore.getState().project,
newProject,
loadProject,
setFilePath,
clearDirty,
getActiveLayerId: () =>
useProjectStore.getState().project.activeLayerId,
duplicateLayer,
removeLayer,
showError,
showInfo,
updateRecentFiles: () => {
getRecentFiles();
},
}),
[
newProject,
loadProject,
setFilePath,
clearDirty,
duplicateLayer,
removeLayer,
showError,
showInfo,
],
);
const fileOps = useFileOperations();

// Wire up keyboard shortcuts
useKeyboardShortcuts({
Expand Down
Loading
Loading