diff --git a/.agents/skills/make-a-plan/SKILL.md b/.agents/skills/make-a-plan/SKILL.md index 7a46cd9261..77426f692c 100644 --- a/.agents/skills/make-a-plan/SKILL.md +++ b/.agents/skills/make-a-plan/SKILL.md @@ -23,7 +23,10 @@ stop — this skill needs the build agent to save the plan. in place. Once the plan has been implemented and reviewed (post `@review-code` findings on committed work), write a new derived plan file instead — never rewrite the executed plan. The `planner` skill - defines the derived naming (`--review-NN`, `--task-NN`). + defines the derived naming (`--review-NN`, `--task-NN`). For another + review round on the same implemented work, create the next `--review-NN` + sibling from the original plan; never append another review suffix to a + review-derived plan. - The user says to apply additional review feedback to a still-unimplemented plan: apply the agreed changes, flip `Status` to `reviewed`, and append one UTC ISO 8601 line to `Review Log`. `review-plan` can also update the plan diff --git a/.agents/skills/planner/SKILL.md b/.agents/skills/planner/SKILL.md index 7874bbccfd..527e8350f6 100644 --- a/.agents/skills/planner/SKILL.md +++ b/.agents/skills/planner/SKILL.md @@ -171,16 +171,20 @@ Valid names match: ``` - `review-NN` — a new plan addressing findings of a `review-code` or - `review-plan` on already-implemented work. `NN` counts reviews of - that parent from `01`. Example: parent + `review-plan` on already-implemented work. `NN` counts review rounds of + the same implemented work from `01`. Every round is a sibling derived + from the original plan, never from a `--review-NN` plan. Example: `2026-09-14-paste-before-init-crash.md` → `2026-09-14-paste-before-init-crash--review-01.md`, - then `--review-02.md`. + then `2026-09-14-paste-before-init-crash--review-02.md`, not + `...--review-01--review-01.md`. - `task-NN-` — sub-plan for task `NN` of a high-level roadmap plan. `NN` is the roadmap task number. Example: parent `2026-09-20-upload-pipeline-roadmap.md` → `2026-09-20-upload-pipeline-roadmap--task-01-chunk-upload.md`. - Levels chain: `...--task-02-gc--review-01.md`. +Task plans may have a review suffix: `...--task-02-gc--review-01.md`. +Further review rounds remain siblings of that first review plan: +`...--task-02-gc--review-02.md`. Never use `v2`, `final`, `new`, or `fix2` as suffixes. Keep the optional short slug to 3-4 lowercase hyphen-separated words. diff --git a/.agents/skills/review-code/SKILL.md b/.agents/skills/review-code/SKILL.md index bbb5f745a6..7fb2ac93d2 100644 --- a/.agents/skills/review-code/SKILL.md +++ b/.agents/skills/review-code/SKILL.md @@ -53,6 +53,17 @@ Act as a senior software engineer and perform a thorough code review. - **Stop:** end the review without edits. Any direct correction belongs to a separate task after the review. +### Do not review a review + +Review code changes, not a review report, findings, or a plan derived from +findings. To verify corrections, follow the procedure below and resume the +original reviewer against the corrected code and the original findings. If the +original reviewer cannot be resumed, delegate verification of those corrections +with the original review context; do not start a fresh review of the review +report. If the user requests another review round after fixes, review the new +code changes and keep any resulting plan as the next sibling review round of +the original plan, not as a child of the previous review plan. + ### Follow-up after implementation When the user agrees to verify corrections, resume the original reviewer using diff --git a/backend/src/app/health.clj b/backend/src/app/health.clj index aa414a6348..0c6ce16230 100644 --- a/backend/src/app/health.clj +++ b/backend/src/app/health.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns app.health "Instance availability state. diff --git a/backend/src/app/jobs.clj b/backend/src/app/jobs.clj index 99e5877dcf..1ecfea430f 100644 --- a/backend/src/app/jobs.clj +++ b/backend/src/app/jobs.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns app.jobs "Public API for the unified jobs substrate. diff --git a/backend/src/app/jobs/gc.clj b/backend/src/app/jobs/gc.clj index 04a89a6400..d83797b549 100644 --- a/backend/src/app/jobs/gc.clj +++ b/backend/src/app/jobs/gc.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns app.jobs.gc "A maintenance cron task for the unified `job` table: diff --git a/backend/src/app/loggers/metrics.clj b/backend/src/app/loggers/metrics.clj index 07c97debd1..b93325279b 100644 --- a/backend/src/app/loggers/metrics.clj +++ b/backend/src/app/loggers/metrics.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns app.loggers.metrics "A reporter that counts the log records of this application, by logger and diff --git a/backend/src/app/rpc/management/jobs.clj b/backend/src/app/rpc/management/jobs.clj index 3fd79ff3d0..8ec265a5c9 100644 --- a/backend/src/app/rpc/management/jobs.clj +++ b/backend/src/app/rpc/management/jobs.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns app.rpc.management.jobs "Generic job management API for external workers (media and future diff --git a/backend/src/app/scripts/decode_file_data.clj b/backend/src/app/scripts/decode_file_data.clj index a732a34fc1..a03cd178af 100644 --- a/backend/src/app/scripts/decode_file_data.clj +++ b/backend/src/app/scripts/decode_file_data.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns app.scripts.decode-file-data "Decode a file's `file_data` binary blob to `jq`-readable JSON. diff --git a/backend/test/backend_tests/auth_login_lockout_test.clj b/backend/test/backend_tests/auth_login_lockout_test.clj index c1d0961e47..90179e207f 100644 --- a/backend/test/backend_tests/auth_login_lockout_test.clj +++ b/backend/test/backend_tests/auth_login_lockout_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.auth-login-lockout-test (:require diff --git a/backend/test/backend_tests/binfile_svg_test.clj b/backend/test/backend_tests/binfile_svg_test.clj index 1c6f503920..3217a7afe8 100644 --- a/backend/test/backend_tests/binfile_svg_test.clj +++ b/backend/test/backend_tests/binfile_svg_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.binfile-svg-test "SVG sanitization on the binfile import path. diff --git a/backend/test/backend_tests/climit_test.clj b/backend/test/backend_tests/climit_test.clj index d65b2a500a..1a912d973c 100644 --- a/backend/test/backend_tests/climit_test.clj +++ b/backend/test/backend_tests/climit_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.climit-test (:require diff --git a/backend/test/backend_tests/fdata_resolve_test.clj b/backend/test/backend_tests/fdata_resolve_test.clj index e9d777d900..092875ce5c 100644 --- a/backend/test/backend_tests/fdata_resolve_test.clj +++ b/backend/test/backend_tests/fdata_resolve_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.fdata-resolve-test "Resolution of file data by backend (`app.features.fdata/resolve-file-data`). diff --git a/backend/test/backend_tests/file_change_retention_test.clj b/backend/test/backend_tests/file_change_retention_test.clj index 83246e9226..8d5b435247 100644 --- a/backend/test/backend_tests/file_change_retention_test.clj +++ b/backend/test/backend_tests/file_change_retention_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.file-change-retention-test "Retention of `file_change` rows through the file lifecycle. diff --git a/backend/test/backend_tests/file_change_schema_test.clj b/backend/test/backend_tests/file_change_schema_test.clj index a40871ddde..aab50ce512 100644 --- a/backend/test/backend_tests/file_change_schema_test.clj +++ b/backend/test/backend_tests/file_change_schema_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.file-change-schema-test (:require diff --git a/backend/test/backend_tests/file_data_test.clj b/backend/test/backend_tests/file_data_test.clj index ff37dda751..20d573220f 100644 --- a/backend/test/backend_tests/file_data_test.clj +++ b/backend/test/backend_tests/file_data_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.file-data-test (:require diff --git a/backend/test/backend_tests/file_gc_scheduler_test.clj b/backend/test/backend_tests/file_gc_scheduler_test.clj index a8702d44ef..be4b2c7558 100644 --- a/backend/test/backend_tests/file_gc_scheduler_test.clj +++ b/backend/test/backend_tests/file_gc_scheduler_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.file-gc-scheduler-test (:require diff --git a/backend/test/backend_tests/file_migration_read_test.clj b/backend/test/backend_tests/file_migration_read_test.clj index da5821d21f..260879b737 100644 --- a/backend/test/backend_tests/file_migration_read_test.clj +++ b/backend/test/backend_tests/file_migration_read_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.file-migration-read-test "Persisting the migrations applied on read is an optimization of the read: diff --git a/backend/test/backend_tests/files_update_validation_timing_test.clj b/backend/test/backend_tests/files_update_validation_timing_test.clj index a2477698c7..e6b735829b 100644 --- a/backend/test/backend_tests/files_update_validation_timing_test.clj +++ b/backend/test/backend_tests/files_update_validation_timing_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.files-update-validation-timing-test (:require diff --git a/backend/test/backend_tests/health_test.clj b/backend/test/backend_tests/health_test.clj index c8e0c56bcc..5e753c21a9 100644 --- a/backend/test/backend_tests/health_test.clj +++ b/backend/test/backend_tests/health_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.health-test (:require diff --git a/backend/test/backend_tests/http_websocket_test.clj b/backend/test/backend_tests/http_websocket_test.clj index 64c8b20cbb..f85e18359d 100644 --- a/backend/test/backend_tests/http_websocket_test.clj +++ b/backend/test/backend_tests/http_websocket_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.http-websocket-test (:require diff --git a/backend/test/backend_tests/import_terminal_rpc_test.clj b/backend/test/backend_tests/import_terminal_rpc_test.clj index 47d7c975f6..3d48771dcb 100644 --- a/backend/test/backend_tests/import_terminal_rpc_test.clj +++ b/backend/test/backend_tests/import_terminal_rpc_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.import-terminal-rpc-test (:require diff --git a/backend/test/backend_tests/jobs_gc_test.clj b/backend/test/backend_tests/jobs_gc_test.clj index ca4a8d170e..e775453741 100644 --- a/backend/test/backend_tests/jobs_gc_test.clj +++ b/backend/test/backend_tests/jobs_gc_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.jobs-gc-test (:require diff --git a/backend/test/backend_tests/jobs_request_test.clj b/backend/test/backend_tests/jobs_request_test.clj index 976102def1..bce698c433 100644 --- a/backend/test/backend_tests/jobs_request_test.clj +++ b/backend/test/backend_tests/jobs_request_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.jobs-request-test (:require diff --git a/backend/test/backend_tests/jobs_test.clj b/backend/test/backend_tests/jobs_test.clj index 4aea6a0adb..75eccd420f 100644 --- a/backend/test/backend_tests/jobs_test.clj +++ b/backend/test/backend_tests/jobs_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.jobs-test (:require diff --git a/backend/test/backend_tests/loggers_metrics_test.clj b/backend/test/backend_tests/loggers_metrics_test.clj index 984ad3b0f8..26d3985071 100644 --- a/backend/test/backend_tests/loggers_metrics_test.clj +++ b/backend/test/backend_tests/loggers_metrics_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.loggers-metrics-test "The reporter that turns log records into a counter." diff --git a/backend/test/backend_tests/media_validation_test.clj b/backend/test/backend_tests/media_validation_test.clj index 6dd46db4ec..6298798844 100644 --- a/backend/test/backend_tests/media_validation_test.clj +++ b/backend/test/backend_tests/media_validation_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.media-validation-test (:require diff --git a/backend/test/backend_tests/migrations_test.clj b/backend/test/backend_tests/migrations_test.clj index 393a491459..835a76a36e 100644 --- a/backend/test/backend_tests/migrations_test.clj +++ b/backend/test/backend_tests/migrations_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.migrations-test (:require diff --git a/backend/test/backend_tests/objects_gc_test.clj b/backend/test/backend_tests/objects_gc_test.clj index cd7e2a7548..1593f06921 100644 --- a/backend/test/backend_tests/objects_gc_test.clj +++ b/backend/test/backend_tests/objects_gc_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.objects-gc-test (:require diff --git a/backend/test/backend_tests/redis_test.clj b/backend/test/backend_tests/redis_test.clj index df3c8e15a8..69cc0166cc 100644 --- a/backend/test/backend_tests/redis_test.clj +++ b/backend/test/backend_tests/redis_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.redis-test "The redis wrapper swallows a command timeout and returns nil, so the log diff --git a/backend/test/backend_tests/restore_storage_objects_test.clj b/backend/test/backend_tests/restore_storage_objects_test.clj index ba19a17c67..80138fc79f 100644 --- a/backend/test/backend_tests/restore_storage_objects_test.clj +++ b/backend/test/backend_tests/restore_storage_objects_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.restore-storage-objects-test (:require diff --git a/backend/test/backend_tests/rpc_auth_override_test.clj b/backend/test/backend_tests/rpc_auth_override_test.clj index 3b6fbeeecf..2ef113f273 100644 --- a/backend/test/backend_tests/rpc_auth_override_test.clj +++ b/backend/test/backend_tests/rpc_auth_override_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.rpc-auth-override-test (:require diff --git a/backend/test/backend_tests/rpc_climit_test.clj b/backend/test/backend_tests/rpc_climit_test.clj index aa058f03d2..98bca116b2 100644 --- a/backend/test/backend_tests/rpc_climit_test.clj +++ b/backend/test/backend_tests/rpc_climit_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.rpc-climit-test (:require diff --git a/backend/test/backend_tests/rpc_file_security_test.clj b/backend/test/backend_tests/rpc_file_security_test.clj index 1ecaf3de7f..071497c5cb 100644 --- a/backend/test/backend_tests/rpc_file_security_test.clj +++ b/backend/test/backend_tests/rpc_file_security_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.rpc-file-security-test "Tests for the nexus file-security backend prerequisite: the diff --git a/backend/test/backend_tests/rpc_management_jobs_test.clj b/backend/test/backend_tests/rpc_management_jobs_test.clj index c228289528..5664e4d408 100644 --- a/backend/test/backend_tests/rpc_management_jobs_test.clj +++ b/backend/test/backend_tests/rpc_management_jobs_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.rpc-management-jobs-test (:require diff --git a/backend/test/backend_tests/rpc_test.clj b/backend/test/backend_tests/rpc_test.clj index 0be65dd983..8644c63b20 100644 --- a/backend/test/backend_tests/rpc_test.clj +++ b/backend/test/backend_tests/rpc_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.rpc-test (:require diff --git a/backend/test/backend_tests/scripts_decode_file_data_test.clj b/backend/test/backend_tests/scripts_decode_file_data_test.clj index 3a6484b4ed..21ff5c56b0 100644 --- a/backend/test/backend_tests/scripts_decode_file_data_test.clj +++ b/backend/test/backend_tests/scripts_decode_file_data_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.scripts-decode-file-data-test (:require diff --git a/backend/test/backend_tests/srepl_main_test.clj b/backend/test/backend_tests/srepl_main_test.clj index 2e313743a6..19778d5c3d 100644 --- a/backend/test/backend_tests/srepl_main_test.clj +++ b/backend/test/backend_tests/srepl_main_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.srepl-main-test (:require diff --git a/backend/test/backend_tests/storage_gc_deleted_test.clj b/backend/test/backend_tests/storage_gc_deleted_test.clj index f2924d681c..e4bcc5ef2d 100644 --- a/backend/test/backend_tests/storage_gc_deleted_test.clj +++ b/backend/test/backend_tests/storage_gc_deleted_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.storage-gc-deleted-test (:require diff --git a/backend/test/backend_tests/worker_cron_test.clj b/backend/test/backend_tests/worker_cron_test.clj index e0797ab4b0..0d03420e50 100644 --- a/backend/test/backend_tests/worker_cron_test.clj +++ b/backend/test/backend_tests/worker_cron_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.worker-cron-test (:require diff --git a/backend/test/backend_tests/worker_dispatcher_test.clj b/backend/test/backend_tests/worker_dispatcher_test.clj index 5d5180a066..2dcedea245 100644 --- a/backend/test/backend_tests/worker_dispatcher_test.clj +++ b/backend/test/backend_tests/worker_dispatcher_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.worker-dispatcher-test (:require diff --git a/backend/test/backend_tests/worker_runner_test.clj b/backend/test/backend_tests/worker_runner_test.clj index e3f540f5fd..aa9e454910 100644 --- a/backend/test/backend_tests/worker_runner_test.clj +++ b/backend/test/backend_tests/worker_runner_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.worker-runner-test (:require diff --git a/backend/test/backend_tests/worker_test.clj b/backend/test/backend_tests/worker_test.clj index 59cecd5f34..de891f8c8f 100644 --- a/backend/test/backend_tests/worker_test.clj +++ b/backend/test/backend_tests/worker_test.clj @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns backend-tests.worker-test (:require diff --git a/common/test/common_tests/logging_test.cljc b/common/test/common_tests/logging_test.cljc index 80cdd0be57..b8460952c8 100644 --- a/common/test/common_tests/logging_test.cljc +++ b/common/test/common_tests/logging_test.cljc @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns common-tests.logging-test (:require diff --git a/frontend/playwright/ui/specs/typography.spec.js b/frontend/playwright/ui/specs/typography.spec.js new file mode 100644 index 0000000000..c74129fdad --- /dev/null +++ b/frontend/playwright/ui/specs/typography.spec.js @@ -0,0 +1,109 @@ +import { test, expect } from "@playwright/test"; +import { WasmWorkspacePage } from "../pages/WasmWorkspacePage"; + +// workspace/multiselection-typography.json: "Text with no typography" is a +// fixed 14px Rufina text, and the local library has the typographies +// "typography one" (Agdasima) and "typography 2" (IM Fell French Canon SC). +const FILE = { + id: "c7ce0794-0992-8105-8004-38f280443849", + pageId: "1062e0a0-8fe0-80ae-8007-e70b4993f5f0", +}; + +test.beforeEach(async ({ page }) => { + await WasmWorkspacePage.init(page); +}); + +async function setupTypographyFile(page) { + const workspace = new WasmWorkspacePage(page); + await workspace.setupEmptyFile(); + await workspace.mockRPC( + /get\-file\?/, + "workspace/multiselection-typography.json", + ); + await workspace.mockGoogleFont("rufina", "render-wasm/assets/ebgaramond.ttf"); + await workspace.mockGoogleFont( + "agdasima", + "render-wasm/assets/ebgaramond.ttf", + ); + await workspace.mockGoogleFont( + "im-fell-french-canon-sc", + "render-wasm/assets/ebgaramond.ttf", + ); + await workspace.goToWorkspace({ fileId: FILE.id, pageId: FILE.pageId }); + await workspace.waitForFirstRender(); + return workspace; +} + +function measureInput(workspace, name) { + return workspace.rightSidebar + .getByRole("region", { name: "shape-measures-section" }) + .getByRole("textbox", { name, exact: true }); +} + +// Selects "Text with no typography", switches it to auto-width and returns +// the Width input with the auto-width value. +async function setupAutoWidthText(workspace) { + // Exact match: "Text with no typography two" also exists and comes first. + await workspace.layers + .getByText("Text with no typography", { exact: true }) + .click(); + const widthInput = measureInput(workspace, "Width"); + const fixedWidth = await widthInput.inputValue(); + + await workspace.rightSidebar + .getByRole("button", { name: "Auto width" }) + .click(); + await expect( + workspace.rightSidebar.getByRole("button", { + name: "Auto width", + pressed: true, + }), + ).toBeVisible(); + + // The resize is async: wait for the width to change, then check it shrank. + await expect(widthInput).not.toHaveValue(fixedWidth); + const autoWidth = await widthInput.inputValue(); + expect(Number(autoWidth)).toBeLessThan(Number(fixedWidth)); + + return { widthInput, autoWidth }; +} + +// "typography 2" is larger (16px) than the text (14px) and uppercase, so the +// text must grow, and one undo must revert both the typography and the size. +async function expectGrowthAndUndo(page, widthInput, autoWidth) { + await expect(widthInput).not.toHaveValue(autoWidth); + expect(Number(await widthInput.inputValue())).toBeGreaterThan( + Number(autoWidth), + ); + + await page.keyboard.press("ControlOrMeta+z"); + await expect(widthInput).toHaveValue(autoWidth); +} + +test.describe("BUG 13124 - Applying a typography resizes an auto-width text", () => { + test("from the assets panel", async ({ page }) => { + const workspace = await setupTypographyFile(page); + const { widthInput, autoWidth } = await setupAutoWidthText(workspace); + + await workspace.clickAssets(); + // The Typographies group starts collapsed. + await workspace.sidebar + .getByRole("button", { name: /^Typographies/ }) + .click(); + await workspace.sidebar + .getByTitle("typography 2 (IM Fell French Canon SC)") + .click(); + + await expectGrowthAndUndo(page, widthInput, autoWidth); + }); + + test("from the typographies palette", async ({ page }) => { + const workspace = await setupTypographyFile(page); + const { widthInput, autoWidth } = await setupAutoWidthText(workspace); + + await page.getByRole("button", { name: "Typographies (Alt+T)" }).click(); + await page.getByTitle("typography 2", { exact: true }).click(); + + await expectGrowthAndUndo(page, widthInput, autoWidth); + }); +}); diff --git a/frontend/src/app/main/data/workspace/texts.cljs b/frontend/src/app/main/data/workspace/texts.cljs index de9c336e1b..32cc1f92bb 100644 --- a/frontend/src/app/main/data/workspace/texts.cljs +++ b/frontend/src/app/main/data/workspace/texts.cljs @@ -1274,14 +1274,19 @@ (assert (or (nil? ids) (and (set? ids) (every? uuid? ids)))) (ptk/reify ::apply-typography ptk/WatchEvent - (watch [_ state _] + (watch [_ state stream] (let [editor-state (:workspace-editor-state state) + objects (dsh/lookup-page-objects state) ids (d/nilv ids (dsh/lookup-selected state)) attrs (-> typography (assoc :typography-ref-file file-id) (assoc :typography-ref-id (:id typography)) (dissoc :id :name)) - undo-id (js/Symbol)] + auto-ids (into [] + (comp (mapcat #(resolve-text-ids objects %)) + (remove #(= :fixed (:grow-type (get objects %))))) + ids) + undo-id (js/Symbol)] (rx/concat (rx/of (dwu/start-undo-transaction undo-id)) @@ -1289,6 +1294,9 @@ (rx/map (fn [id] (let [editor (get editor-state id)] (update-text-attrs {:id id :editor editor :attrs attrs}))))) + ;; WASM does not re-measure on its own; the new font may still be loading. + (when (features/active-feature? state "render-wasm/v1") + (await-font-resize stream auto-ids)) (rx/of (dwu/commit-undo-transaction undo-id)))))))) (defn generate-typography-name diff --git a/frontend/src/app/main/ui/notifications.scss b/frontend/src/app/main/ui/notifications.scss index c4ea5cc4bf..c907fa7dbc 100644 --- a/frontend/src/app/main/ui/notifications.scss +++ b/frontend/src/app/main/ui/notifications.scss @@ -2,7 +2,7 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. // -// Copyright (c) KALEIDOS INC Sucursal en España SL +// Copyright (c) KALEIDOS SUBSIDIARY SL // Stacks the message and its links as a single item of the notification // pill's flex row. diff --git a/frontend/src/app/main/ui/workspace/text_palette.cljs b/frontend/src/app/main/ui/workspace/text_palette.cljs index e951b6120b..412825429b 100644 --- a/frontend/src/app/main/ui/workspace/text_palette.cljs +++ b/frontend/src/app/main/ui/workspace/text_palette.cljs @@ -33,21 +33,11 @@ (mf/use-callback (mf/deps typography selected-ids file-id current-file-id) (fn [] - (let [attrs (merge - {:typography-ref-file file-id - :typography-ref-id (:id typography)} - (dissoc typography :id :name))] - - (st/emit! (ev/event - {::ev/name "use-library-typography" - ::ev/origin "text-palette" - :external-library (not= file-id current-file-id)})) - (run! #(st/emit! - (dwt/update-text-attrs - {:id % - :editor (get @refs/workspace-editor-state %) - :attrs attrs})) - selected-ids))))] + (st/emit! (ev/event + {::ev/name "use-library-typography" + ::ev/origin "text-palette" + :external-library (not= file-id current-file-id)}) + (dwt/apply-typography (into #{} selected-ids) typography file-id))))] [:div {:on-click handle-click :class (stl/css-case :typography-item true :mid-item (<= size 72) diff --git a/frontend/src/app/main/ui/workspace/tokens/tokens_source.cljs b/frontend/src/app/main/ui/workspace/tokens/tokens_source.cljs index daf8f33b08..77b757a74a 100644 --- a/frontend/src/app/main/ui/workspace/tokens/tokens_source.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/tokens_source.cljs @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns app.main.ui.workspace.tokens.tokens-source (:require-macros [app.main.style :as stl]) diff --git a/frontend/src/app/main/ui/workspace/tokens/tokens_source.scss b/frontend/src/app/main/ui/workspace/tokens/tokens_source.scss index 242d62ff14..366485e258 100644 --- a/frontend/src/app/main/ui/workspace/tokens/tokens_source.scss +++ b/frontend/src/app/main/ui/workspace/tokens/tokens_source.scss @@ -2,7 +2,7 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. // -// Copyright (c) KALEIDOS INC Sucursal en España SL +// Copyright (c) KALEIDOS SUBSIDIARY SL @use "ds/typography.scss" as *; @use "ds/_sizes" as *; diff --git a/frontend/test/frontend_tests/data/fix_deleted_fonts_test.cljs b/frontend/test/frontend_tests/data/fix_deleted_fonts_test.cljs index b2b5c2e083..4592c90ab3 100644 --- a/frontend/test/frontend_tests/data/fix_deleted_fonts_test.cljs +++ b/frontend/test/frontend_tests/data/fix_deleted_fonts_test.cljs @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns frontend-tests.data.fix-deleted-fonts-test (:require diff --git a/frontend/test/frontend_tests/data/persistence_retry_test.cljs b/frontend/test/frontend_tests/data/persistence_retry_test.cljs index dcab8e593c..0b05d93f0d 100644 --- a/frontend/test/frontend_tests/data/persistence_retry_test.cljs +++ b/frontend/test/frontend_tests/data/persistence_retry_test.cljs @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns frontend-tests.data.persistence-retry-test "Retry-episode tests for the file persistence save pipeline diff --git a/frontend/test/frontend_tests/data/workspace_context_menu_test.cljs b/frontend/test/frontend_tests/data/workspace_context_menu_test.cljs index f0e1783293..31a9a17dd2 100644 --- a/frontend/test/frontend_tests/data/workspace_context_menu_test.cljs +++ b/frontend/test/frontend_tests/data/workspace_context_menu_test.cljs @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns frontend-tests.data.workspace-context-menu-test (:require diff --git a/frontend/test/frontend_tests/debug_logging_test.cljs b/frontend/test/frontend_tests/debug_logging_test.cljs index 4f07956bbb..0ef4692e9b 100644 --- a/frontend/test/frontend_tests/debug_logging_test.cljs +++ b/frontend/test/frontend_tests/debug_logging_test.cljs @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns frontend-tests.debug-logging-test (:require diff --git a/frontend/test/frontend_tests/errors_governor_test.cljs b/frontend/test/frontend_tests/errors_governor_test.cljs index 035188c5ff..288571ea25 100644 --- a/frontend/test/frontend_tests/errors_governor_test.cljs +++ b/frontend/test/frontend_tests/errors_governor_test.cljs @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns frontend-tests.errors-governor-test "Unit tests for the error report governor (`app.main.errors`). diff --git a/frontend/test/frontend_tests/plugins/creation_parent_test.cljs b/frontend/test/frontend_tests/plugins/creation_parent_test.cljs index 7d94361d91..177dfd7342 100644 --- a/frontend/test/frontend_tests/plugins/creation_parent_test.cljs +++ b/frontend/test/frontend_tests/plugins/creation_parent_test.cljs @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns frontend-tests.plugins.creation-parent-test (:require diff --git a/frontend/test/frontend_tests/plugins/events_test.cljs b/frontend/test/frontend_tests/plugins/events_test.cljs index 765471f00d..0e0e1952e9 100644 --- a/frontend/test/frontend_tests/plugins/events_test.cljs +++ b/frontend/test/frontend_tests/plugins/events_test.cljs @@ -2,7 +2,7 @@ ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; -;; Copyright (c) KALEIDOS INC Sucursal en España SL +;; Copyright (c) KALEIDOS SUBSIDIARY SL (ns frontend-tests.plugins.events-test "Unit tests for app.plugins.events, the plugin state-change listeners."