chore(balance): post-merge cleanup of #182-#185 reviews (#187) #195
2 changed files with 9 additions and 4 deletions
|
|
@ -288,6 +288,12 @@ INSERT OR IGNORE INTO user_preferences (key, value) VALUES ('theme', 'light');
|
||||||
INSERT OR IGNORE INTO user_preferences (key, value) VALUES ('currency', 'EUR');
|
INSERT OR IGNORE INTO user_preferences (key, value) VALUES ('currency', 'EUR');
|
||||||
INSERT OR IGNORE INTO user_preferences (key, value) VALUES ('date_format', 'DD/MM/YYYY');
|
INSERT OR IGNORE INTO user_preferences (key, value) VALUES ('date_format', 'DD/MM/YYYY');
|
||||||
INSERT OR REPLACE INTO user_preferences (key, value) VALUES ('categories_schema_version', 'v1');
|
INSERT OR REPLACE INTO user_preferences (key, value) VALUES ('categories_schema_version', 'v1');
|
||||||
|
-- Suppress StarterAccountsModal on first /balance visit for new profiles
|
||||||
|
-- (Issue #179). The 4 starter accounts are already seeded above, so the
|
||||||
|
-- modal would only show 4 collision rows with no actionable choice. Pre-
|
||||||
|
-- writing the pref skips that briefly-empty UX entirely. Suggestion S1
|
||||||
|
-- from PR #185 review (#187).
|
||||||
|
INSERT OR IGNORE INTO user_preferences (key, value) VALUES ('balance_starter_proposed', '{"shown_at":"seed","accepted":[]}');
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Seed v1 — IPC Statistique Canada-aligned, 3 levels, Canada/Québec
|
-- Seed v1 — IPC Statistique Canada-aligned, 3 levels, Canada/Québec
|
||||||
|
|
|
||||||
|
|
@ -58,10 +58,9 @@ export default function BalancePage() {
|
||||||
|
|
||||||
// Issue #179 — one-shot starter-accounts modal for existing profiles. The
|
// Issue #179 — one-shot starter-accounts modal for existing profiles. The
|
||||||
// pref `balance_starter_proposed` is written once (confirmed or dismissed),
|
// pref `balance_starter_proposed` is written once (confirmed or dismissed),
|
||||||
// so the modal never re-appears. New profiles get the 4 starters seeded
|
// so the modal never re-appears. New profiles get both the 4 starters AND
|
||||||
// directly via consolidated_schema.sql and never hit this branch (the
|
// the pref pre-seeded via consolidated_schema.sql, so they never hit this
|
||||||
// first /balance visit will write the pref with accepted=[] silently
|
// branch at all (S1 fix from #187).
|
||||||
// since collisions match all 4).
|
|
||||||
const [showStarterModal, setShowStarterModal] = useState(false);
|
const [showStarterModal, setShowStarterModal] = useState(false);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
let cancelled = false;
|
let cancelled = false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue