-
-
Notifications
You must be signed in to change notification settings - Fork 70
feat: Add sponsorship email notification to PSF accounting #241
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
feat: Add sponsorship email notification to PSF accounting #241
Conversation
- Add PENDING_INVOICE status to SponsorshipProgressStatus - Create SponsorshipProfileDetail view for individual profile display - Add send-invoice functionality that updates status and emails PSF - Add email template for PSF accounting notifications - Update sponsorship table to include Send Invoice action button - Configure URLs for new detail and send-invoice endpoints - Update linting configuration to exclude .venv directory Closes pyladies#170
✅ Deploy Preview for pyladiescon-portal-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
- Add tests for send_psf_invoice_request_email function - Add tests for send_sponsorship_status_emails (pre-existing function) - Add tests for SponsorshipProfileDetail view - Add tests for SponsorshipProfileSendInvoice view - Verify email sending, status updates, and permission checks - Achieve 100% test coverage for sponsorship module
…rations, .env/.venv, venv*, venv_local)
…tests Replace undefined LANGUAGES import from volunteer.models with volunteer.languages Keep VolunteerProfile imported from volunteer.models Fixes flake8 F821 error and lint failures
sponsorship/templates/sponsorship/email/psf_invoice_request.txt
Outdated
Show resolved
Hide resolved
sponsorship/templates/sponsorship/email/psf_invoice_request.txt
Outdated
Show resolved
Hide resolved
|
One thing came to mind, and this can be done as a separate follow up ticket:
|
Co-authored-by: Mariatta <[email protected]>
I've thought about this some more, and let's not bother with this requirement in this PR. For now we can assume that our sponsorship team will be entering these information correctly prior to clicking the send invoice button. |
- Remove PENDING_INVOICE status as suggested (use APPROVED instead) - Convert email template to markdown format for HTML rendering - Add all required fields to PSF email (Company Address, Contact details) - Remove status update sentence from email template - Update send_invoice view to not change sponsorship status - Fix all references to PENDING_INVOICE in views and tests - Update email sending to use send_markdown_email helper
…update PSF email recipients test; apply formatting
Mariatta
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work. Thanks!
sponsorship/templates/sponsorship/sponsorship_profile_detail.html
Outdated
Show resolved
Hide resolved
sponsorship/templates/sponsorship/sponsorship_profile_detail.html
Outdated
Show resolved
Hide resolved
- turn hardcoded email address into a constant values - Allow accepted volunteers to view sponsorship detail in readonly mode - Show sponsor logo in sponsor profile detail
Closes #170