81 lines
1.7 KiB
TypeScript
81 lines
1.7 KiB
TypeScript
/**
|
|
* DISABLED: All fixture data removed to prevent automatic demo data
|
|
* This composable previously loaded sample data but is now empty
|
|
*/
|
|
export const useFixtures = () => {
|
|
// All sample data functions now return empty data
|
|
const loadMembers = async () => {
|
|
return {
|
|
members: []
|
|
}
|
|
}
|
|
|
|
const loadStreams = async () => {
|
|
return {
|
|
revenueStreams: []
|
|
}
|
|
}
|
|
|
|
const loadFinances = async () => {
|
|
return {
|
|
currentBalances: {
|
|
cash: 0,
|
|
savings: 0,
|
|
totalLiquid: 0
|
|
},
|
|
policies: {
|
|
equalHourlyWage: 0,
|
|
payrollOncostPct: 0,
|
|
savingsTargetMonths: 0,
|
|
minCashCushionAmount: 0,
|
|
deferredCapHoursPerQtr: 0,
|
|
deferredSunsetMonths: 0
|
|
},
|
|
deferredLiabilities: {
|
|
totalDeferred: 0,
|
|
byMember: {}
|
|
}
|
|
}
|
|
}
|
|
|
|
const loadCosts = async () => {
|
|
return {
|
|
overheadCosts: [],
|
|
productionCosts: []
|
|
}
|
|
}
|
|
|
|
// Return empty metrics
|
|
const calculateMetrics = async () => {
|
|
return {
|
|
totalTargetHours: 0,
|
|
totalTargetRevenue: 0,
|
|
monthlyPayroll: 0,
|
|
monthlyBurn: 0,
|
|
runway: 0,
|
|
members: [],
|
|
streams: [],
|
|
finances: {
|
|
currentBalances: { cash: 0, savings: 0, totalLiquid: 0 },
|
|
policies: {
|
|
equalHourlyWage: 0,
|
|
payrollOncostPct: 0,
|
|
savingsTargetMonths: 0,
|
|
minCashCushionAmount: 0,
|
|
deferredCapHoursPerQtr: 0,
|
|
deferredSunsetMonths: 0
|
|
},
|
|
deferredLiabilities: { totalDeferred: 0, byMember: {} }
|
|
},
|
|
costs: { overheadCosts: [], productionCosts: [] }
|
|
}
|
|
}
|
|
|
|
return {
|
|
loadMembers,
|
|
loadStreams,
|
|
loadFinances,
|
|
loadCosts,
|
|
calculateMetrics
|
|
}
|
|
}
|