From 3850f36609d3f7c97ac3456417f105074cd5ab17 Mon Sep 17 00:00:00 2001 From: Zach Latta Date: Wed, 28 May 2025 16:51:54 -0400 Subject: [PATCH] Improve AGENT.md --- AGENT.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/AGENT.md b/AGENT.md index 3abd1c0..35f107c 100644 --- a/AGENT.md +++ b/AGENT.md @@ -18,5 +18,7 @@ - **Models**: Inherit `ApplicationRecord`, extensive use of concerns/enums/scopes - **Error Handling**: `rescue => e` + `Rails.logger.error`, graceful degradation in jobs - **Imports**: Use `include` for concerns, `helper_method` for view access -- **API**: Namespace under `api/v1/`, structured JSON responses -- **Testing**: Minitest with fixtures, parallel execution enabled +- **API**: Namespace under `api/v1/`, structured JSON responses with status codes +- **Jobs**: GoodJob with 4 priority queues, inherit from `ApplicationJob`, concurrency control for cache jobs +- **Auth**: `ensure_authenticated!` for APIs, token via `Authorization` header or `?api_key=` +- **CSS**: Pico CSS framework + Uchu colors, component-specific CSS files, no Tailwind