refactor: enhance routing and state management in CoopBuilder, add migration checks on startup, and update Tailwind configuration for improved component styling

This commit is contained in:
Jennie Robinson Faber 2025-08-23 18:24:31 +01:00
parent 848386e3dd
commit 4cea1f71fe
55 changed files with 4053 additions and 1486 deletions

View file

@ -10,7 +10,7 @@ export const useCashStore = defineStore("cash", () => {
// Week that first breaches minimum cushion
const firstBreachWeek = ref(null);
// Current cash and savings balances - start with zeros
// Current cash and savings balances - start empty
const currentCash = ref(0);
const currentSavings = ref(0);
@ -111,4 +111,14 @@ export const useCashStore = defineStore("cash", () => {
stagePayment,
updateCurrentBalances,
};
}, {
persist: {
key: "urgent-tools-cash",
paths: [
"currentCash",
"currentSavings",
"cashEvents",
"paymentQueue"
],
},
});