From 86232a844f05a692e4bb2d6e4a3adcf702a423f0 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Fri, 26 Sep 2025 11:15:38 +0300 Subject: [PATCH] Add a few more guidelines to AGENTS.md --- .claude/settings.local.json | 3 ++- AGENTS.md | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 459a3573..4c8af4a2 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -24,7 +24,8 @@ "Bash(mix format:*)", "Bash(mise run dev:static-checks:*)", "Bash(find:*)", - "Bash(xargs sed:*)" + "Bash(xargs sed:*)", + "Bash(git show:*)" ] }, "enableAllProjectMcpServers": false diff --git a/AGENTS.md b/AGENTS.md index e1ccdb58..0860c9a8 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -199,6 +199,10 @@ UI and Styling visually while maintaining scanability and preserving all functionality. - Use Phoenix view helpers and templates to keep views DRY. - Use minimal markup and avoid nesting DIVs unnecessarily. +- Always use `gettext/1` for user-visible text instead of hardcoded strings +- Apply translations consistently across all UI text, error messages, page titles, and button labels +- Use `:if` attributes over `<%= if %>` blocks in HEEx templates for cleaner, more readable code +- Leverage built-in Phoenix LiveView features like `phx-disable-with` for loading states instead of manual state tracking Performance Optimization