Miguel Ángel
48308e3708
fix(studio): the server picks an added effect's element id; one client for patch and gsap writes ( #4962 )
...
* refactor(studio): the auto-id write posts through the one patch-element client
* test(studio): pin the auto-id write's saves, refusals and unsafe targets
* test(studio): pin the auto-id write's plain refusal and missing changed flag
* test(studio): the auto-id write needs a toast handler and sends the write token
* refactor(studio): one request for every GSAP mutation write
* fix(studio): a refused id write no longer leaves the id on the previewed element
* style(studio): drop the two comments the names already carry
* fix(studio): keep minting the id on the element so overlapping adds never share one
* fix(studio): an id the file already holds counts as saved, and no project leaves no id
* fix(studio): the server picks an added effect's element id, so ids never repeat
The browser minted the id from the live preview and rolled it back when the
write failed. A reply lost after the id was saved left the file holding an id
the preview had dropped, so the next add on a sibling wrote the same id again;
and a refused add could strip the id an overlapping saved add had just given
the same element.
A new patch-element op, ensure-id, keeps the element's id or makes the proposed
one unique in the file, and every patch-element reply names the element's id.
Studio sets the id on the preview only from that reply, so there is nothing to
roll back. nextUniqueId moves to sourceMutation as the one owner (split and
duplicate already used it).
* test(studio): pin the gsap write token and the refused-write toast
* refactor(studio): one unique-id helper on the server, and shorter id comments
* style(studio): keep the id helper doc under the line limit and the test-utils header true
* fix(studio): an added effect's id stays unique across every composition file
* style(studio): keep the files route's comment share at the base
* fix(studio): count an id written right after a quote or slash as taken
* fix(studio): a quote-ended string no longer hides another file's id
2026-10-04 06:05:17 +00:00
..
2026-10-02 07:19:53 +00:00
2026-10-01 18:24:56 -07:00
2026-07-28 00:37:31 +02:00
2026-09-02 01:11:13 -04:00
2026-10-03 00:13:18 +00:00
2026-10-01 18:07:54 -07:00
2026-09-18 10:28:29 -04:00
2026-09-25 10:48:46 +00:00
2026-07-03 18:22:22 -07:00
2026-10-01 18:24:56 -07:00
2026-09-02 01:11:13 -04:00
2026-07-03 18:14:17 -07:00
2026-07-03 18:14:17 -07:00
2026-10-03 13:10:54 -07:00
2026-09-30 07:08:14 +00:00
2026-10-01 17:24:35 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-09-12 12:56:00 -04:00
2026-10-03 00:13:18 +00:00
2026-09-12 12:56:00 -04:00
2026-08-04 23:13:19 +00:00
2026-08-04 23:13:19 +00:00
2026-10-04 06:05:17 +00:00
2026-08-09 16:58:34 -07:00
2026-09-29 03:58:28 +00:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-07-28 21:21:37 +02:00
2026-09-20 07:42:37 +00:00
2026-10-03 13:10:54 -07:00
2026-09-28 23:48:01 +00:00
2026-10-03 00:13:18 +00:00
2026-10-03 00:13:18 +00:00
2026-10-03 13:10:54 -07:00
2026-08-07 19:20:18 -07:00
2026-08-07 19:20:18 -07:00
2026-10-03 00:13:18 +00:00
2026-10-04 06:05:17 +00:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-01 17:24:35 -07:00
2026-09-28 23:48:01 +00:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-09-30 18:44:04 +00:00
2026-10-03 14:32:46 -07:00
2026-08-09 16:58:34 -07:00
2026-08-09 16:58:34 -07:00
2026-10-02 22:12:53 +00:00
2026-10-02 22:12:53 +00:00
2026-10-04 06:05:17 +00:00
2026-10-03 14:27:48 -07:00
2026-09-29 04:28:20 +00:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-09-29 03:58:28 +00:00
2026-07-29 03:39:17 +02:00
2026-07-29 03:39:17 +02:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-01 17:24:35 -07:00
2026-09-25 04:56:55 +00:00
2026-10-03 13:10:54 -07:00
2026-10-02 05:23:25 +00:00
2026-10-02 05:23:25 +00:00
2026-09-27 09:05:54 +00:00
2026-10-04 06:05:17 +00:00
2026-09-20 10:10:57 -04:00
2026-07-13 02:55:36 -04:00
2026-10-01 03:38:30 -07:00
2026-10-03 15:54:29 -07:00
2026-10-03 00:13:18 +00:00
2026-07-09 13:31:03 -07:00
2026-10-03 00:22:49 +00:00
2026-10-03 00:22:49 +00:00
2026-09-27 22:47:25 +00:00
2026-06-17 16:55:34 -07:00
2026-09-12 12:56:00 -04:00
2026-06-16 12:36:33 -07:00
2026-06-16 12:36:33 -07:00
2026-07-31 19:43:47 +02:00
2026-07-31 19:43:47 +02:00
2026-09-27 22:27:40 +00:00
2026-09-12 12:56:00 -04:00
2026-09-27 09:05:54 +00:00
2026-07-13 02:55:36 -04:00
2026-09-28 03:08:13 +00:00
2026-10-02 08:04:29 -07:00
2026-09-27 09:05:54 +00:00
2026-09-27 09:05:54 +00:00
2026-10-02 07:19:53 +00:00
2026-10-02 07:19:53 +00:00
2026-10-02 07:19:53 +00:00
2026-10-02 07:19:53 +00:00
2026-10-02 08:04:29 -07:00
2026-10-02 08:04:29 -07:00
2026-09-27 22:27:40 +00:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-09-12 12:56:00 -04:00
2026-10-04 02:30:24 +00:00
2026-09-18 08:44:05 -04:00
2026-07-16 00:18:36 -07:00
2026-07-16 00:18:36 -07:00
2026-10-03 00:13:18 +00:00
2026-10-03 00:13:18 +00:00
2026-10-01 15:22:03 -07:00
2026-10-02 07:19:53 +00:00
2026-10-01 15:22:03 -07:00
2026-10-02 21:15:19 +00:00
2026-09-27 12:30:31 +00:00
2026-09-27 12:30:31 +00:00
2026-09-28 04:03:36 +00:00
2026-10-03 13:10:54 -07:00
2026-09-12 12:56:00 -04:00
2026-10-01 14:48:57 -07:00
2026-10-01 14:48:57 -07:00
2026-09-18 08:44:05 -04:00
2026-09-18 08:44:05 -04:00
2026-10-03 13:10:54 -07:00
2026-10-03 08:16:01 +00:00
2026-09-27 08:16:11 +00:00
2026-09-27 08:16:11 +00:00
2026-09-19 16:08:15 -04:00
2026-10-03 13:10:54 -07:00
2026-10-01 10:19:50 -07:00
2026-09-25 10:53:54 +00:00
2026-10-01 10:19:50 -07:00
2026-09-30 17:28:59 +00:00
2026-10-03 13:10:54 -07:00
2026-09-20 17:15:29 -04:00
2026-09-20 13:04:23 -04:00
2026-06-13 18:25:11 -04:00
2026-07-13 02:55:36 -04:00
2026-09-30 18:44:04 +00:00
2026-09-20 12:21:47 -04:00
2026-10-01 18:24:56 -07:00
2026-10-01 17:24:35 -07:00
2026-10-01 23:56:36 +00:00
2026-10-04 06:05:17 +00:00
2026-10-04 06:05:17 +00:00
2026-10-03 14:28:42 -07:00
2026-10-01 18:24:56 -07:00
2026-09-02 01:11:13 -04:00
2026-10-03 00:13:18 +00:00
2026-09-28 20:44:30 +00:00
2026-09-28 20:44:30 +00:00
2026-08-19 00:22:26 -04:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 00:13:18 +00:00
2026-10-03 15:54:29 -07:00
2026-10-03 15:54:29 -07:00
2026-10-03 00:13:18 +00:00
2026-10-03 00:13:18 +00:00
2026-10-03 00:13:18 +00:00
2026-10-03 00:13:18 +00:00
2026-08-24 12:44:05 -07:00
2026-10-03 00:13:18 +00:00
2026-09-28 23:05:18 +00:00
2026-09-28 23:05:18 +00:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-09-12 12:56:00 -04:00
2026-09-27 22:27:40 +00:00
2026-08-23 18:10:46 -07:00
2026-09-30 20:03:48 +00:00
2026-07-14 14:31:58 -04:00
2026-10-03 13:10:54 -07:00
2026-10-01 22:05:15 -07:00
2026-10-01 22:05:15 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 13:10:54 -07:00
2026-09-20 13:53:52 -07:00
2026-10-03 13:10:54 -07:00
2026-09-26 08:35:22 +00:00
2026-10-03 13:10:54 -07:00
2026-10-03 17:02:20 -07:00
2026-10-03 17:02:20 -07:00
2026-10-03 00:13:18 +00:00
2026-10-03 00:13:18 +00:00
2026-09-25 11:42:10 +00:00
2026-09-25 11:42:10 +00:00
2026-10-02 21:15:19 +00:00
2026-09-18 21:27:53 -04:00
2026-10-03 13:10:54 -07:00
2026-09-30 17:28:59 +00:00
2026-09-30 17:28:59 +00:00
2026-10-04 06:05:17 +00:00
2026-10-04 06:05:17 +00:00
2026-06-13 18:25:11 -04:00
2026-10-03 13:10:54 -07:00
2026-10-03 15:54:29 -07:00
2026-10-03 13:10:54 -07:00
2026-10-03 15:54:29 -07:00
2026-10-03 14:32:46 -07:00
2026-09-29 03:58:28 +00:00
2026-10-03 13:10:54 -07:00
2026-10-03 00:13:18 +00:00
2026-08-03 23:06:46 -07:00
2026-10-03 00:13:18 +00:00
2026-06-17 16:55:34 -07:00
2026-07-20 11:59:57 -07:00
2026-07-15 10:29:22 -04:00
2026-10-04 06:05:17 +00:00
2026-10-04 06:05:17 +00:00
2026-10-03 00:13:18 +00:00
2026-10-03 00:13:18 +00:00
2026-09-30 17:28:59 +00:00
2026-07-28 19:02:25 +02:00
2026-10-03 08:16:01 +00:00
2026-08-21 11:19:53 -07:00
2026-10-01 14:00:32 -07:00
2026-10-01 14:00:32 -07:00
2026-07-29 03:39:52 +02:00
2026-10-01 14:48:57 -07:00
2026-10-01 14:48:57 -07:00
2026-09-27 15:06:46 +00:00
2026-10-03 13:10:54 -07:00
2026-08-23 18:10:46 -07:00
2026-10-01 11:32:06 -07:00
2026-03-21 22:43:56 -07:00
2026-08-21 09:34:59 -07:00
2026-09-19 19:04:16 -04:00
2026-10-02 21:15:19 +00:00
2026-10-03 17:02:20 -07:00
2026-10-03 17:02:20 -07:00
2026-10-03 08:16:01 +00:00
2026-07-09 13:31:03 -07:00
2026-10-03 00:13:18 +00:00
2026-10-03 00:13:18 +00:00
2026-10-03 13:10:54 -07:00
2026-08-04 23:13:19 +00:00
2026-10-03 13:10:54 -07:00
2026-09-27 12:30:31 +00:00
2026-10-03 13:10:54 -07:00
2026-09-25 10:48:46 +00:00
2026-09-29 04:28:20 +00:00
2026-10-02 05:23:25 +00:00
2026-07-17 14:15:30 -04:00
2026-10-02 06:08:37 +00:00
2026-10-03 13:10:54 -07:00
2026-10-03 00:22:49 +00:00
2026-10-03 00:22:49 +00:00
2026-09-18 08:44:05 -04:00
2026-09-18 08:44:05 -04:00
2026-09-19 19:04:16 -04:00
2026-09-19 19:04:16 -04:00
2026-06-22 01:21:18 -04:00
2026-06-22 01:21:18 -04:00
2026-06-15 14:00:39 -07:00
2026-09-25 04:56:55 +00:00
2026-10-03 13:10:54 -07:00
2026-09-20 13:53:31 -07:00
2026-10-03 13:10:54 -07:00
2026-10-02 21:15:19 +00:00
2026-09-25 10:48:46 +00:00
2026-09-19 19:04:16 -04:00
2026-09-19 19:04:16 -04:00
2026-10-02 21:15:19 +00:00
2026-10-02 21:15:19 +00:00
2026-09-19 19:04:16 -04:00
2026-09-25 08:43:04 +00:00
2026-10-01 03:36:08 +00:00
2026-10-02 21:15:19 +00:00
2026-10-03 13:10:54 -07:00
2026-08-04 23:13:19 +00:00
2026-10-02 21:15:19 +00:00
2026-10-02 21:15:19 +00:00
2026-08-04 18:58:24 -07:00
2026-07-31 19:43:47 +02:00
2026-08-19 00:22:26 -04:00
2026-08-19 00:22:26 -04:00
2026-08-05 20:41:35 -07:00
2026-08-05 20:41:35 -07:00
2026-10-03 19:54:04 +00:00
2026-10-03 19:54:04 +00:00
2026-09-27 22:47:25 +00:00
2026-09-27 22:47:25 +00:00
2026-10-02 21:15:19 +00:00
2026-09-29 09:14:11 +00:00
2026-09-29 09:14:11 +00:00
2026-10-03 08:16:01 +00:00
2026-10-03 13:10:54 -07:00
2026-10-02 05:23:25 +00:00
2026-10-03 08:16:01 +00:00
2026-10-02 21:15:19 +00:00
2026-09-25 10:48:46 +00:00
2026-10-02 08:04:29 -07:00
2026-10-02 08:04:29 -07:00
2026-10-02 07:19:53 +00:00
2026-10-02 07:19:53 +00:00
2026-09-18 12:08:06 -04:00
2026-09-18 12:08:06 -04:00
2026-09-27 08:16:11 +00:00
2026-09-19 23:59:13 -04:00
2026-10-01 15:22:03 -07:00
2026-09-12 12:56:00 -04:00