ntbang0901 та NguyenBang
16bf9b53a2
feat(plugins): show a running state on a plugin command's toolbar button ( #2371 )
...
A plugin command that takes seconds (an LLM call that fills the commit message) gave no
sign at the button that the click was taken, and a second click started a second run.
Actions may now set `indicatesRunning`: the action runner counts their in-flight runs
and an IconButton bound to such an action shows a spinner, sets aria-busy and ignores
clicks until the run settles. Plugin commands set it, so every toolbar slot that draws
them (editor.title, mainToolbar, commit.message) is covered without a plugin API change
and without features importing each other. The button stays focusable (aria-disabled,
not disabled). Spinner moves to its own module so Button can use it without a cycle
with Feedback, which re-exports it.
Refs #2254
Co-authored-by: NguyenBang <[email protected] >
2026-11-09 22:43:53 +08:00
..
2026-11-09 15:24:52 +08:00
2026-11-08 17:20:59 +08:00
2026-10-29 11:58:19 +08:00
2026-10-29 11:58:19 +08:00
2026-10-22 18:55:10 +08:00
2026-11-07 21:44:03 +08:00
2026-11-09 22:43:53 +08:00
2026-11-09 22:43:53 +08:00
2026-11-09 22:43:53 +08:00
2026-11-07 07:47:10 +08:00
2026-11-07 21:44:03 +08:00
2026-11-05 21:03:28 +08:00
2026-11-05 21:03:28 +08:00
2026-11-05 21:03:28 +08:00
2026-11-05 21:03:28 +08:00
2026-10-31 20:58:45 +08:00
2026-11-05 15:18:42 +08:00
2026-11-09 14:16:21 +08:00
2026-11-09 22:43:53 +08:00
2026-11-09 22:43:53 +08:00
2026-10-31 20:24:31 +08:00
2026-10-31 20:24:31 +08:00
2026-10-31 20:24:31 +08:00
2026-10-22 18:55:10 +08:00
2026-10-22 18:55:10 +08:00
2026-11-04 14:22:38 +08:00
2026-11-04 14:22:38 +08:00
2026-11-04 14:22:38 +08:00
2026-11-08 03:12:01 +08:00
2026-11-09 15:24:52 +08:00
2026-11-08 05:54:24 +08:00
2026-11-08 05:54:24 +08:00
2026-11-08 05:54:24 +08:00
2026-10-25 21:24:00 +08:00
2026-11-07 21:44:03 +08:00
2026-10-22 18:55:10 +08:00
2026-10-22 18:55:10 +08:00
2026-11-07 10:56:59 +08:00
2026-11-03 22:20:58 +08:00
2026-10-22 18:55:10 +08:00
2026-11-01 16:05:16 +08:00
2026-11-08 04:06:04 +08:00
2026-11-07 09:39:18 +08:00
2026-11-09 15:24:52 +08:00
2026-10-22 18:55:10 +08:00
2026-10-22 18:55:10 +08:00
2026-11-09 07:20:54 +08:00
2026-11-08 21:28:06 +08:00
2026-11-08 21:28:06 +08:00
2026-11-05 02:45:36 +08:00
2026-11-05 02:45:36 +08:00
2026-11-04 14:22:38 +08:00
2026-11-04 14:22:38 +08:00
2026-10-28 09:07:50 +08:00
2026-11-04 01:31:10 +08:00
2026-11-08 05:54:24 +08:00
2026-10-23 21:23:06 +08:00
2026-11-08 21:28:06 +08:00
2026-11-08 16:15:16 +08:00
2026-10-25 09:34:02 +08:00
2026-11-01 16:05:16 +08:00
2026-11-01 16:05:16 +08:00
2026-11-07 12:14:09 +08:00
2026-11-07 12:14:09 +08:00
2026-11-07 12:14:09 +08:00
2026-11-09 08:39:44 +08:00
2026-11-09 08:39:44 +08:00
2026-11-09 08:39:44 +08:00
2026-11-03 22:50:13 +08:00
2026-10-27 08:56:13 +08:00
2026-10-27 08:56:13 +08:00
2026-11-02 23:41:21 +08:00
2026-11-04 23:10:23 +08:00
2026-11-05 00:55:03 +08:00
2026-11-05 00:55:03 +08:00
2026-11-09 22:43:53 +08:00
2026-11-09 22:43:53 +08:00
2026-10-22 18:55:10 +08:00
2026-11-08 03:18:44 +08:00
2026-10-22 18:55:10 +08:00
2026-11-07 21:44:03 +08:00
2026-11-07 00:22:19 +08:00
2026-11-07 00:22:19 +08:00
2026-11-09 14:16:21 +08:00
2026-11-05 00:55:03 +08:00
2026-11-08 22:33:22 +08:00
2026-11-08 22:33:22 +08:00
2026-11-08 22:33:22 +08:00
2026-11-08 22:00:32 +08:00
2026-11-04 01:31:10 +08:00
2026-11-07 10:56:59 +08:00
2026-11-08 22:00:32 +08:00
2026-10-31 12:43:42 +08:00
2026-10-31 01:28:41 +08:00
2026-11-05 23:09:55 +08:00
2026-10-30 19:44:28 +08:00
2026-10-30 19:44:28 +08:00