Desktop: every write shows a styled in-app dry-run preview (command, changed rows) before the native confirm dialog; i18n house style fix for the developer id hint

This commit is contained in:
CRTkafa 2026-10-23 09:48:48 +08:00
parent c86b583830
commit 364b8ec0d4
7 changed files with 78 additions and 2 deletions

View file

@ -1,5 +1,6 @@
// Shell: sidebar (studios, collapsible, with their apps; the workspace), top bar (breadcrumbs, last read, refresh),
// the screen, the command palette (Cmd/Ctrl+K), toasts and the first-run welcome guide.
import { DryRunPreview } from './ui/DryRunPreview';
import { useCallback, useEffect, useMemo, useState } from 'react';
import { FIXTURES, onDeepLink, onDeepLinkFolder, onTrayRoute } from './api';
import { devSwitch } from './dev/switches';
@ -282,6 +283,7 @@ export function App({ onTheme }: { onTheme: () => void }) {
{palette && <ErrorBoundary where="palette"><Palette commands={commands} onClose={() => setPalette(false)} /></ErrorBoundary>}
{welcome && <ErrorBoundary where="welcome"><Onboarding onClose={closeWelcome} /></ErrorBoundary>}
<ErrorBoundary where="toasts"><Toasts /></ErrorBoundary>
<ErrorBoundary where="preview"><DryRunPreview /></ErrorBoundary>
</NavCtx.Provider>
);
}