← back to AbramsOS
settlements: remove duplicate claim-and-go (keep the payment+fieldMap version)
ae4ebab285192a370272d2d842b2334f23cbb9e8 · 2026-08-18 15:55:02 -0700 · Steve
Files touched
M data/claim-fill-queue/claim_01kzvyd76483jpdh3pd86ak9c0.jsonM routes/settlements.js
Diff
commit ae4ebab285192a370272d2d842b2334f23cbb9e8
Author: Steve <steve@designerwallcoverings.com>
Date: Tue Aug 18 15:55:02 2026 -0700
settlements: remove duplicate claim-and-go (keep the payment+fieldMap version)
---
.../claim_01kzvyd76483jpdh3pd86ak9c0.json | 2 +-
routes/settlements.js | 33 ----------------------
2 files changed, 1 insertion(+), 34 deletions(-)
diff --git a/data/claim-fill-queue/claim_01kzvyd76483jpdh3pd86ak9c0.json b/data/claim-fill-queue/claim_01kzvyd76483jpdh3pd86ak9c0.json
index 7a8b837..a4ae691 100644
--- a/data/claim-fill-queue/claim_01kzvyd76483jpdh3pd86ak9c0.json
+++ b/data/claim-fill-queue/claim_01kzvyd76483jpdh3pd86ak9c0.json
@@ -1,6 +1,6 @@
{
"kind": "settlement-claim-fill",
- "generated_at": "2026-08-18T21:41:34.815Z",
+ "generated_at": "2026-08-18T22:53:59.552Z",
"claim": {
"id": "claim_01kzvyd76483jpdh3pd86ak9c0",
"name": "Aetna L-ADR Surgery Settlement",
diff --git a/routes/settlements.js b/routes/settlements.js
index d8696dc..64d9f28 100644
--- a/routes/settlements.js
+++ b/routes/settlements.js
@@ -67,39 +67,6 @@ router.post('/api/settlements/:id/fill', async (req, res) => {
} catch (e) { res.status(503).json({ error: 'db offline: ' + e.message }); }
});
-// "Claim it & Go" — ONE call: mark eligible → stage the same openclaw prefill brief the /fill
-// route stages → return the prefill values + mode_url so the UI can open the official claim site
-// and show the values to paste. Fill-not-submit: this NEVER submits (staging only sets 'queued').
-router.post('/api/settlements/:id/claim-and-go', async (req, res) => {
- try {
- const r = await db.query(`SELECT * FROM settlement_claim WHERE id=$1 AND user_id=$2`, [req.params.id, USER]);
- if (!r.rows.length) return res.status(404).json({ error: 'not found' });
- const claim = r.rows[0];
- // 1) mark eligible
- await db.query(`UPDATE settlement_claim SET eligibility_state='eligible',updated_at=now() WHERE id=$1 AND user_id=$2`, [claim.id, USER]);
- claim.eligibility_state = 'eligible';
- // 2) build the identity profile (self; address parsed from person.notes)
- const person = await db.query(
- `SELECT full_name,email,phone,notes FROM person WHERE user_id=$1 AND relation='self' LIMIT 1`, [USER]
- ).then(x => x.rows[0] || {}).catch(() => ({}));
- const profile = {
- full_name: person.full_name || null,
- email: person.email || null,
- phone: person.phone || null,
- address: extractAddress(person.notes),
- };
- // 3) same staging the /fill route does
- filler.stage(claim, profile);
- await db.query(`UPDATE settlement_claim SET fill_state='queued',updated_at=now() WHERE id=$1`, [claim.id]);
- res.json({
- ok: true,
- mode_url: claim.mode_url || null,
- prefill: { full_name: profile.full_name, email: profile.email, phone: profile.phone, address: profile.address },
- note: 'prefilled — review & submit on the claim site; nothing was submitted for you',
- });
- } catch (e) { res.status(503).json({ error: 'db offline: ' + e.message }); }
-});
-
// ---- profile (identity + payment) used to prefill every claim ----
// Payment default: PayPal -> steveabramsdesigns@gmail.com (Steve's choice 2026-08-18).
const PAYMENT_DEFAULT = { method: process.env.CLAIM_PAY_METHOD || 'PayPal', paypal_email: process.env.CLAIM_PAY_PAYPAL || 'steveabramsdesigns@gmail.com' };
← 103c476 settlements: 3 views (grid/list/table sortable) + one-click
·
back to AbramsOS
·
AbramsOS nav: move 18 top tabs into a left sidebar panel + a 889a18c →