Skip to content

Machine Usage Failure Email - #69

Open
3791xk wants to merge 9 commits into
masterfrom
fail-email
Open

3791xk wants to merge 9 commits into
masterfrom
fail-email

Conversation

@3791xk

@3791xk 3791xk commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

I think after this, we've hit MVP! This is the third kind of email our website sends, the machine failure email which informs users that their machine usage has failed and they need to come back to the forge. I also added a new log type for user login now so that there aren't issues in the future with early records not existing.

Machine Usage Failure Email

The frontend had a form that collected lots of data from the volunteer who failed the machine, and we never did anything with it and never sent it to the backend. This is fixed now and we now actually use the MachineFailRequest that already existed to save that information in the Audit Log entry. The machine failure email now also actually gets sent.

Added USER_LOGIN for AuditLog

I wanted to get this merged in before anything is deployed so that we had login records going back to the beginning. This will be useful for debugging and future features. This required yet another alembic migration, adding it to the enum, and actually creating the AudtLog entry in /login

Machine Failure Email Example

image

When a machine is failed it actually sends the machine usage failure email now
Added an audit log message for when a user logs in, will be helpful for debugging and other future work
Have the information people input into  the machine failure form actually get sent to the backend, and actually use the MachineFailRequest. Also added the alembic migration for my previous commit
Added success message (note this has no loading circle as the email takes a few seconds to send and clarified the email
Added success message (note this has no loading circle as the email takes a few seconds to send and clarified the email
Emails just take a few seconds to send, so Ive added a spinner so that the user is not confused
Julesc27
Julesc27 previously approved these changes Sep 16, 2026

@Julesc27 Julesc27 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Image

works good just 2 notes i would say one free reprint if they used forge filament. we don't offer reprints for people with their own filament. other thing when the machine is failed the percentage keeps going up as it's in use still. I feel like it should stop once the form is filled out.

@luviolet3

Copy link
Copy Markdown
Collaborator

It might be better to only include the free reprint text iff both the own filament and reprint boxes are unchecked and change the text to something "this print has 1 free reprint remaining".

@3791xk

3791xk commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator Author

@Julesc27 Sure, I can update that on the email. Yeah the UI bug is out of scope of this PR, I've put it in an issue Issue #70 that somebody should fix

The specific forge rule is now stated more precisely in the email, I decided not to have different failure emails so people are not confused about the rules and so people who use their own filament see their disadvantage
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