diff --git a/CHANGELOG.md b/CHANGELOG.md index 33ec245e..7375659a 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,12 +13,17 @@ see the notices in the README. ## [Unreleased] +## [0.2.13] - 2026-11-22 + ### Fixed - CI: the self-test of `scripts/ci-changes.sh` expected a desktop UI script (`desktop/ui/js/local-changes.js`, #416) to skip the desktop Rust jobs, but the table now runs them for every desktop UI script (#448); the `changes` job of every workflow failed on `main`. +- CI: the desktop tests of *Local changes* (#416) built one-element slices + with `&[x.clone()]`, which clippy 1.100 refuses + (`cloned_ref_to_slice_refs`); they use `std::slice::from_ref` now. ### Added @@ -1638,7 +1643,8 @@ Changes since the `v0.2.0` tag. app keeps the private file and shows a warning. Server addresses with plain `http://` to another computer get a warning. -[Unreleased]: https://github.com/WARR-eV/TeamCraft/compare/v0.2.12...HEAD +[Unreleased]: https://github.com/WARR-eV/TeamCraft/compare/v0.2.13...HEAD +[0.2.13]: https://github.com/WARR-eV/TeamCraft/compare/v0.2.12...v0.2.13 [0.2.12]: https://github.com/WARR-eV/TeamCraft/compare/v0.2.11...v0.2.12 [0.2.11]: https://github.com/WARR-eV/TeamCraft/compare/v0.2.10...v0.2.11 [0.2.10]: https://github.com/WARR-eV/TeamCraft/compare/v0.2.9...v0.2.10 diff --git a/CLAUDE.md b/CLAUDE.md index d9fe2123..8f9e9b92 100755 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -266,7 +266,7 @@ plugins/solidcraft TeamCraft plugin for SolidCraft: WebAssembly component (craft * **What to work on:** `docs/OPEN_WORK.md`, section *Direction* – proofing (tests, fuzzing, CI gates) and structure (module splits, guard tests) before new features; without a request from the user, pick the next task from its sections 1 and 2. -* **Project status:** no stable release yet – only `0.x` pre-releases (`Cargo.toml` is at `0.2.12`). Keep the +* **Project status:** no stable release yet – only `0.x` pre-releases (`Cargo.toml` is at `0.2.13`). Keep the work-in-progress / no-warranty notices in the README, `docs/src/index.md`, the web footer and the desktop *About* dialog until the user asks for a stable release. diff --git a/Cargo.lock b/Cargo.lock index ad989eb6..350a8b74 100755 --- a/Cargo.lock +++ b/Cargo.lock @@ -3544,7 +3544,7 @@ dependencies = [ [[package]] name = "teamcraft" -version = "0.2.12" +version = "0.2.13" dependencies = [ "anyhow", "argon2", diff --git a/Cargo.toml b/Cargo.toml index e0e6b8ef..f27cb60b 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "teamcraft" -version = "0.2.12" +version = "0.2.13" edition = "2021" rust-version = "1.82" description = "TeamCraft – an open-source product lifecycle management (PLM) system for engineering teams" diff --git a/desktop/Cargo.lock b/desktop/Cargo.lock index e403a39c..645e9b92 100755 --- a/desktop/Cargo.lock +++ b/desktop/Cargo.lock @@ -4283,7 +4283,7 @@ dependencies = [ [[package]] name = "teamcraft-desktop" -version = "0.2.12" +version = "0.2.13" dependencies = [ "anyhow", "base64 0.22.1", diff --git a/desktop/Cargo.toml b/desktop/Cargo.toml index 7f0a865f..27db592b 100755 --- a/desktop/Cargo.toml +++ b/desktop/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "teamcraft-desktop" -version = "0.2.12" +version = "0.2.13" edition = "2021" rust-version = "1.82" description = "TeamCraft Desktop – rich client of the TeamCraft PLM for Windows, macOS and Linux" diff --git a/desktop/src/localchanges.rs b/desktop/src/localchanges.rs index b2dfc178..208a57e5 100755 --- a/desktop/src/localchanges.rs +++ b/desktop/src/localchanges.rs @@ -590,7 +590,11 @@ mod tests { #[test] fn modified_without_checkout_from_the_local_pass() { let e = entry("PRT-1", "A", "bracket.prt", false); - let out = run(&[e.clone()], &[(&e, disk(true, true, true))], &[]); + let out = run( + std::slice::from_ref(&e), + &[(&e, disk(true, true, true))], + &[], + ); assert_eq!(out.len(), 1); let f = &out[0].files[0]; assert_eq!(f.state, "modified"); @@ -602,7 +606,11 @@ mod tests { #[test] fn modified_in_my_checkout_needs_no_checkout() { let e = entry("PRT-1", "A", "bracket.prt", true); - let out = run(&[e.clone()], &[(&e, disk(true, true, true))], &[]); + let out = run( + std::slice::from_ref(&e), + &[(&e, disk(true, true, true))], + &[], + ); assert!(!out[0].files[0].without_checkout); assert!(out[0].checked_out); } @@ -664,7 +672,11 @@ mod tests { server_file(&a, "clash", None), ], }; - let out = run(&[a.clone()], &[(&a, disk(true, false, true))], &[(&a, s)]); + let out = run( + std::slice::from_ref(&a), + &[(&a, disk(true, false, true))], + &[(&a, s)], + ); assert!(out.is_empty()); } @@ -726,8 +738,11 @@ mod tests { let d: HashMap = [(layout::key_of(&e.path), unknown.clone())] .into_iter() .collect(); - assert_eq!(server_order(&[e.clone()], &d), vec![(key(&e), 0)]); - let out = run(&[e.clone()], &[(&e, unknown)], &[]); + assert_eq!( + server_order(std::slice::from_ref(&e), &d), + vec![(key(&e), 0)] + ); + let out = run(std::slice::from_ref(&e), &[(&e, unknown)], &[]); assert!(out.is_empty(), "not modified, no check-out offered"); } diff --git a/desktop/tauri.conf.json b/desktop/tauri.conf.json index 321770c9..87cf00b5 100755 --- a/desktop/tauri.conf.json +++ b/desktop/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "TeamCraft", - "version": "0.2.12", + "version": "0.2.13", "identifier": "io.github.rudalabs.teamcraft", "build": { "frontendDist": "ui" diff --git a/docs/src/admin/upgrade.md b/docs/src/admin/upgrade.md index bbbe25d1..383d3ed5 100755 --- a/docs/src/admin/upgrade.md +++ b/docs/src/admin/upgrade.md @@ -166,6 +166,7 @@ last row `main` lists what is not released yet, when there is any): | v0.2.9 → v0.2.10 | 0073 – 0074 | 0073 composes decomposed (Unicode NFD) file, folder, reference and item names to NFC – names change only in their encoding, nothing is removed; a version that lists a reference in both forms keeps one row. 0074 adds `projects.default_cad` and `projects.default_cad_version` (default empty = no default CAD program). | | v0.2.10 → v0.2.11 | 0075 – 0076 | 0075 adds `items.folder` (default empty = the top of the project group, what every existing item had): the folder of an item, where file-less items are listed and new files without a folder go. 0076 adds `upload_sessions.refuse_clash` and `upload_sessions.refuse_same_name` (default false = no guard, what every existing session gets): the duplicate guard of chunked uploads. | | v0.2.11 → v0.2.12 | 0077 | 0077 adds `usage_reports` (anonymous daily counts of the desktop apps, #383). Security fixes that change behaviour: **client address** – `X-Forwarded-For` is read only from `TEAMCRAFT_TRUSTED_PROXIES` (default loopback); a proxy on another computer must be listed, or every user seems to come from the proxy (one sign-in counter for all). The Docker install writes the value into `.env` when `install.sh` runs again. **Single sign-on** – the issuer and the provider's endpoints must be `https://` (plain HTTP only on loopback; the server refuses to start with an `http://` issuer), and ID tokens must carry a valid signature from the provider's `jwks_uri`, which the server must be able to reach. **Malware scan** – with `TEAMCRAFT_CLAMD_ADDR`, files above `TEAMCRAFT_CLAMD_MAX_MB` are refused (413); `TEAMCRAFT_CLAMD_OVERSIZE=store` keeps the old behaviour. | +| v0.2.12 → v0.2.13 | 0078 | 0078 adds `file_versions.properties` (JSONB, default `{}` = no properties, what every existing version gets): the properties read from a file version – for SolidCraft designs the known text keys of their metadata (#367). | An older published release first needs the steps of the releases between: a database of the **first v0.1.0 tag** (0001 – 0014, 0016 – 0020, 0022) gets diff --git a/docs/theme/doxygen.js b/docs/theme/doxygen.js index a4314286..ec49e0a9 100755 --- a/docs/theme/doxygen.js +++ b/docs/theme/doxygen.js @@ -5,7 +5,7 @@ "use strict"; var root = typeof path_to_root === "string" ? path_to_root : ""; // the version in the title and footer: bumped with Cargo.toml (release checklist) - var version = "0.2.12"; + var version = "0.2.13"; var tabs = [ { label: "Main Page", href: "index.html", match: /\/TeamCraft\/(index\.html)?$|^\/(index\.html)?$/ }, { label: "User Guide", href: "guide/getting-started.html", match: /\/guide\// },