Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MDS-6207] Show PDF of permit amendment on Permit Conditions page + auto-focus on click #3351

Merged
merged 9 commits into from
Dec 18, 2024

Conversation

simensma-fresh
Copy link
Collaborator

@simensma-fresh simensma-fresh commented Dec 17, 2024

Objective

MDS-6207

With all the data about a permit condition now coming over from the permit service, we now have access to the bounding box of where it came from in the original PDF. This PR adds a side-by-side view of the conditions when you click "Open Permit in Document Viewer", where we also highlight the condition in the original PDF on click. Note: This is behind a feature flag, and just added so we can see how well it works/ if it's worth polishing.

image

@simensma-fresh simensma-fresh added 🌶 Enhancement This is a new feature or request. 👍 Ready for review Pull request has been double checked by the author and is ready for comments and feedback. 💾 Backend This pull request includes backend changes. 🚌 Common Package This pull request updates the common package labels Dec 17, 2024
@taraepp
Copy link
Collaborator

taraepp commented Dec 17, 2024

Other than some TS issues, looks very cool and works well!

@simensma-fresh simensma-fresh force-pushed the MDS-6207_Permit-condition-doc-viewer branch from 3054ce8 to b4cd914 Compare December 18, 2024 16:40
Copy link
Collaborator

@matbusby-fw matbusby-fw left a comment

Choose a reason for hiding this comment

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

Looks awesome!

Just noticed a duplicated interface and a suggestion on removing an unnecessary || block.

@simensma-fresh
Copy link
Collaborator Author

@matbusby-fw Fixed 👍

Copy link

Quality Gate Failed Quality Gate failed for 'bcgov-sonarcloud_mds_common'

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

See analysis details on SonarQube Cloud

Copy link

Quality Gate Passed Quality Gate passed for 'bcgov-sonarcloud_mds_minespace-web'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

Copy link

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

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

See analysis details on SonarQube Cloud

@simensma-fresh simensma-fresh merged commit 9ec204a into develop Dec 18, 2024
14 of 16 checks passed
@simensma-fresh simensma-fresh deleted the MDS-6207_Permit-condition-doc-viewer branch December 18, 2024 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💾 Backend This pull request includes backend changes. 🚌 Common Package This pull request updates the common package 🌶 Enhancement This is a new feature or request. 👍 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.

4 participants