Coffee journaling on ATProto (alpha) alpha.arabica.social

refactor: generic CRUD + modal handler factories #351

Closed arabica.social
targeting main from push-ssspnvopnuuy
Closed opened by and assigned to arabica.social
targeting main from push-ssspnvopnuuy

Adds oolongCRUDWrite, oolongModalNew/Edit, and arabicaModalNew/Edit helpers — generic over the request/model types — so handler bodies collapse to thin wrappers that supply only entity-specific build, encode, and render callbacks.

Migrated:

  • oolong Vendor/Vessel/Infuser Create + Update CRUD handlers
  • oolong Vendor/Vessel/Infuser/Brew modal-new/edit handlers
  • arabica Grinder/Brewer/Roaster modal-new/edit handlers

Tea/Brew CRUD stay bespoke (ref URI building); Bean modal stays bespoke (roaster dropdown population). Net 206 LOC removed.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

Commits 0