Skip to content

Instantly share code, notes, and snippets.

View jghankins's full-sized avatar
🏠
Working from home

Jim Hankins jghankins

🏠
Working from home
View GitHub Profile
@jghankins
jghankins / ui-testing.md
Created April 16, 2026 16:30
PewPros iOS UI Testing guide

UI Testing

This document covers how the XCUITest suite is wired up, how to add new tests, and how Xcode Cloud runs it.

Target layout

pewpros/Testing/
├── UITestBootstrap.swift # DEBUG-only keychain/org seeding (app target)
@jghankins
jghankins / coachpros-vs-circle-comparison.md
Created April 15, 2026 14:32
CoachPros vs Circle.so Feature Comparison

CoachPros vs Circle.so -- Feature Comparison

Last updated: April 15, 2026

Legend: Y = Has feature | - = Missing | P = Partial


Community

@jghankins
jghankins / discovery-directory-diagrams.md
Last active April 15, 2026 00:00
Discovery Directory Architecture Diagrams (Issue #292)

Discovery Directory -- Architecture Diagrams

System Overview

graph TB
    subgraph "Tenant A - ECS Task"
        A_APP[Phoenix App] --> A_DB[(PostgreSQL)]
        A_OBAN["DiscoverySyncWorker<br/>every 15 min"] --> A_APP
        A_OBAN -->|"PutItem"| DYNAMO
@jghankins
jghankins / video-fallback-feature.md
Created April 14, 2026 17:10
Video Fallback & Direct URL Support - Feature Spec

Video Fallback & Direct URL Support

Problem

A Vimeo outage impacted a high-volume course. The lesson player currently only supports Vimeo and YouTube via iframe embeds, leaving no recourse when a provider goes down.

Solution

Two complementary features:

@jghankins
jghankins / gist:123e424cff1773015454a94057fae47a
Last active April 13, 2026 17:57
Pewpros Unsubscribe Flow - How It Works

Pewpros Unsubscribe Flow

Overview

When a contact is unsubscribed, the system now enforces it across the entire platform:

  1. Community removal - user is removed from the community
  2. Post hiding - all their community posts are bulk-hidden
  3. Email suppression - marketing emails are silently suppressed at the Mailer level
  4. Transactional emails still deliver - magic links, login emails, confirmations bypass suppression
@jghankins
jghankins / referral-system-guide.md
Created April 9, 2026 19:51
PewPros/CoachPros Referral System Guide

Referral System Guide

Two referral programs in one system: Tenant Referrals (your customers referring friends) and Platform Referrals (existing PewPros/CoachPros customers referring new platform subscribers).


Setup (Admin)

1. Configure Tenant Referral Credit

@jghankins
jghankins / kajabi-comparison-strategy.md
Created April 5, 2026 17:56
Kajabi vs Pewpros: Feature Comparison & Attack Strategy

Kajabi vs Pewpros: Feature Comparison & Attack Strategy

Research date: 2026-04-05 Issue: #205 Sources: developers.kajabi.com, kajabi.com/features, Pewpros codebase audit

1. Executive Summary

Pewpros is a single-tenant, firearms-industry-focused learning + membership + community platform with deep vertical integrations (USCCA, GHL, Stripe Terminal, Apple Wallet, iOS Live Activities). Kajabi is a horizontal, multi-tenant creator-economy platform optimized for course/membership/coaching creators.

@jghankins
jghankins / gist:9e820abbe8924e0dbade4edd4c1e057e
Created April 3, 2026 20:27
Issue #192: RSS Feed Subscriptions for Community Categories
# RSS Feed Subscriptions for Community Categories (#192)
## Overview
Community categories can now auto-populate from RSS feeds. Categories marked as "Feed Only" serve as curated news feeds where members can comment, like, and share posts but cannot create new ones. Each category can subscribe to multiple RSS feeds, and an admin-chosen staff user is the "author" of imported posts.
---
## What's New
@jghankins
jghankins / multi-day-events-integration.md
Created April 3, 2026 17:56
Multi-Day Event Support: Integration Guide for iOS

Multi-Day Event Support: Integration Guide

Overview

Multi-day events (e.g., IL/MD CCW classes spanning 2 days, 18 hours total) are now fully supported. Each day can have different times and venues (classroom vs range). The data model was already in place -- this update adds admin UX for bulk creation and exposes structured multi-day data through the API.

Data Model (unchanged)

Event (duration_type: "multi_day" | "single_day")
@jghankins
jghankins / community-realtime-feed.md
Created April 2, 2026 19:42
Real-Time Community Feed - Architecture & Flow Diagrams

Real-Time Community Feed Architecture

Technical documentation for the real-time community feed feature spanning the iOS client and Phoenix backend.


1. Architecture Overview

graph LR