fix: transform handlers don't auto-open bottom panel unnecessarily

This commit is contained in:
2026-02-27 15:05:00 +01:00
parent b1e9275580
commit f9527b384b
3 changed files with 53 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ import {
buildBlogmarkTransformOutputEntries,
buildBlogmarkTransformToastNotifications,
parseBlogmarkCreatedEventPayload,
shouldAutoOpenPanelForOutputEntries,
} from './navigation/blogmarkTransformOutput';
import { createDeferredEventGate } from './navigation/deferredEventGate';
import { createAndFocusPost } from './navigation/postCreation';
@@ -288,10 +289,12 @@ const App: React.FC = () => {
});
});
useAppStore.setState({
panelVisible: true,
panelActiveTab: 'output',
});
if (shouldAutoOpenPanelForOutputEntries(outputEntries)) {
useAppStore.setState({
panelVisible: true,
panelActiveTab: 'output',
});
}
}
blogmarkEventGateRef.current.push(created, processBlogmarkCreated);