Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix(settings): die Erfolgsnotiz sagt Dismiss statt nur ein Kreuz zu zeigen

purplebea9d60b90e1
diff --git a/src/components/settings/SettingsPage.tsx b/src/components/settings/SettingsPage.tsx
index 51281d5a..334e2a46 100644
--- a/src/components/settings/SettingsPage.tsx
+++ b/src/components/settings/SettingsPage.tsx
@@ -974,14 +974,21 @@ export function ComfyUISettings() {
</p>
{/* Review 03.09.: nothing ever put this line away, so one finished
run kept unfolding the section on every visit for the rest of
- the session. */}
+ the session.
+
+ A16 (A15-5): the counter-check reported the closing line as
+ having no dismiss at all. It had one, a bare 10px X with the
+ word only in the tooltip, standing beside a failed run whose
+ dismiss is a labelled button reading "Dismiss". One of the two
+ is findable and it was not this one. Same control, same word,
+ and the X stays as the icon beside it. */}
<button
onClick={clearInstallNotice}
aria-label="Dismiss this message"
title="Dismiss"
- className="shrink-0 p-0.5 rounded text-gray-500 hover:text-gray-300 hover:bg-white/5 transition-colors"
+ className="shrink-0 inline-flex items-center gap-1 px-1.5 py-[1px] rounded border border-white/15 text-[0.55rem] text-gray-400 hover:text-gray-200 hover:bg-white/10 transition-colors"
>
- <X size={10} />
+ <X size={9} /> Dismiss
</button>
</div>
)}
diff --git a/src/components/settings/__tests__/comfy-notice-reads-as-what-it-is.test.ts b/src/components/settings/__tests__/comfy-notice-reads-as-what-it-is.test.ts
index a708b850..3e9a0fa3 100644
--- a/src/components/settings/__tests__/comfy-notice-reads-as-what-it-is.test.ts
+++ b/src/components/settings/__tests__/comfy-notice-reads-as-what-it-is.test.ts
@@ -83,6 +83,20 @@ describe('the closing line can be dismissed', () => {
expect(comfySectionShouldOpen(useComfyInstallStore.getState())).toBe(false)
})
+ // A16 (A15-5): the Windows counter-check reported "die Erfolgsnotiz hat kein
+ // Dismiss daneben, nur die Fehlerkarte hat eines". The control existed, as a
+ // bare 10px X with the word in a tooltip, next to a failed run whose dismiss
+ // is a button that says Dismiss. A control nobody can find is not a control.
+ it('carries the word Dismiss, not only an icon', async () => {
+ await panelShowing('Repair finished. ComfyUI is ready.', 'ok')
+ const button = screen.getByLabelText('Dismiss this message')
+ expect(button.textContent, 'the closing line offers an unlabelled icon again').toContain('Dismiss')
+ // And it is the same offer the failed run makes, which is what the
+ // counter-check compared it against.
+ await act(async () => { fireEvent.click(button) })
+ expect(useComfyInstallStore.getState().notice).toBe('')
+ })
+
it('shows no dismiss control when there is nothing to dismiss', async () => {
// Negative control: an idle panel with no line carries no stray button.
render(createElement(ComfyUISettings))