Give finished Rules a print path, folded launch counts, and a two-day follow-up.
Export is PDF, RULE.md, and Print on US Letter, with every shared term, no member names, and a takeaway that points at Ask an organizer. Finished Rules keep type and place so the team can read folded counts without a database, Umami can sit beside the app with no cookies, and the person who holds the pen gets working PDF and RULE.md links 48 hours later.
This commit is contained in:
1 parent
0efc907633
commit
d9c475a967
74 files changed
+2401
-630
No files matched your search
@@ -0,0 +1,10 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "PublishedRule" ADD COLUMN "communityLocation" TEXT;
|
||||
ALTER TABLE "PublishedRule" ADD COLUMN "orgType" TEXT;
|
||||
ALTER TABLE "PublishedRule" ADD COLUMN "followUpEmailSentAt" TIMESTAMP(3);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "PublishedRule_orgType_communityLocation_idx" ON "PublishedRule"("orgType", "communityLocation");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "PublishedRule_followUpEmailSentAt_createdAt_idx" ON "PublishedRule"("followUpEmailSentAt", "createdAt");
|
||||
@@ -94,12 +94,20 @@ model PublishedRule {
|
||||
visibility RuleVisibility @default(private)
|
||||
/// Rotating public path `/r/{shareSlug}`. Null while private. Replaced when a link is turned back on.
|
||||
shareSlug String? @unique
|
||||
/// Optional city or region from the description step. Used for launch counts.
|
||||
communityLocation String?
|
||||
/// Canonical group type id (`workersCoop`, `mutualAid`, …). Used for launch counts.
|
||||
orgType String?
|
||||
/// Set when the 48-hour print follow-up has been sent to the pen-holder.
|
||||
followUpEmailSentAt DateTime?
|
||||
|
||||
stakeholders RuleStakeholder[]
|
||||
uploads Upload[]
|
||||
|
||||
@@index([userId])
|
||||
@@index([visibility, updatedAt])
|
||||
@@index([orgType, communityLocation])
|
||||
@@index([followUpEmailSentAt, createdAt])
|
||||
}
|
||||
|
||||
/// File written under UPLOAD_ROOT. Readers follow the linked Rule or draft.
|
||||
|
||||
Reference in new issue
Block a user