refactor(feedback): 전역 토스트 제거 및 HUD 오버레이 피드백 도입
This commit is contained in:
@@ -17,7 +17,6 @@ import {
|
||||
} from '@/entities/session';
|
||||
import { useSoundPresetSelection } from '@/features/sound-preset';
|
||||
import { useHudStatusLine } from '@/shared/lib/useHudStatusLine';
|
||||
import { useToast } from '@/shared/ui';
|
||||
import { SpaceFocusHudWidget } from '@/widgets/space-focus-hud';
|
||||
import { SpaceSetupDrawerWidget } from '@/widgets/space-setup-drawer';
|
||||
import { SpaceToolsDockWidget } from '@/widgets/space-tools-dock';
|
||||
@@ -55,7 +54,6 @@ const resolveInitialTimerLabel = (timerLabelFromQuery: string | null) => {
|
||||
|
||||
export const SpaceWorkspaceWidget = () => {
|
||||
const searchParams = useSearchParams();
|
||||
const { pushToast } = useToast();
|
||||
const {
|
||||
thoughts,
|
||||
thoughtCount,
|
||||
@@ -63,7 +61,6 @@ export const SpaceWorkspaceWidget = () => {
|
||||
removeThought,
|
||||
clearThoughts,
|
||||
restoreThought,
|
||||
restoreThoughts,
|
||||
setThoughtCompleted,
|
||||
} = useThoughtInbox();
|
||||
|
||||
@@ -124,14 +121,10 @@ export const SpaceWorkspaceWidget = () => {
|
||||
}
|
||||
|
||||
setWorkspaceMode('focus');
|
||||
pushStatusLine({
|
||||
message: `목표: ${goalInput.trim()} 시작해요.`,
|
||||
});
|
||||
};
|
||||
|
||||
const handleExitRequested = () => {
|
||||
setWorkspaceMode('setup');
|
||||
pushToast({ title: '준비 모드로 돌아왔어요.' });
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
@@ -212,7 +205,6 @@ export const SpaceWorkspaceWidget = () => {
|
||||
onDeleteThought={removeThought}
|
||||
onSetThoughtCompleted={setThoughtCompleted}
|
||||
onRestoreThought={restoreThought}
|
||||
onRestoreThoughts={restoreThoughts}
|
||||
onClearInbox={clearThoughts}
|
||||
onStatusMessage={pushStatusLine}
|
||||
onExitRequested={handleExitRequested}
|
||||
|
||||
Reference in New Issue
Block a user