feat: rework first run as a setup checklist and split settings into tabs

This commit is contained in:
randogoth 2026-10-06 11:57:04 +03:00
parent 6f82a84b69
commit 1710d7b144
5 changed files with 604 additions and 232 deletions

View file

@ -164,6 +164,26 @@ export function setLeaveOnServer(value) {
update(state => { state.leaveOnServer = value; });
}
// The user's own word that the master is written down somewhere else. Nothing
// can verify it, so it only drives the setup checklist — never a guard.
export function masterSaved() {
return load().masterSaved ?? false;
}
export function setMasterSaved(value) {
update(state => { state.masterSaved = value; });
}
// Whether the setup checklist was dismissed. Remaining steps stay reachable
// from settings, so hiding it is a preference, not a loss.
export function setupDismissed() {
return load().setupDismissed ?? false;
}
export function setSetupDismissed(value) {
update(state => { state.setupDismissed = value; });
}
export function cursor() {
const state = load();
const afterId = state.afterId;