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
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion 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 Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion desktop/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 desktop/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
25 changes: 20 additions & 5 deletions desktop/src/localchanges.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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);
}
Expand Down Expand Up @@ -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());
}

Expand Down Expand Up @@ -726,8 +738,11 @@ mod tests {
let d: HashMap<String, Disk> = [(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");
}

Expand Down
2 changes: 1 addition & 1 deletion desktop/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
1 change: 1 addition & 0 deletions docs/src/admin/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/theme/doxygen.js
Original file line number Diff line number Diff line change
Expand Up @@ -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\// },
Expand Down
2 changes: 1 addition & 1 deletion src/services/thumbnails.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub fn rank(format: &str) -> Option<u8> {
/// The file whose picture stands for a revision: the best [`rank`], the
/// first by name (case-insensitive) on a tie. `key` gives a file's stored
/// format id and its name.
pub fn pick_main<'a, T>(files: &'a [T], key: impl Fn(&T) -> (&str, &str)) -> Option<&'a T> {
pub fn pick_main<T>(files: &[T], key: impl Fn(&T) -> (&str, &str)) -> Option<&T> {
files
.iter()
.filter_map(|f| {
Expand Down
Loading