Skip to content

Commit 7108af7

Browse files
alx-alexparkclaude
andcommitted
remove +$3 default grant override, keep rounding up BOM cost
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f71478e commit 7108af7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

app/admin/review/[id]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ export default function ReviewDetailPage() {
10991099
type="number"
11001100
value={grantOverride}
11011101
onChange={(e) => setGrantOverride(e.target.value)}
1102-
placeholder={`Default: ${project.bomCost > 0 ? `BOM cost + $3 = ${Math.ceil(project.bomCost + 3)} bits` : 'No BOM cost'}`}
1102+
placeholder={`Default: ${project.bomCost > 0 ? `BOM cost rounded up = ${Math.ceil(project.bomCost)} bits` : 'No BOM cost'}`}
11031103
className="w-full px-3 py-1.5 text-sm border border-cream-500/20 bg-brown-900 text-cream-50 focus:outline-none focus:border-orange-500"
11041104
/>
11051105
{grantOverride && (

app/api/admin/projects/[id]/decision/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export async function POST(
6666
const bomCostTotal = totalBomCost(project.bomItems, project.bomTax, project.bomShipping)
6767
const parsedGrantAmount = typeof grantAmount === "number" && grantAmount > 0
6868
? grantAmount
69-
: (stage === "design" && decision === "approved" ? (bomCostTotal > 0 ? Math.ceil(bomCostTotal + 3) : null) : null)
69+
: (stage === "design" && decision === "approved" ? (bomCostTotal > 0 ? Math.ceil(bomCostTotal) : null) : null)
7070

7171
// tier: set at design approval to lock in the bit grant for build completion
7272
let parsedTier: number | null | undefined = undefined

app/api/reviews/[id]/submit/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export async function POST(
186186

187187
// For design approvals, default grant to BOM cost if not explicitly overridden
188188
const bomCostTotal = totalBomCost(project.bomItems, project.bomTax, project.bomShipping)
189-
const effectiveGrant = grantOverride ?? (stageKey === "design" ? (bomCostTotal > 0 ? Math.ceil(bomCostTotal + 3) : 0) : null)
189+
const effectiveGrant = grantOverride ?? (stageKey === "design" ? (bomCostTotal > 0 ? Math.ceil(bomCostTotal) : 0) : null)
190190

191191
// Map result to the existing decision format
192192
if (result === "APPROVED") {

app/reviews/[id]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ export default function ReviewDetailPage() {
800800
type="number"
801801
value={grantOverride}
802802
onChange={(e) => setGrantOverride(e.target.value)}
803-
placeholder={`Default: ${(data?.submission?.project?.bomCost ?? 0) > 0 ? `BOM cost + $3 = ${Math.ceil((data?.submission?.project?.bomCost ?? 0) + 3)} bits` : 'No BOM cost'}`}
803+
placeholder={`Default: ${(data?.submission?.project?.bomCost ?? 0) > 0 ? `BOM cost rounded up = ${Math.ceil(data?.submission?.project?.bomCost ?? 0)} bits` : 'No BOM cost'}`}
804804
className="w-full px-3 py-1.5 text-sm border border-cream-400 bg-cream-50 text-brown-800 focus:outline-none focus:border-orange-500"
805805
/>
806806
{grantOverride && (

0 commit comments

Comments
 (0)