From ae55ea5488cc795af764aca7b263cde325055bbc Mon Sep 17 00:00:00 2001 From: reugenio Date: Thu, 25 Dec 2025 19:19:22 +0100 Subject: [PATCH] CLAUDE.md: jj + NORMAS_ESENCIALES --- CLAUDE.md | 13 +++++++------ src/widgets/advanced_table/advanced_table.zig | 6 +++++- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index bd1129c..2b5efe9 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -8,15 +8,16 @@ ### Paso 1: Leer normas del equipo ``` -/mnt/cello2/arno/re/recode/teamdocs/LAST_UPDATE.md +/mnt/cello2/arno/re/recode/teamdocs/NORMAS_ESENCIALES.md ``` +Contiene: rutas, VCS (jj), flujo de trabajo, credenciales. -### Paso 2: Leer normas completas si es necesario -``` -/mnt/cello2/arno/re/recode/teamdocs/normas/NORMAS_TRABAJO_CONSENSUADAS.md -/mnt/cello2/arno/re/recode/teamdocs/QUICK_REFERENCE.md -/mnt/cello2/arno/re/recode/teamdocs/agenda/2025-12_diciembre.md # Trabajo diario +### Paso 2: Verificar estado con jj +```bash +jj status && jj log --limit 5 +zig build test ``` +**Nota:** Usamos jj (Jujutsu) en lugar de git. Ver `teamdocs/INFRASTRUCTURE/JJ_JUJUTSU_VCS.md` ### Paso 3: Leer documentación del proyecto ``` diff --git a/src/widgets/advanced_table/advanced_table.zig b/src/widgets/advanced_table/advanced_table.zig index 88d5648..a66a8dc 100644 --- a/src/widgets/advanced_table/advanced_table.zig +++ b/src/widgets/advanced_table/advanced_table.zig @@ -415,7 +415,11 @@ fn drawRow( if (table_state.getRow(row_idx)) |row| { const value = row.get(col.name); var format_buf: [128]u8 = undefined; - const text = value.format(&format_buf); + const formatted = value.format(&format_buf); + + // Copy text to frame arena to ensure it persists until rendering + // (format_buf is stack-allocated and goes out of scope) + const text = ctx.frameAllocator().dupe(u8, formatted) catch formatted; // Draw cell text const text_y = bounds.y + @as(i32, @intCast((config.row_height - 8) / 2));