diff --git a/.claude/settings.local.json b/.claude/settings.local.json index bb9c89bc..5d953e0c 100755 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -28,7 +28,9 @@ "Bash(git diff *)", "Bash(git log *)", "Bash(git show *)", - "Bash(git checkout *)" + "Bash(git checkout *)", + "Bash(docker ps *)", + "Bash(docker inspect *)" ], "deny": [ "Bash(sudo *)", diff --git a/CHANGELOG.md b/CHANGELOG.md index afbb8511..d1b8a782 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -182,6 +182,12 @@ see the notices in the README. ### Fixed +- **Selected text is visible in every skin**, in the desktop app and on the + web: a selection now takes the skin's primary colour with its text colour. + It used the background of selected rows before, which in the dark skins is + barely lighter than a text field – in the CachyOS skin, Ctrl+A in the + server address of *Switch server…* selected the text but showed nothing. + One rule in `shared/css/components.css` instead of one per app. - **`url` 2.5.9 (RUSTSEC-2026-0592)**: `url` 2.5.8 overflowed the stack in `Url::origin()` on nested `blob:` URLs; `cargo deny` refuses it. Server and desktop lockfiles now take `url` 2.5.9 and the `form_urlencoded` 1.2.3 it diff --git a/deploy/desktop-policies/README.md b/deploy/desktop-policies/README.md old mode 100644 new mode 100755 diff --git a/deploy/desktop-policies/linux/policies.json b/deploy/desktop-policies/linux/policies.json old mode 100644 new mode 100755 diff --git a/deploy/desktop-policies/macos/teamcraft-policies.mobileconfig b/deploy/desktop-policies/macos/teamcraft-policies.mobileconfig old mode 100644 new mode 100755 diff --git a/deploy/desktop-policies/windows/TeamCraft.admx b/deploy/desktop-policies/windows/TeamCraft.admx old mode 100644 new mode 100755 diff --git a/deploy/desktop-policies/windows/en-US/TeamCraft.adml b/deploy/desktop-policies/windows/en-US/TeamCraft.adml old mode 100644 new mode 100755 diff --git a/desktop/src/cadlock.rs b/desktop/src/cadlock.rs old mode 100644 new mode 100755 diff --git a/desktop/src/newfiles.rs b/desktop/src/newfiles.rs old mode 100644 new mode 100755 diff --git a/desktop/src/policy.rs b/desktop/src/policy.rs old mode 100644 new mode 100755 diff --git a/desktop/src/report.rs b/desktop/src/report.rs old mode 100644 new mode 100755 diff --git a/desktop/src/scbridge.rs b/desktop/src/scbridge.rs old mode 100644 new mode 100755 diff --git a/desktop/src/scprops.rs b/desktop/src/scprops.rs old mode 100644 new mode 100755 diff --git a/desktop/src/usage.rs b/desktop/src/usage.rs old mode 100644 new mode 100755 diff --git a/desktop/ui/app.css b/desktop/ui/app.css index 65d98f4e..2ceede43 100755 --- a/desktop/ui/app.css +++ b/desktop/ui/app.css @@ -23,7 +23,6 @@ html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; } body { background: var(--bg); color: var(--text); } .hidden { display: none !important; } -::selection { background: var(--selected); color: var(--text); } /* Distro skins paint their glow and texture here, behind the page; the house skins set both to none. Nothing else reads --glow or --pattern. */ diff --git a/desktop/ui/js/browser.js b/desktop/ui/js/browser.js old mode 100644 new mode 100755 diff --git a/desktop/ui/js/item-menu-rules.js b/desktop/ui/js/item-menu-rules.js old mode 100644 new mode 100755 diff --git a/desktop/ui/js/item-menu.js b/desktop/ui/js/item-menu.js old mode 100644 new mode 100755 diff --git a/desktop/ui/js/lock-layout.js b/desktop/ui/js/lock-layout.js old mode 100644 new mode 100755 diff --git a/desktop/ui/js/lock-overview.js b/desktop/ui/js/lock-overview.js old mode 100644 new mode 100755 diff --git a/desktop/ui/js/new-files.js b/desktop/ui/js/new-files.js old mode 100644 new mode 100755 diff --git a/desktop/ui/js/report.js b/desktop/ui/js/report.js old mode 100644 new mode 100755 diff --git a/desktop/ui/js/solidcraft-bridge.js b/desktop/ui/js/solidcraft-bridge.js old mode 100644 new mode 100755 diff --git a/docs/src/admin/desktop-deployment.md b/docs/src/admin/desktop-deployment.md old mode 100644 new mode 100755 diff --git a/docs/src/admin/privacy.md b/docs/src/admin/privacy.md old mode 100644 new mode 100755 diff --git a/docs/src/guide/glossary.md b/docs/src/guide/glossary.md old mode 100644 new mode 100755 diff --git a/docs/src/research/extension-layer.md b/docs/src/research/extension-layer.md old mode 100644 new mode 100755 diff --git a/docs/src/research/solidcraft-3d-preview.md b/docs/src/research/solidcraft-3d-preview.md old mode 100644 new mode 100755 diff --git a/docs/src/research/solidcraft-bridge.md b/docs/src/research/solidcraft-bridge.md old mode 100644 new mode 100755 diff --git a/docs/src/research/solidcraft-design.md b/docs/src/research/solidcraft-design.md old mode 100644 new mode 100755 diff --git a/docs/src/research/translated-ui.md b/docs/src/research/translated-ui.md old mode 100644 new mode 100755 diff --git a/fuzz/fuzz_targets/scdesign.rs b/fuzz/fuzz_targets/scdesign.rs old mode 100644 new mode 100755 diff --git a/fuzz/seeds/bomtable/solidcraft-bom.csv b/fuzz/seeds/bomtable/solidcraft-bom.csv old mode 100644 new mode 100755 diff --git a/fuzz/seeds/scdesign/assembly.sc b/fuzz/seeds/scdesign/assembly.sc old mode 100644 new mode 100755 diff --git a/migrations/0075_item_folder.sql b/migrations/0075_item_folder.sql old mode 100644 new mode 100755 diff --git a/migrations/0076_upload_session_clash_guard.sql b/migrations/0076_upload_session_clash_guard.sql old mode 100644 new mode 100755 diff --git a/migrations/0077_usage_statistics.sql b/migrations/0077_usage_statistics.sql old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/Cargo.lock b/plugins/solidcraft/Cargo.lock old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/Cargo.toml b/plugins/solidcraft/Cargo.toml old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/README.md b/plugins/solidcraft/README.md old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/plugin.json b/plugins/solidcraft/plugin.json old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/src/bridge.rs b/plugins/solidcraft/src/bridge.rs old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/src/lib.rs b/plugins/solidcraft/src/lib.rs old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/src/logic.rs b/plugins/solidcraft/src/logic.rs old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/tests/bridge-fresh/desktop.json b/plugins/solidcraft/tests/bridge-fresh/desktop.json old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/tests/bridge-fresh/state-PRT_2D000042.A.json b/plugins/solidcraft/tests/bridge-fresh/state-PRT_2D000042.A.json old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/tests/bridge-pending/request-PRT_2D000042.A.check_in.json b/plugins/solidcraft/tests/bridge-pending/request-PRT_2D000042.A.check_in.json old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/tests/check-assembly-part.json b/plugins/solidcraft/tests/check-assembly-part.json old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/tests/check-in-request.json b/plugins/solidcraft/tests/check-in-request.json old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/tests/check-linked.json b/plugins/solidcraft/tests/check-linked.json old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/tests/check-out-request.json b/plugins/solidcraft/tests/check-out-request.json old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/tests/link-refuses-empty-number.json b/plugins/solidcraft/tests/link-refuses-empty-number.json old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/tests/link.json b/plugins/solidcraft/tests/link.json old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/tests/linked.sc b/plugins/solidcraft/tests/linked.sc old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/tests/live-desktop-not-running.json b/plugins/solidcraft/tests/live-desktop-not-running.json old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/tests/live-fresh.json b/plugins/solidcraft/tests/live-fresh.json old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/tests/live-not-linked.json b/plugins/solidcraft/tests/live-not-linked.json old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/tests/live-pending-request.json b/plugins/solidcraft/tests/live-pending-request.json old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/tests/live-without-folder.json b/plugins/solidcraft/tests/live-without-folder.json old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/tests/open-not-linked.json b/plugins/solidcraft/tests/open-not-linked.json old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/tests/open-request.json b/plugins/solidcraft/tests/open-request.json old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/tests/status-linked.json b/plugins/solidcraft/tests/status-linked.json old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/tests/status-unlinked.json b/plugins/solidcraft/tests/status-unlinked.json old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/tests/unlink.json b/plugins/solidcraft/tests/unlink.json old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/wit/LICENSE-MIT b/plugins/solidcraft/wit/LICENSE-MIT old mode 100644 new mode 100755 diff --git a/plugins/solidcraft/wit/plugin.wit b/plugins/solidcraft/wit/plugin.wit old mode 100644 new mode 100755 diff --git a/scripts/desktop-files-view.test.mjs b/scripts/desktop-files-view.test.mjs old mode 100644 new mode 100755 diff --git a/scripts/desktop-item-menu.test.mjs b/scripts/desktop-item-menu.test.mjs old mode 100644 new mode 100755 diff --git a/scripts/desktop-lock-layout.test.mjs b/scripts/desktop-lock-layout.test.mjs old mode 100644 new mode 100755 diff --git a/scripts/desktop-new-files.test.mjs b/scripts/desktop-new-files.test.mjs old mode 100644 new mode 100755 diff --git a/scripts/shared-i18n.test.mjs b/scripts/shared-i18n.test.mjs old mode 100644 new mode 100755 diff --git a/shared/README.md b/shared/README.md index 16eb4bbe..ff447052 100755 --- a/shared/README.md +++ b/shared/README.md @@ -8,7 +8,7 @@ research page *Sharing UI code between the web UI and the desktop app* ```text css/skins.css design tokens and skins (colours, radii, spacing, density, fonts) css/assistant.css the "Ask TeamCraft" panel (a drawer on the web, inline in the desktop's Agent tab) -css/components.css small components of both apps (the help tip "?" next to a term, #414) +css/components.css small components of both apps (the help tip "?" next to a term, #414; the colour of selected text) fonts/ Montserrat, Oswald (variable WOFF2) and their SIL OFL texts js/viewer.js 3D preview (WebGL2, TCMESH01), still a classic script js/assistant.js "Ask TeamCraft" sidebar: ES module, mount(host, {api, getContext, link, …}) – no fetch, no invoke diff --git a/shared/css/components.css b/shared/css/components.css old mode 100644 new mode 100755 index cbd9cd14..8337ef83 --- a/shared/css/components.css +++ b/shared/css/components.css @@ -2,6 +2,15 @@ /* Small components of both apps (shared/README.md, rule 10): a class styled * here is styled nowhere else. Tokens only – the colours come from skins.css. */ +/* Selected text, in both apps and every skin: the primary colour with its + * text colour, as the OS shows a selection. --selected (the background of a + * selected row) was used before, but in the dark skins it is barely lighter + * than --input-bg (CachyOS: #003b33 on #000e0e), so text selected in a field + * – Ctrl+A in the server address – looked unselected. The contrast test + * (src/domain/mod.rs, skins_meet_contrast) checks --on-primary on --primary + * in every skin. */ +::selection { background: var(--primary); color: var(--on-primary); } + /* "?" next to a term (issue 414) – web: templates/macros.html `help`, desktop: * js/revision.js `helpTip`. The text is the accessible name and the tooltip, * shown on hover and on keyboard focus. */ diff --git a/shared/i18n/de.json b/shared/i18n/de.json old mode 100644 new mode 100755 diff --git a/shared/i18n/en.json b/shared/i18n/en.json old mode 100644 new mode 100755 diff --git a/shared/js/i18n.js b/shared/js/i18n.js old mode 100644 new mode 100755 diff --git a/src/i18n.rs b/src/i18n.rs old mode 100644 new mode 100755 diff --git a/src/scbom.rs b/src/scbom.rs old mode 100644 new mode 100755 diff --git a/src/scdesign.rs b/src/scdesign.rs old mode 100644 new mode 100755 diff --git a/src/services/file_check.rs b/src/services/file_check.rs old mode 100644 new mode 100755 diff --git a/src/services/lock_overview.rs b/src/services/lock_overview.rs old mode 100644 new mode 100755 diff --git a/src/services/usage.rs b/src/services/usage.rs old mode 100644 new mode 100755 diff --git a/src/web/usage.rs b/src/web/usage.rs old mode 100644 new mode 100755 diff --git a/static/style.css b/static/style.css index cd80b340..05e4cbaa 100755 --- a/static/style.css +++ b/static/style.css @@ -81,7 +81,6 @@ a.mono, td.mono > a, .id { /* inside containers that clip (scrolling nav, ellipsis cells) the ring sits inside */ .nav a:focus-visible, .nav-admin > summary:focus-visible, .titleblock dd a:focus-visible, .impact-source a:focus-visible, td.ellipsis a:focus-visible, .explorer-tree a:focus-visible { outline-offset: -2px; } -::selection { background: var(--selected); color: var(--text); } kbd { display: inline-flex; diff --git a/templates/admin/usage.html b/templates/admin/usage.html old mode 100644 new mode 100755 diff --git a/templates/projects/checkouts.html b/templates/projects/checkouts.html old mode 100644 new mode 100755 diff --git a/tests/file_check.rs b/tests/file_check.rs old mode 100644 new mode 100755 diff --git a/tests/lock_overview.rs b/tests/lock_overview.rs old mode 100644 new mode 100755