open in View, not Edit
Opening a section is nearly always to LOOK at something — to check what a change did, or to see where the site stands before deciding anything. Editing is the deliberate act, so it is the one that should cost a click. Defaulting the other way puts a wall of controls in front of the thing they act on. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
+8
-1
@@ -64,7 +64,14 @@ const ViewModeContext = createContext<ViewModeValue>({
|
||||
});
|
||||
|
||||
export const ViewModeProvider = ({ children }: { children: ReactNode }) => {
|
||||
const [mode, setMode] = useState<Mode>('edit');
|
||||
/*
|
||||
View, not Edit.
|
||||
|
||||
Opening a section is nearly always to LOOK at something — to check what a change did, or to see the
|
||||
state of the site before deciding anything. Editing is the deliberate act, so it is the one that
|
||||
takes a click. Defaulting the other way puts a wall of controls in front of the thing they act on.
|
||||
*/
|
||||
const [mode, setMode] = useState<Mode>('view');
|
||||
const [device, setDevice] = useState<DeviceName>('desktop');
|
||||
const [previewable, setPreviewable] = useState(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user