docs(types): drill_step + filter_preset md (0081-A)

Completa el batch de 20 type .md extraidos a cpp/types/core/ y
cpp/types/viz/ apuntando a cpp/functions/core/data_table_types.h.
Quedan 2 que faltaban en commits anteriores: DrillStep_cpp_core
(undo/redo de drills, fase 10) y FilterPreset_cpp_core (Last7/30/90d,
ExcludeNulls, NonZero, fase 10).

Total types indexados: 206. Tabla via mcp__registry__fn_search
"file_path:data_table_types" o sqlite SELECT por file_path.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-13 00:58:25 +02:00
parent 2ca973fb7c
commit 5325a65f7c
2 changed files with 47 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
---
name: DrillStep
lang: cpp
domain: core
version: "1.0.0"
algebraic: product
definition: |
struct DrillStep {
int target_stage;
int filter_pos;
int prev_active_stage;
Filter added;
};
description: "Step de drill grabado para back/forward history (fase 10). apply_drill_step/undo_drill_step puras lo aplican/reversan."
tags: [tql, drill, history, undo, product-type]
uses_types: [Filter_cpp_core]
file_path: "cpp/functions/core/data_table_types.h"
---
## Notas
UI mantiene `vector<DrillStep>` back + forward stacks. Drill-down via click chart o tabla → push step a back, clear forward. Botones `<`/`>` en breadcrumb hacen pop+apply/undo.
NO persistido en TQL — UI state efimero. Forward clear cuando hay nuevo drill (rama nueva).
+23
View File
@@ -0,0 +1,23 @@
---
name: FilterPreset
lang: cpp
domain: core
version: "1.0.0"
algebraic: sum
definition: |
enum class FilterPreset { Last7d, Last30d, Last90d, ExcludeNulls, NonZero };
description: "Preset rapido de filter para chip row UI (fase 10). Genera 1-2 Filters via build_preset_filters(preset, col, today_ymd)."
tags: [tql, filter, preset, sum-type]
uses_types: []
file_path: "cpp/functions/core/data_table_types.h"
---
## Notas
| Preset | Filters generados |
|---|---|
| Last7/30/90d | Gte sobre col Date con (today_ymd - N) |
| ExcludeNulls | Neq sobre col, value="" |
| NonZero | Neq "" + Neq "0" (2 filters) |
UI auto-pickea col compatible (Date para Last*d, numeric para NonZero, any para ExcludeNulls).