▓▓▒▒ FLOAT.BBS ▒▒▓▓
Date: 2025-08-25 [note]
      
← Back to evans-notes

2025-08-25 Daily Notes

Morning Session: Git Maintenance & Branch Management

VAT Rates PR Merge Conflict Resolution

BMI Calculator Branch Rebase

Issue #337: BMI Calculator Implementation Analysis

Current Implementation State Discovery

Remaining Work Identified

Testing Infrastructure Assessment

The Brutal Truth About Testing

Testing Gaps Analysis

Why This Matters

Prompt Engineering Exercise

Evaluated Three Alternative Approaches

  1. Phased Discovery & Implementation (9/10 effectiveness)

    • Best option: Progressive knowledge building
    • Prevents context switching
    • Acknowledges existing work
  2. Risk-First Implementation (8/10 effectiveness)

    • Focus on preventing issues
    • Good for critical systems
  3. Component-Centric Implementation (7/10 effectiveness)

    • Aligns with codebase structure
    • Makes progress measurable

Key Learnings

The One-Line Fix Pattern

Testing Vacuum Discovery

Next Steps

Immediate Priority

Testing Strategy for BMI

Victory Lap: VAT Fix PR Merged! 🎉

PR #366 Merged

The Journey vs The Destination

Key Stats from PR #366

Lessons Reinforced

Session Metadata


End of morning/midday session - 12:30 PM

Afternoon Session: Authentication Hell & Database Migration Crisis

The Login Bounce Loop

Database Authentication Debugging Journey

Migration Hell Returns

Recent PR Merges Applied

Scripts Recreation from Onboarding Branch

The Hulk-Smash Moment

Pattern Recognition

Todo List Reset for Proper Approach

  1. Take a walk and get food - decompress
  2. Sprint planning at 2:30 PM
  3. Create ‘DB Reset / Migrate / Fix Auth’ guide
  4. Database reset and clean migration setup
  5. Dump fresh staging data
  6. Import staging data to local database
  7. Fix admin authentication with bootstrap
  8. Login to admin and access assessment builder
  9. Test BMI calculator in assessment builder
  10. Write 3 critical BMI tests
  11. Fix admin display in QuestionnaireSnapshotViewer
  12. Make corrections to DB Reset guide
  13. Final verification and commit

Session Metadata Update


Break started - 1:45 PM

Evening Session: Database Migration Blockers & Workarounds

Migration Type Casting Bug Discovery

The Sequential Problem

  1. Migration 0027: Creates assessment_responses with id as serial (integer)
  2. Migration 0037: Creates RLS policy comparing UUID to integer → FAILS HERE
  3. Migration 0038: Changes assessment_responses.id to UUID and recreates policy correctly

Temporary Workaround Decision

First Workaround Attempt - Failed

# Attempted: sed fix to cast integer to uuid
sed -i '' 's/assessment_responses\.id/assessment_responses.id::uuid/g' packages/database/migrations/0037_fantastic_ezekiel_stane.sql

Corrected Approach: Skip Migration 0037

# Skip the broken migration 0037 entirely
# Let 0038 handle both schema change and policy creation properly

Learning

Proper Solution: No-Op Migration 0037

Ready for BMI Testing

Migration Fix Documentation

-- Migration 0037: Replaced with no-op due to type casting issue
-- Original: Tried to create RLS policy with UUID = integer comparison  
-- Solution: Let migration 0038 handle schema change + policy creation properly
-- TODO: Create PR to fix migration sequence for the team

Time Investment

Database Reset Guide Created

Login Success!

═══════════════════════════════════════════════════════════════
 sysop::boring.core - float.bbs viewer v0.1
═══════════════════════════════════════════════════════════════
    
▓▓▒▒ TODAY: 2025-10-27 ▒▒▓▓

<< 2025-10-26 | 2025-10-28 >>

🎯 What Evan Needs This Morning

Pending PRs (Awaiting Review/Merge)

  • PR #604: GP node assessment + basket automation

    • Status: In approval backlog, merge conflicts being resolved
    • Demos: Successfully demo’d on 2025-10-24 sprint demo (Daniel happy with feedback)
    • Next: Check if conflicts resolved, ready for merge to staging
  • PR #606: [Description needed - check GitHub]

    • Status: Demo’d successfully, awaiting review
    • Next: Check GitHub status
  • PR #607: [Description needed - check GitHub]

    • Status: Demo’d successfully, awaiting review
    • Next: Check GitHub status

Active Issues Ready for Dev

  • Issue #122: Assessment workflow

    • Location: /Users/evan/float-hub/rangle/issues/active/122-assessment-workflow.md
    • Status: Fully documented with acceptance criteria
    • Priority: Assessment UX experience (per Scott sync 2025-10-24)
    • Key consideration: Guest→account response transfer (piggybacking basket logic)
  • Issue #442: HEIC upload support

    • Location: /Users/evan/float-hub/rangle/issues/active/442-heic-upload-support.md
    • Status: Fully documented with acceptance criteria
    • Priority: Lower than #122 (per Scott sync realignment)

Follow-ups from Weekend

  • Check GitHub PR statuses (#604, #606, #607) - are they merged? ready for staging?
  • Scott mentioned creating UI/UX ticket (priority 3) and multi-product assessment response logging ticket
  • Wins tracking system now operational - remember to capture wins as they happen

First Tasks

  • Check pharmacy-online PR status (merged? staging? conflicts?)
  • Review Issue #122 (assessment workflow) - priority work
  • Check if Scott’s new tickets created (UI/UX, multi-product logging)
  • Capture wins as work happens (two-home system: quick log + weekly review)

Context from Yesterday

Weekend mode: Shack building + infrastructure work

  • float.bbs viewer operational
  • TodayDrawer component shipped
  • Documentation preserved
  • Monday prep notes ready

Repo: https://github.com/pharmonline/pharmacy-online Local: ~/projects/pharmacy-online


timelog

  • 11:45pm - 12:03am - [project::float-bbs-viewer] hermit crab blueprints → forge patterns extracted (102KB doc)
  • 11:40pm - 11:45pm - [project::float-infrastructure] domain migration → sysop-beta.floatbbs.net live
  • 12:03am - 12:05am - [project::float-hub] CLAUDE.md evna integration → explicit tool names + capture triggers

Late Night: Infrastructure & Blueprinting

float-bbs-viewer Architecture Extraction (11:45pm - 12:03am)

  • Extracted patterns from float-dispatch-manifesto-forge (React/Vite/ShadCN)
  • Created hermit crab reference: 2025-10-26-dispatch-blueprints-for-bbs-viewer-hermit-crab-patterns.md
  • Key patterns: color-coded imprint system, grid layouts, Tailwind HSL tokens, editorial philosophy sections
  • Translation map: React hooks → Astro content collections, SPA routing → SSG file-based
  • Breadcrumb: /Users/evan/projects/float-bbs-viewer/2025-10-26-dispatch-blueprints-for-bbs-viewer-hermit-crab-patterns.md

CLAUDE.md evna Integration (12:03am - 12:05am)

  • Replaced vague “evna-context-concierge” references with explicit tool names
  • Added mandatory capture triggers (7-item checklist: after features, docs, infrastructure, archaeology, context switches, obstacles, chunks)
  • Context capture pattern template (ctx::, project::, format)
  • Breadcrumb: /Users/evan/float-hub/CLAUDE.md:308-315, 374-403, 422

Morning: Brain Booting

(Space for morning thoughts)

Press ESC or Ctrl+D to close