Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 41fe5b6cfd605e7de8e9f3cbcebc1eaed7c3a435
parent 4ac7ea472f9ad7403b1b8519daa3f74bed56eddd
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed, 14 Oct 2026 06:32:26 -0400

editor: the build and cleanup toggles wait for hydration — a click before it silently did nothing

Both forms' action is a client closure, so a click that lands before hydration
submits natively and is dropped. channel-build-toggle.spec clicks right after a
goto and failed on the toggle-back (r24, r25 and now intermittently). Disabled
until useHydrated(), as PublishPanel does; Playwright's click waits for it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Meditor/app/channels/components/ChannelBuildToggle.tsx | 6++++++
Meditor/app/cleanup/components/ChannelCleanupToggle.tsx | 5+++++
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/editor/app/channels/components/ChannelBuildToggle.tsx b/editor/app/channels/components/ChannelBuildToggle.tsx @@ -1,6 +1,7 @@ "use client"; import { toggleChannelBuildInclusionAction } from "../actions"; +import { useHydrated } from "../../operations/components/useOperationsStatus"; export function ChannelBuildToggle({ slug, @@ -9,6 +10,10 @@ export function ChannelBuildToggle({ slug: string; excluded: boolean; }) { + // Disabled until hydrated: the form's action is a client closure, so a click + // that lands before hydration submits natively and silently does nothing + // (channel-build-toggle.spec's toggle-back, clicked right after a goto). + const hydrated = useHydrated(); return ( <form action={async () => { @@ -17,6 +22,7 @@ export function ChannelBuildToggle({ > <button type="submit" + disabled={!hydrated} aria-label={`toggle build inclusion for ${slug}`} aria-pressed={!excluded} title={ diff --git a/editor/app/cleanup/components/ChannelCleanupToggle.tsx b/editor/app/cleanup/components/ChannelCleanupToggle.tsx @@ -1,6 +1,7 @@ "use client"; import { toggleChannelCleanupInclusionAction } from "../../channels/actions"; +import { useHydrated } from "../../operations/components/useOperationsStatus"; // Per-channel include/exclude switch for the aggregate cleanable-data total. // Token-driven (semantic success / muted) so it recolors with every theme. @@ -11,6 +12,9 @@ export function ChannelCleanupToggle({ slug: string; excluded: boolean; }) { + // Disabled until hydrated: the form action is a client closure, so a click + // before hydration submits natively and silently does nothing. + const hydrated = useHydrated(); return ( <form action={async () => { @@ -19,6 +23,7 @@ export function ChannelCleanupToggle({ > <button type="submit" + disabled={!hydrated} aria-label={`toggle cleanup-total inclusion for ${slug}`} aria-pressed={!excluded} title={