You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove five dead client methods: one has no Worker route, one always fails, three repeat a method in use (D616) #1316
S1: Remove five client methods that nothing calls. Each is dead or repeats a method that is used. Decision D616. Frontend only, no migration. Found by #1165's audit (areas 6 and 7). Each was checked against main: no file in frontend/src outside lib/api.js calls it.
Method in frontend/src/lib/api.js
Why it goes
emailSendDeal
No Worker route: production answers 404. scripts/api-drift-baseline.json lists POST /api/email/send-deal as known-missing. The deal room's invite already sends email.
adminVoidContract
Sends no reason, so the route always refuses it with a 400. adminVoidContractWithReason is the one in use.
fundLPs
Calls the same route as fundsLpsList, which five screens use.
fundsListByStatus
Is fundsList with a status filter, and nothing filters.
trustSanctions
Is the twin of trustListSanctions, which /trust uses.
Keep two near-twins:
fundGet, the research fund read, which is in use;
fundsGet, which the fund page in the area 6 design will read.
The work
Delete the five methods, and the baseline line for POST /api/email/send-deal.
Run npm run test:drift again. If a test pins a deleted method by name, update it, and say which in D616.
S1: Remove five client methods that nothing calls. Each is dead or repeats a method that is used. Decision D616. Frontend only, no migration. Found by #1165's audit (areas 6 and 7). Each was checked against
main: no file infrontend/srcoutsidelib/api.jscalls it.frontend/src/lib/api.jsemailSendDealscripts/api-drift-baseline.jsonlistsPOST /api/email/send-dealas known-missing. The deal room's invite already sends email.adminVoidContractadminVoidContractWithReasonis the one in use.fundLPsfundsLpsList, which five screens use.fundsListByStatusfundsListwith a status filter, and nothing filters.trustSanctionstrustListSanctions, which/trustuses.Keep two near-twins:
fundGet, the research fund read, which is in use;fundsGet, which the fund page in the area 6 design will read.The work
POST /api/email/send-deal.npm run test:driftagain. If a test pins a deleted method by name, update it, and say which in D616.Files this task owns
frontend/src/lib/api.js(these five methods only)scripts/api-drift-baseline.json(that one line)documentation/architecture/decisions/D616.mdDo not touch the dev FastAPI in
backend/.Done when
npm run build, thennpm run test:drift, givesEXIT=0.git grepfinds none of the five names infrontend/src.Generated by Claude Code