Skip to content

Conversation

@rjohanek
Copy link
Contributor

Addresses

https://broadworkbench.atlassian.net/browse/DC-1804
User requests for ability to change the billing profile for a filtered snapshot

Summary of Changes

Create reusable component for both the full view snapshot modal and the filtered snapshot panel
Wire in billing to the snapshot create calls to the back end
Update logic for disabling the next button (any billing profiles accessible)

Testing

Adds component tests for new BillingProfileDropdown component
Adds component tests for the CreateSnapshotPanel
Manually tested in the UI, videos here: https://drive.google.com/drive/folders/1Bf_Pl3RafPWwyeL3cRQfQ4Y7N2Qtkzxk?usp=sharing

@rjohanek rjohanek requested a review from a team as a code owner October 28, 2025 16:12
@rjohanek rjohanek requested review from calypsomatic and davidangb and removed request for a team October 28, 2025 16:12
@cypress
Copy link

cypress bot commented Oct 28, 2025

jade-data-repo-ui    Run #4581

Run Properties:  status check passed Passed #4581  •  git commit fa47217957 ℹ️: Merge 2c7377c2c40a0088c634694831fc308797cfbe45 into 08fc8a15b465b115d446aa2421da...
Project jade-data-repo-ui
Branch Review rj/dc-1804-add-billing-profile-selection
Run status status check passed Passed #4581
Run duration 02m 42s
Commit git commit fa47217957 ℹ️: Merge 2c7377c2c40a0088c634694831fc308797cfbe45 into 08fc8a15b465b115d446aa2421da...
Committer Rae Johanek
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 15
View all changes introduced in this branch ↗︎

@davidangb
Copy link

holding off on review until this is passing all checks.

Copy link

@davidangb davidangb left a comment

Choose a reason for hiding this comment

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

one kinda-question inline, giving this a 👍. I don't know how to realistically test this myself, and there's a lot of change here ... trusting your testing of this!

(profile) => profile.id === dataset.defaultProfileId,
);
this.setState({
selectedBillingProfile: defaultBillingProfile || billingProfiles[0],

Choose a reason for hiding this comment

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

is there any chance that billingProfiles is completely empty? Would that cause a problem?

EDIT: I see you have a should handle empty billing profiles array unit test, so I'm going to assume this is ok

@rjohanek rjohanek requested a review from samanehsan October 31, 2025 16:07
@sonarqubecloud
Copy link

@rjohanek rjohanek merged commit af17097 into develop Nov 4, 2025
19 of 21 checks passed
@rjohanek rjohanek deleted the rj/dc-1804-add-billing-profile-selection branch November 4, 2025 15:16
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.

5 participants