Skip to content

[MDS-3871] - update esup permit template with inspector name #2758

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

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

matbusby-fw
Copy link
Collaborator

  • Added issueing inspector's name to esup permit
  • fixed the image rendering of the inspectors signature so it doesn't get stretched

Also noticed a couple of esup things that needed fixing

  • ESUP view modal was showing the id for the mine manager and permittee, so changed to name
  • ESUP view modal was showing no issueing inspector when viewing amendments, so made it fall back to the parent value
  • Noticed the view only action menu was extending to any permit that had amendments, so made changes there to make it work as intended.

Objective

MDS-3871

image

The commit includes changes to the Explosives Permit and Amendments action menus to improve user experience. The action menu for amendments is now view-only to prevent unauthorized edits. The commit also includes changes for processing images, particularly for handling naming conventions and appending necessary values. An additional library, Pillow, has been added to the package requirements to support image processing. Changes were made following user feedback to simplify navigation and enhance usability.
@matbusby-fw matbusby-fw force-pushed the mds-3871-esup-permit-inspector-name branch from d6e38cd to 0ecd0d2 Compare October 26, 2023 23:00
width = height_in_pixels * aspect_ratio
# Convert width from pixels back to inches
width = width / 96

Copy link
Collaborator

Choose a reason for hiding this comment

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

🎨 🤓

@@ -48,6 +52,27 @@ def validate_issuing_inspector(explosives_permit):
raise Exception('No signature for the Issuing Inspector has been provided')

def create_image(source, width=None, height=None):

# If there is a prefix in the source, remove it
base64_source = source
Copy link
Collaborator

@asinn134 asinn134 Oct 26, 2023

Choose a reason for hiding this comment

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

nice work with this part

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, took a bit of figuring to get it working just right.

@matbusby-fw matbusby-fw merged commit 2201f53 into develop Oct 27, 2023
@matbusby-fw matbusby-fw deleted the mds-3871-esup-permit-inspector-name branch October 27, 2023 15:15
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