Skip to content

Conversation

@matbusby-fw
Copy link
Collaborator

It seems we never implemented the view modal for viewing a mine report definition. Converted the existing create modal to have an optional view only mode

Objective

MDS-6741

image

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed for 'bcgov-sonarcloud_mds_core-web'

Failed conditions
40.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@matbusby-fw matbusby-fw added the 👍 Ready for review Pull request has been double checked by the author and is ready for comments and feedback. label Dec 16, 2025
<div className="ant-modal-footer">
<RenderCancelButton />
<RenderSubmitButton buttonText="Save Report" disableOnClean={false} />
{isEditMode ? <RenderSubmitButton buttonText="Save Report" disableOnClean={false} /> : null}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am 90% sure that the submit button will hide itself when not in edit mode! But I'm not too worried about it.

const reportDefinition = reportDefinitions.find(
(r) => r.mine_report_definition_guid === record.mine_report_definition_guid
);
if (!reportDefinition) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm wondering if there is a scenario where reportDefinition isn't found. Like, the table data is the (transformed, but not filtered) reportDefinitions, and the record is part of that list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

👍 Ready for review Pull request has been double checked by the author and is ready for comments and feedback.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants