Skip to content

PM-4628: preload edit-project billing accounts#1585

Merged
jmgasper merged 4 commits intodevfrom
PM-4628
Apr 2, 2026
Merged

PM-4628: preload edit-project billing accounts#1585
jmgasper merged 4 commits intodevfrom
PM-4628

Conversation

@jmgasper
Copy link
Copy Markdown
Collaborator

@jmgasper jmgasper commented Apr 1, 2026

What was broken

  • Edit Project only exposed a name-search autocomplete with no initial billing-account options, so users could not see the billing accounts they were allowed to select.

Root cause

  • The new work app never loaded the project-scoped /projects/:projectId/billingAccounts source used by the legacy flow.
  • The autocomplete always started with defaultOptions=false, so the menu opened empty until a 3-character search.

What was changed

  • Added a project-scoped billing-account fetch in the work app projects service.
  • Preloaded those accounts into the edit-project billing-account autocomplete when a project id is available.
  • Passed the current project id from the project editor form into the autocomplete.

Any added/updated tests

  • Added a service test for project billing-account normalization.
  • Added a FormBillingAccountAutocomplete regression test covering edit-project preload behavior.

Open with Devin

What was broken
- Edit Project only exposed a name-search autocomplete with no initial billing-account options, so users could not see the billing accounts they were allowed to select.

Root cause
- The new work app never loaded the project-scoped /projects/:projectId/billingAccounts source used by the legacy flow.
- The autocomplete always started with defaultOptions=false, so the menu opened empty until a 3-character search.

What was changed
- Added a project-scoped billing-account fetch in the work app projects service.
- Preloaded those accounts into the edit-project billing-account autocomplete when a project id is available.
- Passed the current project id from the project editor form into the autocomplete.

Any added/updated tests
- Added a service test for project billing-account normalization.
- Added a FormBillingAccountAutocomplete regression test covering edit-project preload behavior.
@jmgasper jmgasper requested a review from kkartunov as a code owner April 1, 2026 16:21
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@jmgasper jmgasper merged commit 1027c53 into dev Apr 2, 2026
9 checks passed
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