Skip to content

CHECK-403: Use fxRateCurrency on Project for user selected currency code#2911

Open
amy-at-kickstarter wants to merge 3 commits into
feat/adyer/check-403/basefrom
feat/adyer/check-403/use-fxratecurrency
Open

CHECK-403: Use fxRateCurrency on Project for user selected currency code#2911
amy-at-kickstarter wants to merge 3 commits into
feat/adyer/check-403/basefrom
feat/adyer/check-403/use-fxratecurrency

Conversation

@amy-at-kickstarter

@amy-at-kickstarter amy-at-kickstarter commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

📲 What

Use fxRateCurrency on Project for the user's selected currency code when creating a Project.

🤔 Why

The user's chosen currency lives on the User object in GraphQL, not on the Project. That meant we had a lot of extra plumbing to pass it down - either from AppEnvironment.current.currentUser, or from a top-level GraphQL query like me { currency }.

To clean this up, I added the GraphQL field fxRateCurrency to ProjectFragment. This field matches the user's chosen currency (the same one used for the fxRate).

This PR also depends on #2910 and #2908. I created a separate base branch with both those changes for clarity.

@amy-at-kickstarter amy-at-kickstarter force-pushed the feat/adyer/check-403/use-fxratecurrency branch from c24c8ac to 5bb58a6 Compare July 9, 2026 20:49
@amy-at-kickstarter amy-at-kickstarter changed the base branch from feat/adyer/check-394/move-other-project-props to feat/adyer/check-403/base July 9, 2026 20:49
@amy-at-kickstarter amy-at-kickstarter changed the title Feat/adyer/check 403/use fxratecurrency CHECK-403: Use fxRateCurrency on Project for user selected currency code Jul 9, 2026
}
}

internal func fetchProject(projectParam: Param, configCurrency _: String?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This feels much cleaner.

@amy-at-kickstarter amy-at-kickstarter marked this pull request as ready for review July 9, 2026 20:57
@amy-at-kickstarter amy-at-kickstarter requested review from a team and stevestreza-ksr and removed request for a team July 9, 2026 20:57
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.

1 participant