Skip to content

Budget field: migrate from plain number to { amount, currency } schema#601

Merged
valentin0h merged 13 commits intodevfrom
proposal-template-budget-field
Feb 13, 2026
Merged

Budget field: migrate from plain number to { amount, currency } schema#601
valentin0h merged 13 commits intodevfrom
proposal-template-budget-field

Conversation

@valentin0h
Copy link
Collaborator

@valentin0h valentin0h commented Feb 13, 2026

  • Migrates the budget field from a plain number to { amount: number, currency: string }
  • Adds backward-compatible normalization: legacy plain-number budgets are automatically coerced to { amount, currency: 'USD' }

currency is not used in any meaningful way yet; it is purely presentational.

@vercel
Copy link
Contributor

vercel bot commented Feb 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app Ready Ready Preview Feb 13, 2026 4:48pm

Request Review

@valentin0h valentin0h marked this pull request as ready for review February 13, 2026 09:47
@valentin0h valentin0h changed the title Budget field: migrate from plain number to { value, currency } schema Budget field: migrate from plain number to { amount, currency } schema Feb 13, 2026
Base automatically changed from proposal-optimizations-and-cleanup to dev February 13, 2026 10:12
Copy link
Collaborator

@scazan scazan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving but we should have a test for the legacy process I think if we are updating the schemas

<CollaborativeBudgetField
maxAmount={schema.maximum}
initialValue={(draft[key] as number | null) ?? null}
initialValue={null}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we just make it optional and null by default?

@valentin0h valentin0h merged commit 20f9e03 into dev Feb 13, 2026
10 checks passed
@valentin0h valentin0h deleted the proposal-template-budget-field branch February 13, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments