diff --git a/DashMailClient_3.jsx b/DashMailClient_3.jsx index 69c6a51..b8c0fca 100644 --- a/DashMailClient_3.jsx +++ b/DashMailClient_3.jsx @@ -362,6 +362,60 @@ function SettingsEmailAddr({accounts,C,smbConfig,onDiscoverMore}){ ; } +const HELP_TIPS={ + general:{title:"General",tips:[ + {icon:"ti-user", text:"Your name and initials appear in the sidebar and profile switcher."}, + {icon:"ti-palette", text:"Profile colour helps distinguish accounts at a glance."}, + {icon:"ti-language", text:"Language and date format apply to this profile only."}, + ]}, + theme:{title:"Appearance",tips:[ + {icon:"ti-moon", text:"Dark mode reduces eye strain in low-light environments."}, + {icon:"ti-color-swatch",text:"Accent colour is used for highlights, buttons, and active states."}, + {icon:"ti-photo", text:"Login background — landscape photos at 1920×1080 or wider work best."}, + ]}, + notifications:{title:"Notifications",tips:[ + {icon:"ti-bell", text:"Desktop notifications require browser permission — click Allow when prompted."}, + {icon:"ti-volume", text:"Use the Preview button to audition each sound before saving."}, + {icon:"ti-moon", text:"Do Not Disturb silences all alerts without disabling them permanently."}, + ]}, + accounts:{title:"Accounts",tips:[ + {icon:"ti-server", text:"Accounts map to folders on your SMB mail share."}, + {icon:"ti-mail", text:"Each account has its own inbox, sent, drafts, and custom folders."}, + ]}, + rules:{title:"Filters & Rules",tips:[ + {icon:"ti-filter", text:"Rules run automatically on incoming mail."}, + {icon:"ti-stack", text:"Combine multiple conditions with AND / OR logic."}, + {icon:"ti-arrow-right",text:"Actions: move, star, mark as read, or send to junk."}, + ]}, + privacy:{title:"Privacy",tips:[ + {icon:"ti-eye-off", text:"Blocking tracking pixels prevents senders from knowing when you open mail."}, + {icon:"ti-photo-off", text:"Disabling external images stops remote servers from logging your IP."}, + {icon:"ti-receipt", text:"Read receipts are off by default — enable only if required."}, + ]}, + emailaddr:{title:"Email addresses",tips:[ + {icon:"ti-at", text:"Each address maps to a folder on your SMB mail share."}, + {icon:"ti-refresh", text:"Scan for new accounts to detect folders added since last setup."}, + ]}, + encryption:{title:"Encryption",tips:[ + {icon:"ti-lock", text:"End-to-end encryption will be available in a future update."}, + ]}, + spam:{title:"Spam & Trash",tips:[ + {icon:"ti-trash", text:"Deleted items stay in Trash until the auto-empty period expires."}, + {icon:"ti-ban", text:"Spam is automatically removed after the retention period you set."}, + {icon:"ti-user-check", text:"Marking Not Spam whitelists the sender for future mail."}, + ]}, + backup:{title:"Backup",tips:[ + {icon:"ti-database", text:"Backups are stored locally — the SMB share is never modified."}, + {icon:"ti-calendar", text:"Schedule daily or weekly backups to run automatically."}, + {icon:"ti-history", text:"Older backup sets are pruned based on your retention setting."}, + ]}, + advanced:{title:"Advanced",tips:[ + {icon:"ti-lock", text:"Set a PIN to prevent unauthorised access to this profile."}, + {icon:"ti-server", text:"SMB Share settings control which mail server folder DashMail reads."}, + {icon:"ti-shield", text:"Auto-lock clears the session after a period of inactivity."}, + ]}, +}; + function FullSettings({profile,onSave,onClose,C,accounts,updateAccount,rules,setRules,allFolders,smbConfig,setSmbConfig,loginBg,setLoginBg,loginDark,setLoginDark,onSetupNew}){ const[section,setSection]=useState("general"); const[search,setSearch]=useState(""); @@ -369,6 +423,7 @@ function FullSettings({profile,onSave,onClose,C,accounts,updateAccount,rules,set const[profName,setProfName]=useState(profile.name); const[profInitials,setProfInitials]=useState(profile.initials); const[profColor,setProfColor]=useState(profile.color); + const[helpOpen,setHelpOpen]=useState(false); const[advancedTab,setAdvancedTab]=useState("security"); const filtered=search @@ -391,7 +446,7 @@ function FullSettings({profile,onSave,onClose,C,accounts,updateAccount,rules,set