Skip to content

Instantly share code, notes, and snippets.

@kris-tab
kris-tab / posthog-event-test-checklist.md
Created March 13, 2026 03:43
PostHog event test checklist for invoice-app

PostHog Event Test Checklist

Use this checklist to verify the analytics events currently wired in invoice-app.

Global

Event Trigger to test
$pageview Navigate between pages/routes
posthog identify Log in as a user and confirm user properties update
@kris-tab
kris-tab / aws-preview-environments-setup.md
Created March 4, 2026 16:30
AWS Preview Environments Setup Guide - TabCommerce preview deployment with Neon, ECS Fargate

AWS Preview Environments Setup Guide

Last Updated: February 11, 2026

This document provides step-by-step instructions for setting up AWS infrastructure to run preview environments for all 4 TabCommerce applications (invoice-app, sqm-chat-backend, tab-finance, transaction-export-service) with Neon databases.

Table of Contents

  1. Architecture Overview
  2. Prerequisites
@kris-tab
kris-tab / gist:1c62aa2c39bc0779d61fcc5206020b5d
Created February 26, 2026 17:44
RBAC Migration Scope & Effort Estimate
# RBAC Migration Scope & Effort Estimate
## Current State Summary
| Layer | Auth Pattern | Count |
|-------|--------------|-------|
| **sqm-chat-backend** | `auth('permissionString')` on routes | ~90 route protections |
| **sqm-chat-backend** | Unique permission strings | ~50 |
| **invoice-app** | Route configs (`authorizedUsers` / `authorizedSeatRoles`) | ~28 routes |
| **invoice-app** | Inline role checks (`user?.is_admin`, etc.) | ~50+ components |
@kris-tab
kris-tab / aws-preview-environments-setup.md
Last active February 24, 2026 01:18
AWS Preview Environments Setup Guide - TabCommerce

AWS Preview Environments Setup Guide

Last Updated: February 11, 2026

This document provides step-by-step instructions for setting up AWS infrastructure to run preview environments for all 4 TabCommerce applications (invoice-app, sqm-chat-backend, tab-finance, transaction-export-service) with Neon databases.

Table of Contents

  1. Architecture Overview
  2. Prerequisites
@kris-tab
kris-tab / preview-env-plan.md
Last active February 12, 2026 19:24
PR Preview Environments with Neon Databases - Implementation Plan

PR Preview Environments with Neon Databases - Implementation Plan


name: PR Preview Environments with Neon Databases overview: Set up automated preview environments that deploy all 4 repos (invoice-app, sqm-chat-backend, tab-finance, transaction-export-service) using feature branches or dev branch. One preview per Jira ticket—multiple PRs for the same ticket share the same preview URL. Each preview gets its own Neon database. Preview URLs are path-based (preview.tabcommerce.com/TAB-1234). todos:

  • id: neon-api-integration content: Create Neon API integration script to create/delete branch databases status: pending
  • id: branch-detection
@kris-tab
kris-tab / RELEASE_PROCESS_SUMMARY.md
Created December 22, 2025 20:56
JIRA Release Process Summary - Complete documentation of release workflow including manual steps, automated GitHub workflows, and external system integrations

JIRA Release Process Summary

Overview

This document summarizes the complete release process for promoting tickets from development to production, including manual steps, automated workflows, and external system integrations.


Process Flow

Phase 1: Manual Release Ticket Creation (via Cursor Rules)

@kris-tab
kris-tab / AUTOPAY_PAYMENT_ALLOCATION_BUG_FIX.md
Created December 5, 2025 18:33
TAB-3766: Autopay Payment Allocation Bug Fix - Detailed Analysis

Autopay Payment Allocation Bug Fix

Executive Summary

A bug in the payment allocation logic caused autopay payments to be incorrectly allocated to already-paid billing cycles instead of cycles with outstanding balances. This resulted in a $10 shortfall where the payment was allocated to the wrong billing cycle.

What Happened

Timeline of Events