Port Monica campaign UTM + piha.li minting into always-on core (shortener.py, campaign_utm.py) so email_sms and directmail stay optional and never import each other.
utm_source is a slug of SITE_NAME (override with UTM_SOURCE). Email gets an HTML data-campaign-utm link; SMS gets a plain URL; postcard QR only — no body inject.
Live composer mints through login+CSRF POST /portal/campaigns/short-link/ (registered only when an outreach app is installed). Empty SHORTENER_* falls back to the long UTM URL.
cd site && uv run python manage.py test (125 tests)
Email composer: type a name, confirm HTML link + utm_campaign updates, save draft
SMS composer: plain piha.li (or long UTM if shortener unset) in the body
Postcard composer: QR copies the tracked URL; campaign body has no utm_source
Campaign report pages show the same panel
With FEATURE_EMAIL_SMS and FEATURE_DIRECT_MAIL off, no extra nav and no /portal/campaigns/short-link/ route
## Summary
- Port Monica campaign UTM + piha.li minting into always-on `core` (`shortener.py`, `campaign_utm.py`) so `email_sms` and `directmail` stay optional and never import each other.
- `utm_source` is a slug of `SITE_NAME` (override with `UTM_SOURCE`). Email gets an HTML `data-campaign-utm` link; SMS gets a plain URL; postcard QR only — no body inject.
- Live composer mints through login+CSRF `POST /portal/campaigns/short-link/` (registered only when an outreach app is installed). Empty `SHORTENER_*` falls back to the long UTM URL.
Reference: [monica_site PR #10](https://git.aimloperations.com/ai_ml_operations/monica_site/pulls/10)
Closes #3
## Test plan
- [x] `cd site && uv run python manage.py test` (125 tests)
- [ ] Email composer: type a name, confirm HTML link + `utm_campaign` updates, save draft
- [ ] SMS composer: plain `piha.li` (or long UTM if shortener unset) in the body
- [ ] Postcard composer: QR copies the tracked URL; campaign body has no `utm_source`
- [ ] Campaign report pages show the same panel
- [ ] With `FEATURE_EMAIL_SMS` and `FEATURE_DIRECT_MAIL` off, no extra nav and no `/portal/campaigns/short-link/` route
Keep mint/UTM in always-on core so email_sms and directmail stay optional, and brand utm_source from SITE_NAME (or UTM_SOURCE) instead of a hardcoded client name.
Closes #3
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
core(shortener.py,campaign_utm.py) soemail_smsanddirectmailstay optional and never import each other.utm_sourceis a slug ofSITE_NAME(override withUTM_SOURCE). Email gets an HTMLdata-campaign-utmlink; SMS gets a plain URL; postcard QR only — no body inject.POST /portal/campaigns/short-link/(registered only when an outreach app is installed). EmptySHORTENER_*falls back to the long UTM URL.Reference: monica_site PR #10
Closes #3
Test plan
cd site && uv run python manage.py test(125 tests)utm_campaignupdates, save draftpiha.li(or long UTM if shortener unset) in the bodyutm_sourceFEATURE_EMAIL_SMSandFEATURE_DIRECT_MAILoff, no extra nav and no/portal/campaigns/short-link/route