Skip to content

[PROD RELEASE] - BAs & Fixes#1793

Merged
kkartunov merged 2 commits intomasterfrom
dev
Apr 30, 2026
Merged

[PROD RELEASE] - BAs & Fixes#1793
kkartunov merged 2 commits intomasterfrom
dev

Conversation

@kkartunov
Copy link
Copy Markdown
Collaborator

@kkartunov kkartunov commented Apr 30, 2026

Related JIRA Ticket:

https://topcoder.atlassian.net/browse/

What's in this PR?


Open in Devin Review

Master merge to dev -  hide BA details on projects in work app
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors Work app billing-account UI components to better control when billing-account details are fetched and to centralize budget/details rendering logic (including the copilot-safe “member payments remaining” display).

Changes:

  • Extracts helper functions in ProjectsTable to gate fetching billing-account details until the details modal is opened, and to encapsulate budget badge rendering.
  • Refactors ProjectBillingAccountExpiredNotice to reuse shared budget utilities, decouple the details button from the budget display, and pass projectId/showMemberPaymentsRemaining into the line-items modal.
  • Updates ProjectBillingAccountExpiredNotice tests to assert the disabled-state behavior more explicitly.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/apps/work/src/lib/components/ProjectsTable/ProjectsTable.tsx Refactors billing-account cell rendering and fetch gating into small helper functions.
src/apps/work/src/lib/components/ProjectBillingAccountExpiredNotice/ProjectBillingAccountExpiredNotice.tsx Switches to shared budget utils, improves fetch gating logic, and standardizes budget/details rendering + modal props.
src/apps/work/src/lib/components/ProjectBillingAccountExpiredNotice/ProjectBillingAccountExpiredNotice.spec.tsx Updates tests to use the shared render helper and validate budget/details hidden state when disabled.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

? getBillingAccountBudgetInfo(props.billingAccount)
: undefined
isModalOpen && props.showPaymentDetails
canFetchProjectBillingAccountDetails(isModalOpen, props.showPaymentDetails)
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

@kkartunov kkartunov merged commit d3417c1 into master Apr 30, 2026
15 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.

3 participants