refactor: remove handbook sync state and related functionality
This commit is contained in:
@@ -31,7 +31,6 @@ const Admin = () => {
|
||||
const [saveStatus, setSaveStatus] = useState(null);
|
||||
|
||||
const [resetConfirmText, setResetConfirmText] = useState('');
|
||||
const [resetIncludeHandbook, setResetIncludeHandbook] = useState(true);
|
||||
const [resetIncludeProgress, setResetIncludeProgress] = useState(false);
|
||||
const [isResetting, setIsResetting] = useState(false);
|
||||
const [resetReport, setResetReport] = useState(null);
|
||||
@@ -69,7 +68,6 @@ const Admin = () => {
|
||||
setResetReport(null);
|
||||
try {
|
||||
const report = await db.resetForSmokeTest({
|
||||
includeHandbookState: resetIncludeHandbook,
|
||||
includeProgress: resetIncludeProgress,
|
||||
});
|
||||
setResetReport(report);
|
||||
@@ -317,15 +315,6 @@ const Admin = () => {
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
<label className="flex items-center gap-2 text-sm cursor-pointer">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={resetIncludeHandbook}
|
||||
onChange={(e) => setResetIncludeHandbook(e.target.checked)}
|
||||
className="rounded bg-bg-warm border-transparent focus:ring-0 text-teal"
|
||||
/>
|
||||
Also clear handbook sync state (so "Sync Employee Handbook" re-processes every file)
|
||||
</label>
|
||||
<label className="flex items-center gap-2 text-sm cursor-pointer">
|
||||
<input
|
||||
type="checkbox"
|
||||
|
||||
Reference in New Issue
Block a user